This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'api' => [ | |
'allowInsecure' => true, | |
'basicAuth' => true | |
], | |
'languages' => true, | |
'routes' => [ | |
[ | |
'pattern' => '(:all)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.android.utils; | |
import android.app.Activity; | |
import android.app.Application; | |
import android.os.Bundle; | |
import android.os.Handler; | |
import org.apache.log4j.Logger; | |
import java.util.ArrayList; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create the dependency list | |
DependencyList dependencyList; | |
// (...gather all required dependencies and add them to the list...) | |
// create the plugin instance | |
Plugin* plugin = createPlugin(); | |
// create a shared pointer managing the lifetime of the plugin and its dependencies | |
PluginPtr pluginPtr(plugin, DependencyDeleter<plugin>(dependencyList)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Type definition for a list of boost::any instances. | |
typedef std::vector DependencyList; | |
// Stores all dependencies | |
template struct DependencyDeleter | |
{ | |
// Constructor is initialized with the list of dependencies | |
DependencyDeleter(DependencyList dependencies) : mDependencies(dependencies) | |
{} |