Commit Graph
79 Commits
Author SHA1 Message Date
Jan Henning 062fc8440d Bug 1385695 - Propagate "app" debug/release build type to dependencies. r=sebastian
Even when building the "app" module in debug mode, by default Gradle still chooses to build all dependencies in release mode, which means that all of our own source files that reside in such a library (geckoview, respectively thirdparty) will e.g. be missing debug info for local variables.

MozReview-Commit-ID: owZr9yKtYI
2017-07-30 13:55:11 +02:00
Nevin Chen b8ddac9db6 Bug 1392224 - Make Fennec the default handler for Leanplum Push Notification. r=maliu
MozReview-Commit-ID: GiXHPvcPhgp
2017-08-22 13:40:17 +08:00
Nevin Chen e03189d3e4 Bug 1386151 - Enable Push Notification feature for Leanplum. r=maliu
MozReview-Commit-ID: HR86F3T0KsY
2017-07-31 17:32:35 +08:00
Nick Alexander dc02a72061 Bug 1352602 - Part 2: Use build system SDK versions in Gradle configurations. r=maliu
This patch does two things:

- add a Gradle-only ANDROID_COMPILE_SDK_VERSION substitution;
- uses it while uniformizing all of the Gradle Android SDK version
  configurations.

The approach is fairly standard (and we were using it already); see,
for example
https://medium.com/@ali.muzaffar/gradle-configure-variables-for-all-android-project-modules-in-one-place-5a6e56cd384e

This will make bumping the Gradle configuration versions forward
easier.

MozReview-Commit-ID: 1j5siCvR5qt
2017-06-21 10:52:30 -07:00
Wes Kocher a025b1fe96 Backed out 2 changesets (bug 1355625) for causing bustage a=backout
Backed out changeset 0b7af9b62aff (bug 1355625)
Backed out changeset b44a1a078e64 (bug 1355625)

MozReview-Commit-ID: JRmf8nbLFPP
2017-06-22 12:05:56 -07:00
Nick Alexander a5649fc6e6 Bug 1374832 - Don't depend on com.google.android.gms:play-services-ads when MMA/Leanplum is enabled. r=maliu
MozReview-Commit-ID: Hf4ZikszNey
2017-06-20 15:26:14 -07:00
Nick Alexander 1ac0c3eb58 Bug 1355625 - Part 2: Tweak the Gradle build to agree more with moz.build. r=nalexander
MozReview-Commit-ID: DMoxPnla3Ij
2017-06-20 11:19:32 -07:00
Nevin Chen 53f0e20635 Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV
2017-05-24 11:23:10 +08:00
Nevin Chen 76c4e24a82 Bug 1358117 - Add pref to turn on/off leanplum. r=maliu,sebastian
MozReview-Commit-ID: 8LHvMPSxAdl
2017-05-18 19:27:13 +08:00
Sebastian Hengst bebf609e0a Backed out changeset 08b93bba921c (bug 1358117) for Android Nightly bustage. r=backout a=backout
MozReview-Commit-ID: IgiZGwOZ3tD
2017-05-27 14:01:55 +02:00
Sebastian Hengst c8d117c720 Backed out changeset 44e144a782e1 (bug 1361664) for Android Nightly bustage. r=backout a=backout
MozReview-Commit-ID: L3hDVLxBkoJ
2017-05-27 14:01:07 +02:00
Nevin Chen d31f1f3859 Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV
2017-05-24 11:23:10 +08:00
Nevin Chen 3302a7b62d Bug 1358117 - Add pref to turn on/off leanplum. r=maliu,sebastian
MozReview-Commit-ID: 8LHvMPSxAdl
2017-05-18 19:27:13 +08:00
Sebastian Hengst 960a7e8c0d Backed out changeset c77265a29cc7 (bug 1358117) for mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java:25: error: cannot find symbol, e.g. in findbugs job. r=backout on a CLOSED TREE 2017-05-26 20:24:18 +02:00
Nevin Chen a8811d1c7d Bug 1358117 - Add pref to turn on/off leanplum. r=maliu,sebastian
MozReview-Commit-ID: 8LHvMPSxAdl
2017-05-18 19:27:13 +08:00
Sebastian Hengst 814113493e Backed out changeset fba7b035a4f9 (bug 1358117) for bustage at mobile/android/base/java/org/mozilla/gecko/mma/MmaDelegate.java:25: symbol not found. r=backout 2017-05-26 13:42:06 +02:00
Sebastian Hengst 67c309cb40 Backed out changeset f54fb8956671 (bug 1361664) so bug 1358117 can be backed out. r=backout 2017-05-26 13:41:23 +02:00
Nevin Chen eedac835bc Bug 1361664 - Part1. Udate MMA API, make init() accept activity. r=maliu
MozReview-Commit-ID: AcfoeCPV8SV
2017-05-24 11:23:10 +08:00
Nevin Chen 49487418b1 Bug 1358117 - Add pref to turn on/off leanplum. r=maliu
MozReview-Commit-ID: 8LHvMPSxAdl
2017-05-18 19:27:13 +08:00
cnevinc c1fe9fc7d2 Bug 1351585 - Part 1. Add Leanplum SDK source code to thirdparty module r=maliu
MozReview-Commit-ID: 6r7ZGpAww2n
2017-05-13 14:05:09 -07:00
Nick Alexander d98dbfec90 Bug 1353055 - Strip 'vars' debugging information when building Fennec --with-gradle. r=ahunt
To observe the difference, use `javap -l`.  For example, for
automationRelease and automationDebug built with `./mach gradle clean
app:assembleAutomationRelease app:assembleAutomationDebug`, I see
locally:

$ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/release/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class
Compiled from "ActivityStreamContextMenu.java"
class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> {
  final android.view.MenuItem val$bookmarkItem;

  final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0;

  org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem);
    LineNumberTable:
      line 103: 0

  <snip>
}

$ javap -l objdir-droid/gradle/build/mobile/android/app/intermediates/classes/automation/debug/org/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu\$1.class
Compiled from "ActivityStreamContextMenu.java"
class org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1 extends org.mozilla.gecko.util.UIAsyncTask$WithoutParams<java.lang.Boolean> {
  final android.view.MenuItem val$bookmarkItem;

  final org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu this$0;

  org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu$1(org.mozilla.gecko.home.activitystream.menu.ActivityStreamContextMenu, android.os.Handler, android.view.MenuItem);
    LineNumberTable:
      line 103: 0
    LocalVariableTable:
      Start  Length  Slot  Name   Signature
          0      16     0  this   Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu$1;
          0      16     1 this$0   Lorg/mozilla/gecko/home/activitystream/menu/ActivityStreamContextMenu;
          0      16     2    x0   Landroid/os/Handler;

  <snip>
}

MozReview-Commit-ID: 3HmiGkHhowQ
2017-04-03 13:41:11 -07:00
maliu 39ec935cf6 Bug 1321981 - [RTL] ViewPager Support - part 3. Skip set current item if adapter is empty, r=sebastian
MozReview-Commit-ID: L82yxhdG5bd
2017-03-21 14:58:03 +08:00
maliu ea95b172a1 Bug 1321981 - [RTL] ViewPager Support - part 2. Notify dataset change with calling super, r=sebastian
MozReview-Commit-ID: LUvWH3Sq8IJ
2017-03-21 14:49:40 +08:00
maliu f9f8de25b2 Bug 1321981 - [RTL] ViewPager Support - part 1. Import thirdparty RtlViewPager, r=sebastian
MozReview-Commit-ID: E3VP2SoRKTt
2017-03-21 13:47:23 +08:00
Sebastian Hengst b64ffd69f6 Bug 1336311 - Change code comments with http://hg.mozilla.org to https://. r=gps
For components also referencing it in code, see the blockers of bug 1336311.

MozReview-Commit-ID: 4tUZ24HKBWy
2017-02-07 17:52:56 +01:00
Swaroop Rao 36b3e1de43 Bug 1328837 - Move 'Switchboard' code into our module/package. Refactored SwitchBoard component to pull it into the app module. r=sebastian
MozReview-Commit-ID: HfypfVFdPwP
2017-01-28 16:26:13 -05:00
Nick Alexander 872d085d9b Bug 1291363 - Add geckoview and geckoview_example Gradle projects. r=jchen,sebastian
We need to bump the Gradle Deps task, which fetches dependencies, to
include new test dependencies; and use freshly uploaded tooltool
archives (manually uploaded) containing the new test dependencies.

MozReview-Commit-ID: 8bNOVQPHlk6
2016-10-05 20:23:38 -07:00
Nick Alexander dd1098bd5d Bug 1303468 - Follow-up: Unbust Gradle lint. r=me
MozReview-Commit-ID: IWB0CMVuNPr
2016-09-19 14:54:24 -07:00
Nick Alexander a983768045 Bug 1303468 - Part 1: Move more things into GeckoView. r=jchen
MozReview-Commit-ID: CEjyq0TFn6j
2016-09-16 15:53:39 -07:00
Sebastian Kaspari ca39b69b8a Bug 1290014 - Add DiskLruCache library. r=ahunt,Grisha
This patch adds the known and widely used disk LRU cache library by Jake Wharton [1].
It's a standalone version of the disk LRU cache found in the AOSP tree.

The goal is to use a flat file disk cache to avoid the overhead of storing blobs
in a database [2] (and some bugs like bug 1108084).

[1] https://github.com/JakeWharton/DiskLruCache
[2] https://wiki.mozilla.org/Performance/Avoid_SQLite_In_Your_Next_Firefox_Feature

MozReview-Commit-ID: 2ayN7SYVe4W
2016-07-27 16:20:00 +02:00
Andrzej Hunt f041db3906 Bug 1280382 - Catch ClassCastException that may occur on return from generic method r=mcomella
MozReview-Commit-ID: BfiAMAEY1jY
2016-07-05 09:29:30 -07:00
Tarek Ziadé 8045789f63 Bug 1271860 - Move switchboard logic to client to consume JSON config directly - r=sebastian
MozReview-Commit-ID: C3W8qf2nbVq
2016-07-05 15:55:54 +02:00
Sebastian Kaspari e453c1b610 Bug 1274955 - Extract Android dependency versions. r=glandium
MozReview-Commit-ID: FXwWjWIXke4
2016-05-23 13:20:43 +02:00
Margaret Leibovic 8d923e0a5b Bug 1270929 - (Part 2) Create Experiments.setOverride/clearOverride API to allow add-ons to force enable/disable experiments. r=sebastian
MozReview-Commit-ID: 1tCstZwVl9T
2016-05-07 16:44:00 -04:00
Margaret Leibovic 0a5c8a5b89 Bug 1270929 - (Part 1) Remove support for specifying UUID from intent extra. r=sebastian
MozReview-Commit-ID: XUUkxD7261
2016-05-07 12:54:14 -04:00
Margaret Leibovic 5ab6f9e513 Bug 1262811 - Remove unnecessary Switchboard logging. r=sebastian
MozReview-Commit-ID: 7y25PagX9E1
2016-04-07 11:08:19 -04:00
Margaret Leibovic 5c9a75631f Bug 1262811 - Don't accidentally log a null message. r=sebastian
MozReview-Commit-ID: DGAAGMZyNlG
2016-04-07 11:04:00 -04:00
Margaret Leibovic 52ede53414 Bug 1261713 - (Part 3) Refactor and add tests for extra experiment values support. r=sebastian
MozReview-Commit-ID: A1enTZO7f9X
2016-04-03 18:24:29 -04:00
Margaret Leibovic 3d76cf622d Bug 1261713 - (Part 2) Refactor isInExperiment and add unit test. r=sebastian
MozReview-Commit-ID: 7etdTcolf26
2016-04-03 18:08:15 -04:00
Margaret Leibovic 5d1a1ba93b Bug 1261713 - (Part 1) Add unit test for DeviceUuidFactory.java. r=sebastian
MozReview-Commit-ID: 16iy9tvgg8x
2016-04-03 17:58:12 -04:00
Margaret Leibovic ef3ea0638d Bug 1207719 - (Part 2) Change Switchboard to combine network requests for experiments and server configurations into a single network fetch. r=sebastian
MozReview-Commit-ID: c38pPvDrT8
2016-04-03 17:20:44 -04:00
Margaret Leibovic c8c6148f4d Bug 1207719 - (Part 1) Convert tabs to spaces. r=sebastian
MozReview-Commit-ID: EyzXCnv1Nnk
2016-04-01 18:23:13 -04:00
Sebastian Kaspari e270436c2d Bug 1255162 - Replace NineOldAndroids with system API. r=liuche
NineOldAndroids is a backport of the animation API that was introduced with Honeycomb.
Since we stopped supporting Gingerbread we do not need this library anymore and can
just use the system API.

MozReview-Commit-ID: Fv6ALlIktt5
2016-03-10 13:38:28 +01:00
Chenxia Liu bdfd06ed88 Bug 1201653 - Provide a way to self-select into a specific experiment [Switchboard]. r=margaret 2016-02-03 16:49:09 -08:00
Sebastian Kaspari 6b54d9dcbf Bug 1238066 - Add LeakCanary to local (gradle) builds. r=nalexander
This patch adds LeakCanary to gradle builds and the no-op library to
mach-based builds.
2016-01-21 12:35:21 +01:00
Sebastian Kaspari edb830abd4 Bug 1207194 - Set targetSdkVersion to 23. r=nalexander 2016-01-11 11:58:14 +01:00
Richard Newman aee6723182 Bug 1237342 - Drop support for Android API 14 from Firefox builds. r=nalexander 2016-01-06 10:43:46 -08:00
Richard Newman 0f11c042b8 Bug 1155801 - Part 3: bump all build.gradle files to minSdkVersion 14. 2015-12-30 18:59:17 -08:00
Nigel Babu d693927f3b Backed out changeset 995c8eadd377 (bug 1155801) 2015-12-31 13:57:28 +05:30
Richard Newman 55cc67de87 Bug 1155801 - Part 3: bump all build.gradle files to minSdkVersion 14. 2015-12-30 18:59:17 -08:00