Commit graph

64 commits

Author SHA1 Message Date
Oscar Mira
45234d5818
Support Gradle read-only dependency cache in Docker builds 2024-07-15 12:45:52 +02:00
Oscar Mira
9a67415dbd Refactor release.yml workflow 2024-03-18 12:09:46 +01:00
Oscar Mira
bd2bc4d005 Merge tag 'v6.20.3' into molly-6.20 2023-05-15 22:31:00 +02:00
Greyson Parrelli
0ea66b6bb0 Update apkdiff to ignore baseline profile. 2023-05-12 10:38:04 -04:00
Greyson Parrelli
1304f4dc39 Update apkdiff.py to return non-zero exit codes on mismatch. 2023-05-10 15:59:26 -04:00
Oscar Mira
de3ae8fc86 Add concurrency constraint to gradle to avoid OOM errors
- Enable Gradle parallel execution.
- Limit max parallelism to 2 for memory intensive tasks.
- Fine-tune JVM args for Gradle and Kotlin daemons.
- Run Kotlin compiler inside Gradle to share the heap in CI workflows.
2023-03-24 12:07:52 +01:00
Oscar Mira
776c42b614 Eliminate Docker dependency for running unit tests 2023-03-22 23:26:58 +01:00
Greyson Parrelli
f91c400f6c Convert build-logic build.gradle to kotlin. 2023-03-04 10:51:41 -05:00
Alex Hart
1e9115a917 Increment compileSdkVersion to 33. 2023-01-17 14:30:48 -05:00
Oscar Mira
0b3450b0b1 Build app bundles 2023-01-07 03:11:52 +01:00
Oscar Mira
f91641339d Add new flavor without apk updater
To be able to publish on app marketplaces. It also changes the name of
the current variants.
2022-12-31 13:21:51 +01:00
Oscar Mira
b4eb4aba84 Merge upstream 'v6.6.3' 2022-12-31 13:03:48 +01:00
Oscar Mira
c789cf23d2 Move Dockerfile to root directory 2022-12-17 17:55:41 +01:00
Oscar Mira
8395d128be Make workflows friendly for forks 2022-12-17 17:55:40 +01:00
Greyson Parrelli
61f9dc7498 Fix possible issue with reproducible builds.
- Needed to update apkdiff.py to ignore some new app-signing-related
  files.
- While I was in there, I cleaned up the script a lot to make it easier
  to read as well as extract files that didn't match.
- We also need to guarantee git hashes are the same length -- the script
  we were calling might provide hashes of different length depending on
  how you checked out the code.

Co-authored-by: inthewaves<26474149+inthewaves@users.noreply.github.com>
2022-12-09 08:53:17 -05:00
Oscar Mira
efb354f9ec Merge upstream 'v5.51.7' 2022-10-06 14:52:44 +02:00
Nicholas Tinsley
b9f4dc3fe9 Specify exported status and PendingIntent mutability.
Also reduce shake sampling frequency, add coarse location permission.
Random things for targetSdk 32.
2022-09-28 11:33:35 -04:00
Oscar Mira
1abbee50d1 Merge upstream 'v5.50.4' 2022-09-27 09:28:28 +02:00
Greyson Parrelli
9a6ed9bcb3 Update Dockerfile to build with compileSdk 32. 2022-09-14 16:42:11 -04:00
Brandon
de09571077 Fix reproducible builds README apk path.
Closes #12349
2022-08-09 16:23:44 -04:00
Oscar Mira
fcb9b7c7dc Clarify that reproducible-builds README.md is versioned 2022-07-18 01:36:17 +02:00
Oscar Mira
07f01cfa12 Bump the version in the reproducible-builds tutorial
Fixes #115
2022-07-18 00:40:30 +02:00
Oscar Mira
08d0e9bdac Merge upstream 'v5.34.6' 2022-03-30 19:10:55 +02:00
Rashad Sookram
90dd6b7cb3 Compile against API level 31. 2022-03-28 19:07:20 -04:00
Rashad Sookram
1ac8701ada Update Gradle to 7.4.1. 2022-03-17 12:12:55 -04:00
Oscar Mira
e2bb3ad832 Add new workflow to test reproducible builds 2022-01-20 19:07:05 +01:00
Oscar Mira
3a5ee99d02 Change apk output directory in Docker 2022-01-20 19:07:05 +01:00
Oscar Mira
e728817f6a Clean up git working tree before building in Docker 2022-01-07 22:43:15 +01:00
Oscar Mira
119b17f03a Update Docker base image to Debian bullseye 2022-01-07 22:43:15 +01:00
Oscar Mira
2acdc04c2c Create alpha and beta releases 2022-01-07 22:43:15 +01:00
Oscar Mira
8e752431b7 Remove unnecessary SDK packages 2021-12-27 11:22:04 +01:00
Oscar Mira
ceb6e31d36 Cache all SDK packages needed in the docker image 2021-12-16 06:21:37 +01:00
Oscar Mira
08232339b5 Verify the hash of the Docker base image 2021-11-11 19:55:28 +01:00
Oscar Mira
1e78d964b5 Update reproducible-builds README 2021-10-20 20:57:58 +02:00
Oscar Mira
983fbf237c Reorder flavor dimensions 2021-10-19 21:05:25 +02:00
Oscar Mira
2b3dbba86c Merge upstream v5.24.14 2021-10-14 21:04:22 +02:00
Oscar Mira
fba8d3bc39 No need to build all modules in docker 2021-09-27 13:35:23 +02:00
Oscar Mira
127764c383 Sign and release staging builds automatically
It runs docker workflow only for version tags.
2021-09-27 13:35:23 +02:00
Alex Hart
662ba85c5a Upgrade to Gradle 7.2 and AGP 7.0.2 2021-09-16 14:17:38 -03:00
Oscar Mira
f6dceda29e Revert "Update multiple build dependencies"
This reverts commit 1307ec7c7b.
2021-07-19 13:09:06 +02:00
Oscar Mira
1307ec7c7b Update multiple build dependencies 2021-07-13 18:44:07 +02:00
Oscar Mira
9046f23df7 Switch to the Docker environment for CI builds 2021-06-14 21:39:36 +02:00
Oscar Mira
8c973f8d54 Download gradle and cache it in the docker image 2021-05-18 12:32:10 +02:00
Oscar Mira
77017dc00d Add docker workflow 2021-04-25 11:05:25 +02:00
Oscar Mira
b291a08902 Update java version to 8u292 2021-04-24 22:23:08 +02:00
inthewaves
d1ed526582 Fix reproducible build issues with Git hashes and apkdiff
We stop using abbreviated Git hashes and use full hashes instead for the
debug log output. According to
e6c587c733,
the default abbreviation is subject to auto sizing depending on the
estimated number of objects in the Git repository. This number could
differ if the Signal developers use private branches for developing but
then only push the squashed commits to the public repository, or if there
are other differences in how the Git repository was cloned or configured.
This means the abbreviated Git hash length might not be deterministic.

To solve this, we just use the full Git hash. The GIT_HASH config field
is only used in the debug log print out anyway, and using the full hash
instead of a hardcoded abbreviated size helps future-proof it as well.

For apkdiff, we ignore the new file names for signing info. We keep the
older versions in case they change again (or if someone wants to verify
a previous version of Signal that had the old names).  Also, the
resources.arsc issue seems to be resolved according to the Google Issue
and local testing.

Fixes #10476
2021-04-18 12:58:27 +02:00
Oscar Mira
3250fd187a Remove unused docker builder 2021-04-13 00:59:43 +02:00
Oscar Mira
90b6ee9ac6 Merge upstream v5.6.3 2021-04-10 12:47:38 +02:00
Oscar Mira
963318dee9 Update NDK to 21.4.7075529 2021-03-23 00:36:34 +01:00
Cody Henthorne
116022b01d Install gradle as part of docker image build. 2021-03-22 15:49:46 -04:00