1
0
Fork 0

Limit Raptor to debug and special builds

master
Colin Lee 2019-02-25 17:32:17 -06:00
parent 49d527d0dd
commit 64ef207613
2 changed files with 8 additions and 1 deletions

View File

@ -17,6 +17,7 @@ android {
versionCode Config.versionCode
versionName Config.versionName + Config.generateVersionSuffix()
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
manifestPlaceholders.isRaptorEnabled = "false"
}
buildTypes {
release {
@ -28,6 +29,7 @@ android {
shrinkResources false
minifyEnabled false
applicationIdSuffix ".debug"
manifestPlaceholders.isRaptorEnabled = "true"
}
}
@ -217,6 +219,10 @@ android.applicationVariants.all { variant ->
buildConfigField 'String', 'BUILD_DATE', '"' + buildDate + '"'
}
if (project.hasProperty("raptor")) {
android.defaultConfig.manifestPlaceholders.isRaptorEnabled = "true"
}
// Normally this should use the same version as the glean dependency. But since we are currently using AC snapshots we
// can't reference a git tag with a specific version here. So we are just using "master" and hoping for the best.
apply from: 'https://github.com/mozilla-mobile/android-components/raw/master/components/service/glean/scripts/sdk_generator.gradle'

View File

@ -68,7 +68,8 @@
</activity>
<activity android:name=".browser.BrowserPerformanceTestActivity"
android:exported="true"/>
android:exported="${isRaptorEnabled}"
android:enabled="${isRaptorEnabled}"/>
<service
android:name=".customtabs.CustomTabsService"