Limit Raptor to debug and special builds
parent
49d527d0dd
commit
64ef207613
|
@ -17,6 +17,7 @@ android {
|
||||||
versionCode Config.versionCode
|
versionCode Config.versionCode
|
||||||
versionName Config.versionName + Config.generateVersionSuffix()
|
versionName Config.versionName + Config.generateVersionSuffix()
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
|
manifestPlaceholders.isRaptorEnabled = "false"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
@ -28,6 +29,7 @@ android {
|
||||||
shrinkResources false
|
shrinkResources false
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
applicationIdSuffix ".debug"
|
applicationIdSuffix ".debug"
|
||||||
|
manifestPlaceholders.isRaptorEnabled = "true"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -217,6 +219,10 @@ android.applicationVariants.all { variant ->
|
||||||
buildConfigField 'String', 'BUILD_DATE', '"' + buildDate + '"'
|
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
|
// 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.
|
// 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'
|
apply from: 'https://github.com/mozilla-mobile/android-components/raw/master/components/service/glean/scripts/sdk_generator.gradle'
|
||||||
|
|
|
@ -68,7 +68,8 @@
|
||||||
</activity>
|
</activity>
|
||||||
|
|
||||||
<activity android:name=".browser.BrowserPerformanceTestActivity"
|
<activity android:name=".browser.BrowserPerformanceTestActivity"
|
||||||
android:exported="true"/>
|
android:exported="${isRaptorEnabled}"
|
||||||
|
android:enabled="${isRaptorEnabled}"/>
|
||||||
|
|
||||||
<service
|
<service
|
||||||
android:name=".customtabs.CustomTabsService"
|
android:name=".customtabs.CustomTabsService"
|
||||||
|
|
Loading…
Reference in New Issue