Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08a2b2d

Browse files
committed
fix: implement deterministic build hardening for F-Droid RB
1 parent d63f5f6 commit 08a2b2d

4 files changed

Lines changed: 9 additions & 2 deletions

File tree

android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,18 @@ android {
3131
v1SigningEnabled true
3232
v2SigningEnabled true
3333
}
34+
release {
35+
v1SigningEnabled true
36+
v2SigningEnabled true
37+
}
3438
}
3539

3640
buildTypes {
3741
release {
3842
minifyEnabled false
3943
shrinkResources false
4044
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
45+
signingConfig signingConfigs.release
4146
}
4247
}
4348

android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ org.gradle.jvmargs=-Xmx1536m
2020
# Android operating system, and which are packaged with your app's APK
2121
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2222
android.useAndroidX=true
23+
android.enableResourceOptimizations=false
24+
android.bundle.enableUncompressedNativeLibs=false

com.paperknife.app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Builds:
3030
- rm -rf public/tesseract/
3131
- echo "export default function PdfToTextTool() { return null; }" > src/components/tools/PdfToTextTool.tsx
3232
- export VITE_DISABLE_OCR=true
33-
- npm install --build-from-source
33+
- npm ci
3434
- npm run build
3535
- npx cap sync android
3636
scanignore:

fdroid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Builds:
3333
- rm -rf public/tesseract/
3434
- echo "export default function PdfToTextTool() { return null; }" > src/components/tools/PdfToTextTool.tsx
3535
- export VITE_DISABLE_OCR=true
36-
- npm install --build-from-source
36+
- npm ci
3737
- npm run build
3838
- npx cap sync android
3939
scanignore:

0 commit comments

Comments
 (0)