Commit Graph
59 Commits
Author SHA1 Message Date
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
Richard Newman 2b008ec3f2 No bug - Fix logging error in SwitchBoard. 2015-12-11 12:11:42 -08:00
Mark Finkle cebc5880b6 Bug 1210088 - Make sure the Switchboard config fetch acts like a true HTTP GET r=margaret 2015-10-22 01:06:15 -04:00
Nick Alexander 10eb9ee2ae Bug 1123416 - Part 5: Make a 'thirdparty' Gradle project in the source directory. r=sebastian
I don't want to cut consumers of $OBJDIR/mobile/android/gradle over
yet, so this doesn't remove the existing 'thirdparty' project.
2015-10-20 15:32:50 -07:00
Nick Alexander 4b1423fb8e Bug 1174244 - Switch in-tree Adjust SDK to use ch.boye instead of org.apache.http. r=sebastian 2015-10-20 12:35:08 -07:00
Mark Finkle 72a54f2706 Bug 1198009 - Add a broadcast notification to SwitchBoard after network configuration fetch r=rnewman 2015-09-12 19:26:31 -04:00
Mark Finkle b4612183fb Bug 1198009 - Add SwitchBoard.getActiveExperiments r=rnewman 2015-09-12 19:26:14 -04:00
Mark Finkle 5cee4f3ece Bug 1202154 - Switchboard does not catch Locale related exceptions r=nalexander 2015-09-08 23:49:07 -04:00
Mark Finkle 911afb7286 Bug 1201384 - Add support for determining Switchboard buckets locally r=chenxia 2015-09-08 23:28:01 -04:00
Mark Finkle 28aaea3e77 Bug 1196897 - Integrate Switchboard SDK (A/B Testing) into Fennec r=nalexander
Pulled from https://github.com/KeepSafe/Switchboard/commit/38361eb4dcb20292727c190e8c7a20f3fefd26cf
2015-08-27 13:49:30 -04:00
Nick Alexander a92fc0c0c3 Bug 964854 - Reveal cause of exception. r=rnewman
This fixes an oversight from Bug 1042929, which neglected to push the
underlying exception cause through to the final exception.
2015-06-19 10:50:34 -07:00
Nick Alexander 57b70035f2 Bug 1151619 - Add Adjust SDK license. r=gerv 2015-05-11 14:05:06 -07:00
Mark Finkle c057f857cf Bug 1143888 - Integrate the Adjust install tracking SDK. r=mfinkle 2015-04-08 22:49:16 -07:00
Michael Comella 4d81cf933a Bug 1056002 - Backout changeset c56275d516ec. r=mfinkle
This change caused a lot of fullscreen issues (see the dependent bugs).
2015-02-24 16:12:32 -08:00
Nick Alexander 731d6654ef Bug 1098239 - Rewrite mobile/android Gradle integration. r=me
This is a big patch, but it's essentially NPOTB.  The part that is POTB
is ... removing Gradle integration from the build.  I've implemented
|mach gradle-install| as a substitute for the build system stuff; it's
just so much easier to iterate on a mach command than a moz.build and
Makefile.in.

I'm landing this with self-review because this lessens the impact of the
Gradle integration on the build system and because I am the only person
who understands either the old or the new system.

You'll need to run |mach gradle-install| at top level to configure the
new Gradle integration.  But |mach gradle ...| does the right thing
configuration steps too.

This patch rewrites most of the Gradle integration.  The major changes
are:

* all .gradle files move into mobile/android/gradle;
* all the Gradle projects live in the object directory;
* mozconfig exposed to all build.gradle files;
* simplification of Android configuration between build.gradle files;
* support for user-specified version of build tools;
* first steps towards supporting builds from the source directory;
* bumps Gradle to 2.2.1;
* bumps the Android-Gradle plugin to 0.14.4.

This is seemingly a step backwards given that we'd prefer to ship the
.idea directory in the source directory.  But in fact we get closer to
that; it's possible to run ./gradlew in the source directory and get a
reasonable build.  We'll progress with this in time.  The win right now
is that the projects are nested, which makes importing work better on
Linux machines.

Unfortunately IntelliJ 13 and 14 now have conflicting Android-Gradle
plugin version requirements, so we now only support IntelliJ 14.0.2 and
above.
2014-12-22 19:49:04 -08:00
Nick Alexander 9af6970f83 No bug - Unify android-sync git repo with m-c. r=trivial 2014-11-13 15:32:12 -08:00
Chris Kitching fba6deaf20 Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Wes Kocher 996b588713 Backed out changeset 64a320318bf9 (bug 1098082) for android build bustage 2014-11-12 18:22:25 -08:00
Chris Kitching 0f5f514a5e Bug 1098082: Merge identical catch branches. r=rnewman 2014-11-13 01:21:10 +00:00
Nick Alexander dda6e4f250 Bug 1041395 - Add gradle configuration. r=gps 2014-11-10 13:47:30 -08:00
Lucas Rocha c376c23164 Bug 1081209 - Integrate dspec on non-official builds (r=nalexander) 2014-10-10 18:32:24 +01:00