[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41830: Use omni.ja.xz on Android.



Title: GitLab

Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

  • 67b08c8d
    by Pier Angelo Vendrame at 2026-06-30T15:50:00+02:00
    Bug 41830: Use omni.ja.xz on Android.
    
    As a workaround to keep our APK size within the Play Store threshold
    we decided to compress omni.ja with xz (tor-browser#45086).
    This commit adapts tor-browser-build scripts to that change.
    

2 changed files:

Changes:

  • projects/browser/build.android
    ... ... @@ -52,7 +52,8 @@ function generate_apk {
    52 52
       $rootdir/sort-baseline.py --apk $apk $sorted_baseline_apk
    
    53 53
       mv $sorted_baseline_apk $apk
    
    54 54
     
    
    55
    -  unzip -j "$apk" assets/omni.ja
    
    55
    +  unzip -j "$apk" assets/omni.ja.xz
    
    56
    +  xz -d omni.ja.xz
    
    56 57
       mkdir omni
    
    57 58
       pushd omni
    
    58 59
       unzip ../omni.ja
    
    ... ... @@ -72,9 +73,12 @@ function generate_apk {
    72 73
       # Be sure to change any `rm` with the appropriate command, shall this change.
    
    73 74
       [% c('zip', {
    
    74 75
             zip_src   => [ '.' ],
    
    75
    -        zip_args  => '-0 ../assets/omni.ja',
    
    76
    +        zip_args  => '-0 ../omni.ja',
    
    76 77
           }) %]
    
    77 78
       popd
    
    79
    +  sha256sum omni.ja | awk '{ print $1 }' > assets/omni.ja.sha256
    
    80
    +  xz -9e omni.ja
    
    81
    +  mv omni.ja.xz assets/
    
    78 82
     
    
    79 83
       mkdir apk
    
    80 84
       pushd apk
    
    ... ... @@ -101,7 +105,6 @@ function generate_apk {
    101 105
     
    
    102 106
       # Clean up
    
    103 107
       rm -rf omni
    
    104
    -  rm omni.ja
    
    105 108
       rm -rf apk
    
    106 109
       rm repacked.apk
    
    107 110
       rm $aligned_apk
    

  • projects/geckoview/gradle-dependencies-list.txt
    ... ... @@ -1365,6 +1365,8 @@ cc8caa4101a35d0cf0433a63e8ad38911a4c848073fcc94f43ae0251f33e4daf | https://plugi
    1365 1365
     10d6bd66abb088eca5be360ff72550c96154d2676efedd74af31c450017c3909 | https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/6.5.7/gradle-kotlin-dsl-plugins-6.5.7.module
    
    1366 1366
     abe9f3960fa7359722a8752e61bfc496761e15d14735e4c6422079707606abbe | https://plugins.gradle.org/m2/org/gradle/kotlin/gradle-kotlin-dsl-plugins/6.5.7/gradle-kotlin-dsl-plugins-6.5.7.pom
    
    1367 1367
     2dd836cc09712cdaddfeefc680d2ea66eb43d8dc63386bd595265813497f472d | https://plugins.gradle.org/m2/org/gradle/kotlin/kotlin-dsl/org.gradle.kotlin.kotlin-dsl.gradle.plugin/6.5.7/org.gradle.kotlin.kotlin-dsl.gradle.plugin-6.5.7.pom
    
    1368
    +937b44d869c059c39f07ae194d8cd6219f5aebf2200ef9707f0b50b7837da281 | https://plugins.gradle.org/m2/org/tukaani/xz/1.12/xz-1.12.pom
    
    1369
    +3e158a87bd73d8afb4b6e8239c013b7d049c48563f45860ce99cd2e448cf4a6b | https://plugins.gradle.org/m2/org/tukaani/xz/1.12/xz-1.12.jar
    
    1368 1370
     243a64470fda0e86a6fddeb0af4c7aa9426ce84e68cbfe18d75ee5da4b7e0b92 | https://repo.maven.apache.org/maven2/com/almworks/sqlite4java/sqlite4java/1.0.392/sqlite4java-1.0.392.jar
    
    1369 1371
     139552c586a57bf6d98f87d6b7e23fef4db53cf74097be962f7868e3606c79d2 | https://repo.maven.apache.org/maven2/com/almworks/sqlite4java/sqlite4java/1.0.392/sqlite4java-1.0.392.pom
    
    1370 1372
     348924b116b7b251113af50c1bf1b57c0df7c89b8f56406c1ff1be2d5b469fbd | https://repo.maven.apache.org/maven2/com/autonomousapps/antlr/4.13.2.0/antlr-4.13.2.0.jar
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx