๐
This file contains hidden or 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
// Firebase TestLab Example using Flank | |
task assembleAppApkForFirebase(dependsOn: ':app:assembleDebug') | |
task assembleTestApkForFirebase(dependsOn: ':app:assembleDebugAndroidTest') | |
task runAcceptanceTestsOnFirebase(type: Exec, dependsOn: ['assembleAppApkForFirebase', 'assembleTestApkForFirebase']) { | |
description 'Assembles App and Test apks for execution on Firebase Test Lab.' | |
workingDir "$rootDir" | |
commandLine './scripts/flank_test.sh' | |
} | |
assembleAcceptanceTest.mustRunAfter('assembleAppApkForFirebase', 'assembleTestApkForFirebase') |
This file contains hidden or 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
task deployDebug(type: Exec, dependsOn: 'app:installDebug') { | |
def rootDir = project.rootDir | |
def localProperties = new File(rootDir, "local.properties") | |
if (localProperties.exists()) { | |
Properties properties = new Properties() | |
localProperties.withInputStream { | |
inputStream -> properties.load(inputStream) | |
} | |
def sdkDir = properties.getProperty('sdk.dir') | |
def adb = "$sdkDir/platform-tools/adb" |
This file contains hidden or 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
public class AndroidApplication extends MultiDexApplication { | |
public static final String TAG = AndroidApplication.class.getSimpleName(); | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
registerComponentCallbacks(new ComponentCallback()); | |
} | |
private class ComponentCallback implements ComponentCallbacks2 { |
NewerOlder