Граф коммитов

138 Коммитов

Автор SHA1 Сообщение Дата
Nick Alexander 8e0d872e6e Bug 1542004 - Add `android-javadoc` lint. r=agi
This also applies the error listener just to the Javadoc tasks
(previously, it applied to the `apiGenerate*` tasks as well, 'cuz they
inherit from `Javadoc`).

Differential Revision: https://phabricator.services.mozilla.com/D41634

--HG--
extra : moz-landing-system : lando
2019-08-13 01:45:03 +00:00
Nick Alexander 3ee28a80a5 Bug 1570764 - Include MOZ_SOURCE_* fields in GeckoView POM files. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D40306

--HG--
extra : moz-landing-system : lando
2019-08-12 20:12:08 +00:00
Narcis Beleuzu 8df7891fe5 Backed out changeset a432a8f794b4 (bug 1570764) for toolchain bustages on build.gradle . CLOSED TREE 2019-08-12 22:15:22 +03:00
Nick Alexander 8c1a58244c Bug 1570764 - Include MOZ_SOURCE_* fields in GeckoView POM files. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D40306

--HG--
extra : moz-landing-system : lando
2019-08-02 04:07:46 +00:00
Agi Sferro de8452c468 Bug 1571288 - Fix gradle warnings about obsolete APIs. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D41440

--HG--
extra : moz-landing-system : lando
2019-08-12 15:18:23 +00:00
Ciure Andrei d7ec6fb695 Backed out changeset 6862186e032b (bug 1570764) for causing toolchains bustages CLOSED TREE 2019-08-02 06:57:44 +03:00
Nick Alexander aba3c8f154 Bug 1570764 - Include MOZ_SOURCE_* fields in GeckoView POM files. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D40306

--HG--
extra : moz-landing-system : lando
2019-08-02 01:05:07 +00:00
Agi Sferro 094f958c69 Bug 1522795 - Update android gradle plugin to 3.4.2. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D39106

--HG--
extra : moz-landing-system : lando
2019-07-24 18:48:54 +00:00
Nick Alexander 1acd86f7f7 Bug 1566359 - Pack GeckoView-specific `metrics.yaml` file into published AAR. r=esawin
Differential Revision: https://phabricator.services.mozilla.com/D38698

--HG--
extra : moz-landing-system : lando
2019-07-22 20:06:30 +00:00
Agi Sferro d0cb127dad Bug 1515248 - Upgrade to Android-Gradle plugin 3.2.1 and build-tools 28.0.3. r=agi
Differential Revision: https://phabricator.services.mozilla.com/D15159

--HG--
extra : moz-landing-system : lando
2019-07-20 17:27:53 +00:00
Nick Alexander 871427c9e4 Bug 1555255 - Don't require a network connection to produce Javadoc. r=geckoview-reviewers,agi
See https://stackoverflow.com/a/24026735.

Adding the `docs` package requirement is not ideal, but it's not worth
the effort to install it only in automation (or in the relevant task),
and it's not *that* large: 1.0G on my macOS installation.

Differential Revision: https://phabricator.services.mozilla.com/D35834

--HG--
extra : moz-landing-system : lando
2019-06-25 19:58:26 +00:00
Nick Alexander 0886f39ee6 Bug 1508976 - Post: Don't include architecture in multi-architecture GeckoView artifactId. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15772

--HG--
extra : moz-landing-system : lando
2019-05-30 15:22:19 +00:00
Eugen Sawin 9a2c465f9f Bug 1544076 - [1.1] Add lifecycle library dependency. r=nalexander,snorp
Differential Revision: https://phabricator.services.mozilla.com/D28082

--HG--
extra : moz-landing-system : lando
2019-04-24 17:51:32 +00:00
Nick Alexander dfeeb0c3e4 Bug 1533385 - Make GeckoView read configuration options from filesystem. r=droeh
The configuration file format is YAML and looks like:
```
prefs:
  foo.bar.boolean: true
  foo.bar.string: "string"
  foo.bar.int: 500
env:
  MOZ_LOG: nsHttp:5
args: [--marionette]
```
By default, if the consuming App is debuggable, GeckoView will read
configuration from `/data/local/tmp/$PACKAGE-geckoview-config.yaml` at
startup.

For consumers (including browsers) that want to allow the underlying
GeckoView to be remote controlled in some way, the
`GeckoRuntimeSettings.Builder.configFilePath()` method allows to avoid
the default behaviour depending on the `android:debuggable` flag.  For
example, release versions of Firefox for Android will want to allow
this configuration when appropriate App-level settings are toggled.

The additional configuration is appended after any existing configuration
methods, e.g., after anything specified using Intent argument extras
or existing `GeckoRuntimeSettings.Builder` methods.

Differential Revision: https://phabricator.services.mozilla.com/D25885

--HG--
extra : moz-landing-system : lando
2019-04-17 17:05:05 +00:00
Mitchell Hentges 18f3187053 Bug 1538278 - Adds route for accessing geckoview releases r=tomprince,jlorenzo
Differential Revision: https://phabricator.services.mozilla.com/D23928

--HG--
extra : moz-landing-system : lando
2019-04-16 09:46:07 +00:00
Bogdan Tara 5deee43687 Backed out changeset f0ee3a81b179 (bug 1538278) for gecko decision task bustage CLOSED TREE 2019-04-15 13:34:48 +03:00
Mitchell Hentges 11922ff778 Bug 1538278 - Adds route for accessing geckoview releases r=tomprince,jlorenzo
Adds route for accessing geckoview releases

Differential Revision: https://phabricator.services.mozilla.com/D23928

--HG--
extra : moz-landing-system : lando
2019-04-15 10:08:17 +00:00
Agi Sferro 050acb72a1 Bug 1541609 - [geckoview] Enforce packages in API. r=snorp,esawin
Depends On D26029

Differential Revision: https://phabricator.services.mozilla.com/D26030

--HG--
extra : moz-landing-system : lando
2019-04-10 01:50:58 +00:00
Nick Alexander b525daac01 Bug 1540820 - Don't write generated JNI wrappers for every Java-level change. r=agi
This was fallout from Bug 1509572, which moved the "invalidation
smarts" to Gradle. Unfortunately, those smarts are not smart enough:
there are many situations where the annotations might change (a new
method) but where they don't actually change (a new method that isn't
annotated with @JNITarget).

Since we don't want to spend the time to make the "invalidation
smarts" truly smart, we need to bring back this little bit of Bug
1509572.

While we're here, we ensure that there is only one JNI wrapper
generation task for GeckoView and Fennec, regardless of variant.
Right now, those are named like:

- geckoview:generateJNIWrappersForGeneratedWithGeckoBinariesDebug
- app:generateJNIWrappersForFennecWithoutGeckoBinariesDebug

See https://bugzilla.mozilla.org/show_bug.cgi?id=1509539#c1 for some
discussion of these JNI wrapper generation tasks.

Differential Revision: https://phabricator.services.mozilla.com/D26427

--HG--
extra : moz-landing-system : lando
2019-04-09 20:02:44 +00:00
Cosmin Sabou 537bd71d70 Backed out changeset 47d793fbd8cc (bug 1533385) at nalexander's request.
--HG--
extra : rebase_source : 64b1c5ba60037c5aaf2b3eb1b515f78db271a1ae
2019-04-09 19:57:58 +03:00
Nick Alexander 5fa2d6f5cf Bug 1533385 - Make GeckoView read configuration options from filesystem. r=droeh
The configuration file format is YAML and looks like:
```
prefs:
  foo.bar.boolean: true
  foo.bar.string: "string"
  foo.bar.int: 500
env:
  MOZ_LOG: nsHttp:5
args: [--marionette]
```
By default, if the consuming App is debuggable, GeckoView will read
configuration from `/data/local/tmp/$PACKAGE-geckoview-config.yaml` at
startup.

For consumers (including browsers) that want to allow the underlying
GeckoView to be remote controlled in some way, the
`GeckoRuntimeSettings.Builder.configFilePath()` method allows to avoid
the default behaviour depending on the `android:debuggable` flag.  For
example, release versions of Firefox for Android will want to allow
this configuration when appropriate App-level settings are toggled.

The additional configuration is appended after any existing configuration
methods, e.g., after anything specified using Intent argument extras
or existing `GeckoRuntimeSettings.Builder` methods.

Differential Revision: https://phabricator.services.mozilla.com/D25885

--HG--
extra : moz-landing-system : lando
2019-04-04 14:30:59 +00:00
Andreea Pavel ebce4e7134 Backed out changeset 91b055c0dadb (bug 1533385) for breaking gv-junit at org.mozilla.geckoview.test on a CLOSED TREE 2019-04-04 04:28:47 +03:00
Nick Alexander b03aa4ed38 Bug 1533385 - Make GeckoView read configuration options from filesystem. r=droeh
The configuration file format is YAML and looks like:
```
prefs:
  foo.bar.boolean: true
  foo.bar.string: "string"
  foo.bar.int: 500
env:
  MOZ_LOG: nsHttp:5
args: [--marionette]
```
By default, if the consuming App is debuggable, GeckoView will read
configuration from `/data/local/tmp/$PACKAGE-geckoview-config.yaml` at
startup.

For consumers (including browsers) that want to allow the underlying
GeckoView to be remote controlled in some way, the
`GeckoRuntimeSettings.Builder.configFilePath()` method allows to avoid
the default behaviour depending on the `android:debuggable` flag.  For
example, release versions of Firefox for Android will want to allow
this configuration when appropriate App-level settings are toggled.

The additional configuration is appended after any existing configuration
methods, e.g., after anything specified using Intent argument extras
or existing `GeckoRuntimeSettings.Builder` methods.

Differential Revision: https://phabricator.services.mozilla.com/D25885

--HG--
extra : moz-landing-system : lando
2019-04-03 23:51:17 +00:00
James Willcox 73c7980cb9 Bug 1536044 - Fully disable jacoco builds for Android r=agi
Differential Revision: https://phabricator.services.mozilla.com/D25216

--HG--
extra : moz-landing-system : lando
2019-03-28 20:26:45 +00:00
Agi Sferro 82fc0b279b Bug 1512274 - Enable Checkstyle for GeckoView. r=geckoview-reviewers,nalexander,snorp
Differential Revision: https://phabricator.services.mozilla.com/D23692

--HG--
extra : moz-landing-system : lando
2019-03-15 21:21:57 +00:00
Narcis Beleuzu 1e8739f8d7 Backed out 11 changesets (bug 1512274) for TL bustages. CLOSED TREE
Backed out changeset 9f34d0075a73 (bug 1512274)
Backed out changeset 6ca9fc4956d0 (bug 1512274)
Backed out changeset 9a9d3c9c124a (bug 1512274)
Backed out changeset 670e07131f14 (bug 1512274)
Backed out changeset 161731389a46 (bug 1512274)
Backed out changeset c34445b1db88 (bug 1512274)
Backed out changeset 60897ab00574 (bug 1512274)
Backed out changeset 5d02f27fe174 (bug 1512274)
Backed out changeset 380cdbe5557c (bug 1512274)
Backed out changeset 58642fa9c95b (bug 1512274)
Backed out changeset 3812d6760379 (bug 1512274)
2019-03-15 21:11:47 +02:00
Agi Sferro e6c5f1c0b2 Bug 1512274 - Enable Checkstyle for GeckoView. r=geckoview-reviewers,nalexander,snorp
Depends on D23691

Differential Revision: https://phabricator.services.mozilla.com/D23692

--HG--
extra : moz-landing-system : lando
2019-03-15 18:10:27 +00:00
Brindusan Cristian 1f6d297e33 Backed out 5 changesets (bug 1508976, bug 1522581) for android geckoview bustages at /usr/bin/python2.7. CLOSED TREE
Backed out changeset 7a6be593b0be (bug 1522581)
Backed out changeset c47b37ac1775 (bug 1522581)
Backed out changeset 91c31d2a7706 (bug 1508976)
Backed out changeset da57df805c56 (bug 1508976)
Backed out changeset 4e5d97c93515 (bug 1508976)
2019-03-05 22:42:15 +02:00
Nick Alexander 4e61bae5d6 Bug 1508976 - Post: Don't include architecture in multi-architecture GeckoView artifactId. r=snorp
Differential Revision: https://phabricator.services.mozilla.com/D15772

--HG--
extra : moz-landing-system : lando
2019-03-05 17:48:35 +00:00
Nick Alexander 5854b41436 Bug 1508976 - Produce a multi-architecture GeckoView "fat AAR". r=snorp,agi,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D15771

--HG--
extra : moz-landing-system : lando
2019-03-05 17:52:54 +00:00
Agi Sferro a5313e6c73 Bug 1512997 - Add GeckoSession.getDefaultUserAgent API. r=nalexander,rbarker
Differential Revision: https://phabricator.services.mozilla.com/D19813

--HG--
extra : moz-landing-system : lando
2019-02-20 18:11:27 +00:00
Jesse Schwartzentruber a359caba44 Bug 1527896 - Increase Gradle heaps to handle large assets. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D19792

--HG--
extra : moz-landing-system : lando
2019-02-14 18:21:13 +00:00
Jan Henning 879d1a037c Bug 1503455 - Part 4: Compile with SDK28. r=nalexander,snorp
android.test.* is no longer part of the main framework, so as per
https://developer.android.com/training/testing/set-up-project,
- we must no longer declare them as a *required* dependency in our manifests
- we must explicitly include a dependency on them in our build config

This will temporarily break running tests depending on android.test.* (i.e.
mainly Robocop) on devices using P or newer until we also start targeting P as
well.

Differential Revision: https://phabricator.services.mozilla.com/D16422

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:11 +00:00
Jan Henning 110351a055 Bug 1503455 - Part 3: Filter classpath for SDK bindings generation. r=nalexander
Once we start compiling with API28, android.test.* is no longer part of the main
framework JAR and will be included from separate libraries instead.
Those additional JARs will then subsequently show up on the class path in
Gradle, too.

Because our SDKProcessor is currently set up to process only one JAR at a time
and because we don't actually need to generate bindings for those test classes,
we simply filter them out again.

We explicitly only filter the android.test.* JARs and use findAll so that if the
android classpath unexpectedly gains another member, we're alerted to that fact
and can consciously take a decision on whether to ignore it as well or not.

Differential Revision: https://phabricator.services.mozilla.com/D16421

--HG--
extra : moz-landing-system : lando
2019-01-28 18:32:04 +00:00
Jan Henning f04abdeceb Bug 1503455 - Part 1: Update some test library versions. r=nalexander
Not strictly required, but since we're in the area anyway...

Differential Revision: https://phabricator.services.mozilla.com/D16419

--HG--
extra : moz-landing-system : lando
2019-01-28 18:31:50 +00:00
Agi Sferro 02aa520632 Bug 1521404 - Fix apilint warnings about BuildConfig. r=geckoview-reviewers,snorp
See aa9e8a7a23.

Differential Revision: https://phabricator.services.mozilla.com/D17268

--HG--
extra : moz-landing-system : lando
2019-01-23 14:48:12 +00:00
Agi Sferro ff137f141b Bug 1515662 - Copy javadoc jar to right location for publishing. r=nalexander
In Bug 1506601 we started specifying a version number which made the javadoc
jar artifact name change

from `geckoview-javadoc.jar` to `geckoview-<version>-javadoc.jar`

where `<version>` is the current GeckoView version. This is a good change but it
broke our javadoc publishing code which doesn't know about the version code in
`//taskcluster/ci/build/android-stuff.yml`.

To make that work we add a new task `copyJavadocJar${variantName}` which copies
the jar to the expected location.

Depends on D15128

Differential Revision: https://phabricator.services.mozilla.com/D15129

--HG--
extra : moz-landing-system : lando
2018-12-20 19:37:42 +00:00
Agi Sferro 09aa32663e Bug 1458668 - Link CHANGELOG.md in javadoc. r=snorp,geckoview-reviewers
This moves the CHANGELOG.md file to a /doc-files folder that gets picked up by
javadoc.

Our javadoc files are hosted on a github.io page which will render the markdown
file with the geckoview profile.

Depends on D13883

Differential Revision: https://phabricator.services.mozilla.com/D14786

--HG--
rename : mobile/android/geckoview/CHANGELOG.md => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/doc-files/CHANGELOG.md
extra : moz-landing-system : lando
2018-12-19 15:48:17 +00:00
Agi Sferro e75266a619 Bug 1502118 - Enforce GV lints with apilint. r=snorp
This makes it so that apilints lints with "GV" codes are enforced and will fail
the build.

Depends on D13882

Differential Revision: https://phabricator.services.mozilla.com/D13883

--HG--
extra : moz-landing-system : lando
2018-12-17 22:32:11 +00:00
Agi Sferro 37e85f9edf Bug 1506601 - Add dependencies to GeckoView's pom file. r=nalexander
This adds GeckoView dependencies to the Maven pom file by iterating through the
"implementation" dependencies and adding them manually to the pom XML.

This workaround can be removed when issue [0] is fixed.

This also moves the publishing from the old 'maven' plugin to the new
'maven-publishing' see also [1] and [2].

[0]: https://github.com/gradle/gradle/issues/1842
[1]: https://docs.gradle.org/current/userguide/maven_plugin.html
[2]: https://docs.gradle.org/current/userguide/publishing_maven.html#publishing_maven

Differential Revision: https://phabricator.services.mozilla.com/D13113

--HG--
extra : moz-landing-system : lando
2018-11-29 19:39:11 +00:00
Nick Alexander 989700629b Bug 1509572 - Part 4: Make `geckoview:generateSDKBindings` work without arguments. r=snorp
I'm not sure how this ever worked in the `android-gradle-dependencies`
task -- it must have been because of `--continue`.

Differential Revision: https://phabricator.services.mozilla.com/D12793

--HG--
extra : moz-landing-system : lando
2018-11-26 21:43:30 +00:00
Dorel Luca 508e50ac02 Backed out 6 changesets (bug 1509572) for linting failure. CLOSED TREE
Backed out changeset 9f6a7e664cef (bug 1509572)
Backed out changeset f6653c7d2967 (bug 1509572)
Backed out changeset 122d6f1a1136 (bug 1509572)
Backed out changeset bc6911d14ae0 (bug 1509572)
Backed out changeset bd0729ff0bbc (bug 1509572)
Backed out changeset c4087e8ea340 (bug 1509572)
2018-11-26 23:21:28 +02:00
Nick Alexander 87610d0bca Bug 1509572 - Part 4: Make `geckoview:generateSDKBindings` work without arguments. r=snorp
I'm not sure how this ever worked in the `android-gradle-dependencies`
task -- it must have been because of `--continue`.

Depends on D12792

Differential Revision: https://phabricator.services.mozilla.com/D12793

--HG--
extra : moz-landing-system : lando
2018-11-26 19:16:39 +00:00
Agi Sferro a20e4c23c7 Bug 1458668 - Enforce changelog for GeckoView; r=snorp
This patch integrates with apilint changelog feature to ensure we update the
changelog file every time the api changes.

It also adds a high level overview of the changes in v65.

See also: https://github.com/mozilla-mobile/gradle-apilint#changelog

Differential Revision: https://phabricator.services.mozilla.com/D12550

--HG--
extra : moz-landing-system : lando
2018-11-26 16:27:06 +00:00
James Willcox 7f4954743b Bug 1485045 - Make Java parts of GeckoView independent from build ABI r=jchen
This allows us to use the same Java code for any native platform,
enabling a "fat" AAR.

Differential Revision: https://phabricator.services.mozilla.com/D11497

--HG--
extra : moz-landing-system : lando
2018-11-23 20:32:40 +00:00
Cosmin Sabou e131918f50 Backed out changeset bae43dfd3700 (bug 1485045) for toolchains gradle bustages. CLOSED TREE 2018-11-21 17:46:44 +02:00
James Willcox b57f71e494 Bug 1485045 - Make Java parts of GeckoView independent from build ABI r=jchen
This allows us to use the same Java code for any native platform,
enabling a "fat" AAR.

Differential Revision: https://phabricator.services.mozilla.com/D11497

--HG--
extra : moz-landing-system : lando
2018-11-21 15:22:06 +00:00
Agi Sferro 7c73e99698 Bug 1506267 - Use apilint to track API changes in api.txt. r=snorp,nalexander.
Depends on D12047

Differential Revision: https://phabricator.services.mozilla.com/D11821

--HG--
extra : moz-landing-system : lando
2018-11-19 16:03:43 +00:00
Cosmin Sabou b3241c824a Backed out 3 changesets (bug 1506267) for apilint build bustage. CLOSED TREE
Backed out changeset 7a53f4ea811b (bug 1506267)
Backed out changeset 5d1c5593fdf3 (bug 1506267)
Backed out changeset 32e919db3735 (bug 1506267)
2018-11-17 00:54:14 +02:00
Agi Sferro 4df8cf48ad Bug 1506267 - Use apilint to track API changes in api.txt. r=snorp,nalexander.
Depends on D12047

Differential Revision: https://phabricator.services.mozilla.com/D11821

--HG--
extra : moz-landing-system : lando
2018-11-16 20:27:14 +00:00