Commit graph

39 commits

Author SHA1 Message Date
Sylvestre Ledru
df3b9c7183 Bug 1464869 - Fix flake8/pep8 issue by hand in mobile/ r=nalexander
MozReview-Commit-ID: 3cG5FY3F2G5

--HG--
extra : rebase_source : 1d0ad39b593bc6ae29d3d94bb8763928d6e06a46
2018-06-04 22:37:17 +02:00
Sylvestre Ledru
4bf3bc91da Bug 1464869 - autopep8 on mobile/ r=nalexander
MozReview-Commit-ID: HtIcv2IeDMy

--HG--
extra : rebase_source : e228c0b96309240555baebb5ba523ad842e6c05e
2018-06-04 22:20:22 +02:00
William Lachance
7580f75456 Bug 1461772 - Submit display version as a property of the fennec core ping r=gsvelto
MozReview-Commit-ID: BFwgwOOo83s

--HG--
extra : rebase_source : 986add321c25e233702f1540127c19babd365797
2018-05-15 15:11:35 -04:00
James Willcox
4aff5b53c7 Bug 1452983 - Don't define MOZ_MIN_CPU_VERSION as it's unused r=jchen
This was apparently used to do different things with ARMv6 builds, which
we no longer have.

MozReview-Commit-ID: EV0KPfjnMca
2018-04-11 10:00:31 -05:00
Nick Alexander
5d736e0310 Bug 1439459 - Expose MOZ_ANDROID_GOOGLE_PLAY_SERVICES to AndroidManifest.xml. r=Grisha
This was oversight when landing Bug 1419581, coupled with dedicated
testing by Grisha.  We don't expose all CONFIG values as DEFINES by
default, and I forgot to add the relevant value to the exposure list.

MozReview-Commit-ID: GUYNWampBAJ

--HG--
extra : rebase_source : f946f2630f2e9120d03b05a4677815e73ab6851a
2018-02-20 10:06:13 -08:00
Nick Alexander
a562b72999 Bug 1221344 - Remove Fennec Search Activity. r=gueroJeff,sebastian,snorp
MozReview-Commit-ID: L7rihfeqvzH

--HG--
extra : rebase_source : 3170b86ef2c95e642c451c3e9bbe9db83bc9edcf
2017-10-19 14:14:36 -07:00
Mike Shal
9e6798ac00 Bug 1402012 - Update buildconfig.py to use PartialConfigEnvironment; r=glandium
By using the PartialConfigEnvironment, the clients of buildconfig will
depend on config.statusd/ files instead of config.status directly.
Clients can access substs and defines using buildconfig.substs['FOO'] or
buildconfig.defines['BAR'], and then collect file-level dependencies for
make using buildconfig.get_dependencies(). All GENERATED_FILES rules
already make use of this because file_generate.py automatically includes
these dependencies (along with all python modules loaded).

As a result of this commit, re-running configure will no longer cause
the world to be rebuilt. Although config.status is updated, no build
steps use config.status directly and instead depend on values in
config.statusd/, which are written with FileAvoidWrite. Since those
files are not official targets according to the make backend, make won't
try to continually rebuild the backend when those files are out of date.
And since they are FileAvoidWrite, make will only re-run dependent steps
if the actual configure value has changed.

As a result of using JSON to load data from the config.statusd
directory, substs can be unicode (instead of a bare string type).
generate_certdata.py converts the subst manually to a string so the
value can be exported to the environment without issue on Windows.

Additionally, patching the buildconfig.substs dict no longer works, so
the unit-symbolstore.py test was modified to patch the underlying
buildconfig.substs._dict instead.

The other files that needed to be modified make use of all the defines
for the preprocessor. Those that are used during 'mach build' now use
buildconfig.defines['ALLDEFINES'], which maps to a special
FileAvoidWrite file generated for the PartialConfigEnvironment.

MozReview-Commit-ID: 2pJ4s3TVeS8

--HG--
extra : rebase_source : d6bb0208483f9f043e7be1b36907ca13243985f8
2017-08-24 22:52:01 -04:00
Julian_Chu
61b790f58d Bug 1329152 - Enable custom tabs by default r=sebastian
Remove related options, just use CustomTabs directly.

MozReview-Commit-ID: DdcMHnsfAU1

--HG--
extra : rebase_source : bc46d5d71d53acadc2cb0415790e9560eeda2c8a
2017-04-10 17:32:16 +08:00
Chenxia Liu
a1a7533bc4 Bug 1393321 - Actually define MOZ_ANDROID_POCKET. r=mcomella
MozReview-Commit-ID: BoY1KCEDYsY

--HG--
extra : rebase_source : 70d573989b8810e91525295aa10a9832e24f71cd
2017-08-23 18:51:51 -07:00
Nevin Chen
7ef4d3ebee Bug 1391575 - Move MMA GCM sender ID to config file r=maliu,nalexander
MozReview-Commit-ID: Iro4cszQrpF

--HG--
extra : rebase_source : 640614062d699413afdf15c29606a3bfff2d461b
2017-08-18 18:12:11 +08:00
Chenxia Liu
4535430990 Bug 1389257 - Set MOZ_ANDROID_POCKET only for nightly, beta, release builds. r=chmanchester
MozReview-Commit-ID: JRgBimDVRa6

--HG--
extra : rebase_source : 6d027108555c89d5dff82309df7d9d6792256ceb
2017-08-10 15:36:58 -07:00
Chenxia Liu
9c27584fe8 Bug 1386906 - Add Pocket keys to build system. r=chmanchester
MozReview-Commit-ID: 8fjcSkn1P7P

--HG--
extra : rebase_source : bb7d2a561517decdf3b05badaced27ea9e7e2000
2017-08-09 12:11:10 -07:00
Wes Kocher
b6e3e08c6d Backed out changeset 59bc932c44ea (bug 1386906) for breaking single locale fennec builds a=bustage
MozReview-Commit-ID: 4z1nq8Z9gnV
2017-08-11 12:30:22 -07:00
Chenxia Liu
8b3a0e7bc2 Bug 1386906 - Add Pocket keys to build system. r=chmanchester
MozReview-Commit-ID: 8fjcSkn1P7P

--HG--
extra : rebase_source : 42c608d41e1262d0985dd9f59946a0732a971abc
2017-08-09 12:11:10 -07:00
Nick Alexander
23b90d5c28 Bug 1352602 - Part 1: Don't AC_DEFINE ANDROID_TARGET_SDK, MOZ_ANDROID_{MIN,MAX}_SDK_VERSION. r=chmanchester
This is just a small piece in the larger project of minimizing the set
of global AC_DEFINEs.  None of these are relevant to C/C++ code;
they're mobile/android specific, so we should get them out of
mozilla-config.h.

In addition, this replaces hard-coded values with values from the
build system throughout mobile/android.

MozReview-Commit-ID: 9IJlsm38LFK

--HG--
extra : rebase_source : 0e55c0967cbb7f0df0d297eb330fc615e5759346
2017-06-21 11:16:08 -07:00
Julian_Chu
6a63d0bc4d Bug 1376486 - Add PWA experimental feature preference r=daleharvey,sebastian
To test PWA, we must manually enable "manifest.install.enabled" in
about:config. This is not convenient for development or testing.

Now we try to add a preference option.

MozReview-Commit-ID: LbrNgZmAeUm

--HG--
extra : rebase_source : 0c2b3b2e9c05e962da870672c07ecb32202f1fd5
2017-06-28 01:18:54 -07:00
friedger
ab7ccca330 Bug 1369673 - remove flag localeSwitchingIsEnabled from GeckoPreferences r=nalexander
remove the flag from GeckoPreferences as it is always true

MozReview-Commit-ID: J5bJwnaRFDa

--HG--
extra : rebase_source : 012ae9f1a220c7fd98f0b88c64dcbae4ad85b70c
2017-06-14 13:50:49 +02:00
Carsten "Tomcat" Book
59fc3e791f Backed out changeset 3e06253547af (bug 1329152) on developers request / bug 1371561 2017-06-12 08:58:10 +02:00
Michael Kaply
80449040b7 Bug 1367201 - Add MOZ_ANDROID_MOZILLA_ONLINE build flag to support MozillaOnline (Mozilla China) custom code. r=nalexander
MozReview-Commit-ID: BB0dcmLez0w

--HG--
extra : rebase_source : fdfb55bc9a77798f334f6fb1de78c63eb4852659
2017-06-05 14:42:53 -05:00
Julian_Chu
d432b78932 Bug 1329152 - Enable custom tabs by default r=sebastian
Remove related options, just use CustomTabs directly.

MozReview-Commit-ID: DdcMHnsfAU1

--HG--
extra : rebase_source : bc081e180eca920979d8f4557751cf98c27c51de
2017-04-10 17:32:16 +08:00
Nevin Chen
0f2aff9431 Bug 1361664 - Part2. Create MVP Triggers and Deeplinks for Mobile Marketing Automatin. r=maliu
This patch do 6 things. They are related so I put them in the same patch.
1. Extract MmaEvent Name
2. If MMA is diabled, don't send event.
3. Add check before sending 'Set Default Borwser' deep link
4. Add user attribute for delay messaging focus install status.
5. If the user pref off at runtime, we ask Leanplum to stop and prevent our app sending event to Leanplum.
6. Fix proguard. Only keep necceary files.

MozReview-Commit-ID: APEmr1JXBLH

--HG--
extra : rebase_source : 35b54c11004905c950c1ace84507554a2e1b4f39
2017-05-17 01:25:45 +08:00
Nick Alexander
b6fef5fc95 Bug 1365089 - Add MOZ_ANDROID_MMA and --with-leanplum-sdk-keyfile to configure. r=chmanchester
This is the equivalent of MOZ_INSTALL_TRACKING, but for MMA (Mobile
Marketing Automation) using the Leanplum SDK.

To test this locally, add lines like:

export MOZ_ANDROID_MMA=1
ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk-developer.token

MOZ_ANDROID_MMA depends on MOZ_NATIVE_DEVICES and MOZ_ANDROID_GCM,
since Leanplum requires Google Play Services library that those flags
are a proxy for and enable, respectiviely.

We want to enable MOZ_ANDROID_MMA in Nightly, but only for
MOZILLA_OFFICIAL builds.  Since MOZILLA_OFFICIAL is still defined in
old-configure.in, we can't interrogate it in
mobile/android/moz.configure, and therefore we enable using the
automation mozconfigs.

MozReview-Commit-ID: 1tiToeyH5Hx

--HG--
extra : rebase_source : f85706c5a0911c7d2edc109d8c47ecc1c1bc6ffc
2017-05-26 12:31:20 -07:00
Sebastian Hengst
66d9eb3103 Backed out changeset 9c7688e54e92 (bug 1365089) for breaking Android L10n nightlies. r=backout a=backout
MozReview-Commit-ID: FxH7nBskSNj
2017-05-28 16:53:10 +02:00
Nick Alexander
0a0a08ec4c Bug 1365089 - Add MOZ_ANDROID_MMA and --with-leanplum-sdk-keyfile to configure. r=chmanchester
This is the equivalent of MOZ_INSTALL_TRACKING, but for MMA (Mobile
Marketing Automation) using the Leanplum SDK.

To test this locally, add lines like:

export MOZ_ANDROID_MMA=1
ac_add_options --with-adjust-sdk-keyfile=/path/to/adjust-sdk-developer.token

MOZ_ANDROID_MMA depends on MOZ_NATIVE_DEVICES and MOZ_ANDROID_GCM,
since Leanplum requires Google Play Services library that those flags
are a proxy for and enable, respectiviely.

We want to enable MOZ_ANDROID_MMA in Nightly, but only for
MOZILLA_OFFICIAL builds.  Since MOZILLA_OFFICIAL is still defined in
old-configure.in, we can't interrogate it in
mobile/android/moz.configure, and therefore we enable using the
automation mozconfigs.

MozReview-Commit-ID: 1tiToeyH5Hx

--HG--
extra : rebase_source : 5390cf8c5c2eb7ffe675757b372debbb639bc900
2017-05-26 12:31:20 -07:00
Sebastian Hengst
1e43f4ab4d Backed out changeset 87e59d65e1b2 (bug 1367201) for crashes in Android's robocop tests, e.g. testANRReporter. r=backout 2017-05-25 22:57:18 +02:00
Michael Kaply
b19ff2b4a2 Bug 1367201 - Add MOZ_ANDROID_MOZILLA_ONLINE build flag to support MozillaOnline (Mozilla China) custom code. r=nalexander
MozReview-Commit-ID: BB0dcmLez0w

--HG--
extra : rebase_source : d14a9094a3e8a6008f86fcb4d5efc1af6b0bbb24
2017-05-23 15:36:10 -05:00
cnevinc
e272eb73ae Bug 1351585 - Part 2. Add build flag and change our existing build system to inject leanplum implementation r=nalexander
MozReview-Commit-ID: uN7imeGYcj

--HG--
extra : rebase_source : 215b3c9b2df20d2fbc5f8679568509c3cc430a48
2017-05-13 14:08:57 -07:00
Nick Alexander
9c8fde7730 Bug 1254355 - Follow-up: Use #ifdef, not #if, for MOZ_CRASHREPORTER. r=gps
On a CLOSED TREE

Style varies across the tree, and this matters as we transition to
Python and moz.build.  AppConstants.jsm already uses #ifdef, so this
is consistent with that.

MozReview-Commit-ID: Bal37lqlvjq

--HG--
extra : source : 41d155de1019c0c6c693e2bf46bd1dd7b91d244a
extra : amend_source : 989f6ba2447a2b40d4bc6604241d7986c0d5dd00
2017-04-18 17:26:15 -07:00
Nick Alexander
2bb32a2659 Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps,mshal
MozReview-Commit-ID: BVYylS4qsP1

--HG--
extra : rebase_source : 6a9307175a8e876562571e0e5f276fff59c601db
extra : source : 6a0e9a3f26735b442f289c65c231986e1f829f9e
2017-04-25 13:42:19 -07:00
Sebastian Hengst
8f6b13e209 Backed out changeset 41d155de1019 (bug 1254355) on suspicion of breaking Android L10n nightlies. r=backout a=backout
MozReview-Commit-ID: 4VnZVlHUYUA
2017-04-23 10:41:09 +02:00
Sebastian Hengst
eaf61dee27 Backed out changeset 6a0e9a3f2673 (bug 1254355)
MozReview-Commit-ID: 4Xr3OibxQMU
2017-04-23 10:40:28 +02:00
Nick Alexander
d1d66db6c9 Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps
MozReview-Commit-ID: 8McGHkPYyhI

--HG--
extra : rebase_source : 7e2e6f9f901956c34089335157ce4fe754cf2472
2017-04-17 13:47:41 -07:00
Nick Alexander
45d40668a3 Bug 1254355 - Pre: Use #ifdef, not #if, for MOZ_CRASHREPORTER. r=gps
Style varies across the tree, and this matters as we transition to
Python and moz.build.  AppConstants.jsm already uses #ifdef, so this
is consistent with that.

MozReview-Commit-ID: Bal37lqlvjq

--HG--
extra : rebase_source : 8e4e459a9bdbc3a2cacde728f45e6edecc272e24
2017-04-18 17:26:15 -07:00
Sebastian Hengst
0e96a7ee95 Backed out changeset a5af7f7132f6 (bug 1254355) for failing android lint job (unused file crash_reporter.png). r=backout 2017-04-19 01:05:06 +02:00
Nick Alexander
5918c2009b Bug 1254355 - Part 2: Generate AndroidManifest.xml using GENERATED_FILES. r=gps
MozReview-Commit-ID: 8McGHkPYyhI

--HG--
extra : rebase_source : 0789187e4c3a589060dcd9913f376410a390a6f7
2017-04-17 13:47:41 -07:00
Nick Alexander
7c46e515ed Bug 1254355 - Part 1: Prepare to generalize generate_build_config. r=gps
I'm taking another kick at this.  Since glandium's negative review of
older patches a year ago, generate_build_config.py landed (with your
r+, gps).  These patches extend that mechanism to generate
AndroidManifest.xml.  This sets the stage for that.

This is all in service of Bug 1355625, which will need the
generate_build_config.py extension point to do things that the
preprocessor cannot handle: generating Java code, copying resource
files, and merging resource XML declarations.

MozReview-Commit-ID: AcyC3CBMQl1

--HG--
extra : rebase_source : c379b07de4b9f9b4bfe53e6a0adac13f08a71c73
2017-04-17 13:38:24 -07:00
Wes Kocher
fc99a82dae Backed out 3 changesets (bug 1348820) for testANRReporter failures on Android rc1 a=backout
Backed out changeset 2fffcd4ce3e4 (bug 1348820)
Backed out changeset 387d0326e3a0 (bug 1348820)
Backed out changeset 4775bb6e6b61 (bug 1348820)

MozReview-Commit-ID: 7e1oQSPE7kX
2017-03-23 14:45:57 -07:00
Sebastian Kaspari
074e92e4fe Bug 1348820 - Remove MOZ_ANDROID_ACTIVITY_STREAM build flag. r=Grisha
This flag wasn't used in the build system anyways. It was used to hide early builds of the
new Activity Stream UI. However this is now going to be controlled by Switchboard experiments.

MozReview-Commit-ID: Dfzw9YGgHkN

--HG--
extra : rebase_source : 2ecd3fb18a237f0de8e7d4752d69de568c062310
2017-03-20 14:31:33 +01:00
Nick Alexander
c01c5a1e15 Bug 1291366 - Part 1: Use GENERATED_FILES to produce AppConstants.java. r=gps
This patch lays the groundwork for two things.  First, it paves the
way for splitting AppConstants.java into two parts, a GeckoView part
and a Fennec part.  This is necessary because the Makefile.in
preprocessing is not flexible enough to write two separate GeckoView
and Fennec constants files into different directories.

Second, this allows us to more flexibly generate the file contents.
Gradle has a way to get compile-time constants into Java code, which
we want to migrate to.  The details don't matter right here, but this
paves the way to move from preprocessing to generating the
Gradle-style BuildConfig files while we continue to support both build
systems.

MozReview-Commit-ID: 2o8X99uLoaM

--HG--
extra : rebase_source : 54164d685b9c2b1342b1acba2913ce07b906a7d6
2016-11-14 20:06:31 -08:00