Bug 1541609 - [geckoview] Enforce packages in API. r=snorp,esawin
authorAgi Sferro <agi@mozilla.com>
Wed, 10 Apr 2019 01:50:58 +0000
changeset 468712 f9a157cbe24657c05e1770ae526d72e26a43c786
parent 468711 ac53565c0c693880d405637303b06f5a7b54a1a4
child 468713 6f7ba873b5b04b9b23313cb191e011377b0128d3
push id112747
push userncsoregi@mozilla.com
push dateWed, 10 Apr 2019 13:22:28 +0000
treeherdermozilla-inbound@06ea3fe18fda [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssnorp, esawin
bugs1541609
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1541609 - [geckoview] Enforce packages in API. r=snorp,esawin Depends On D26029 Differential Revision: https://phabricator.services.mozilla.com/D26030
build.gradle
mobile/android/geckoview/build.gradle
--- a/build.gradle
+++ b/build.gradle
@@ -76,17 +76,17 @@ buildscript {
     ext.jacoco_version = '0.8.1'
 
     if (gradle.mozconfig.substs.MOZ_ANDROID_GOOGLE_PLAY_SERVICES) {
         ext.google_play_services_version = '15.0.1'
         ext.google_play_services_cast_version = '16.0.0'
     }
 
     dependencies {
-        classpath 'org.mozilla.apilint:apilint:0.1.8'
+        classpath 'org.mozilla.apilint:apilint:0.1.9'
         classpath 'com.android.tools.build:gradle:3.1.4'
         classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.8.2'
         classpath 'org.apache.commons:commons-exec:1.3'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
     }
 }
 
 // A stream that processes bytes line by line, prepending a tag before sending
--- a/mobile/android/geckoview/build.gradle
+++ b/mobile/android/geckoview/build.gradle
@@ -454,9 +454,15 @@ task("generateSDKBindings", type: JavaEx
 apply plugin: 'org.mozilla.apilint'
 
 apiLint {
     // TODO: Change this to `org` after hiding org.mozilla.gecko
     packageFilter = 'org.mozilla.geckoview'
     changelogFileName = 'src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md'
     skipClassesRegex = ['^org.mozilla.geckoview.BuildConfig$']
     lintFilters = ['GV']
+    allowedPackages = [
+        'java',
+        'android',
+        'org.json',
+        'org.mozilla.geckoview',
+    ]
 }