Skip to content

Commit d1b2afc

Browse files
committed
Update sqlcipher for Android and migrate to fork of cwac-saferoom; project structure and documentation; increment version numbers; improve CI configurations
1 parent 8e787df commit d1b2afc

File tree

74 files changed

+55
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+55
-79
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,6 @@ on:
66
- android/*
77

88
jobs:
9-
ui_test_job:
10-
name: UI-tests on emulator
11-
runs-on: macos-latest
12-
continue-on-error: true
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
api-level: [ 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36 ]
17-
steps:
18-
- name: Check out
19-
uses: actions/checkout@v4
20-
- name: Set up JDK 17
21-
uses: actions/setup-java@v4
22-
with:
23-
distribution: 'oracle'
24-
java-version: 17
25-
- name: Setup Gradle
26-
uses: gradle/actions/setup-gradle@v4
27-
with:
28-
cache-read-only: false
29-
cache-overwrite-existing: true
30-
- name: Decrypt large secret
31-
run: ./.github/scripts/decrypt_secret.sh
32-
env:
33-
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
34-
- name: Run UI-tests on emulator
35-
uses: reactivecircus/android-emulator-runner@v2
36-
with:
37-
api-level: ${{ matrix.api-level }}
38-
target: google_apis
39-
script: ./gradlew :app:android:connectedCheck
409
build_unit_test_publish_job:
4110
name: Build -> Unit-test -> Publish
4211
needs: ui_test_job
@@ -58,7 +27,7 @@ jobs:
5827
run: ./.github/scripts/decrypt_secret.sh
5928
env:
6029
LARGE_SECRET_PASSPHRASE: ${{ secrets.LARGE_SECRET_PASSPHRASE }}
61-
- name: Upload to Google Play
30+
- name: Build and Upload to Google Play
6231
working-directory: ./app/android
6332
run: fastlane build_bundle_publish
6433
- name: Archive build artifacts

.github/workflows/kmp.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ jobs:
2828
with:
2929
cache-read-only: false
3030
cache-overwrite-existing: true
31-
- name: Build (first attempt)
32-
id: build
31+
- name: Build (1st attempt)
32+
id: build_1
3333
continue-on-error: true
3434
run: ./gradlew build
35-
- name: Build (retry on failure)
36-
if: ${{ steps.build.outcome == 'failure' }}
35+
- name: Build (2nd attempt)
36+
id: build_2
37+
if: ${{ steps.build_1.outcome == 'failure' }}
38+
continue-on-error: true
39+
run: ./gradlew build
40+
- name: Build (3rd attempt)
41+
if: ${{ steps.build_2.outcome == 'failure' }}
3742
run: ./gradlew build
3843
- name: Archive build-output artifacts
3944
if: always()
@@ -111,4 +116,4 @@ jobs:
111116
name: output-ui-tests-artifacts-${{ matrix.api-level }}-${{ matrix.target }}
112117
path: |
113118
app/android/build/outputs
114-
app/android/build/reports
119+
app/android/build/reports

AGENTS.md

Lines changed: 5 additions & 4 deletions

README.md

Lines changed: 24 additions & 24 deletions

app/android/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ android {
2424
applicationId = "com.softartdev.noteroom"
2525
minSdk = libs.versions.minSdk.get().toInt()
2626
targetSdk = libs.versions.targetSdk.get().toInt()
27-
versionCode = 840
28-
versionName = "8.4.0"
27+
versionCode = 841
28+
versionName = "8.4.1"
2929
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3030
testInstrumentationRunnerArguments["clearPackageData"] = "true"
3131
vectorDrawables.useSupportLibrary = true
@@ -64,6 +64,7 @@ android {
6464
emulatorControl.enable = true
6565
}
6666
androidResources.generateLocaleConfig = true
67+
lint.disable += "Aligned16KB" // Workaround for AGP 8.13.0 PageAlignmentDetector bug
6768
}
6869

6970
dependencies {

app/android/src/main/jniLibs/.gitkeep

Whitespace-only changes.

app/desktop/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ compose.desktop {
4949
nativeDistributions {
5050
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
5151
packageName = "Note Delight"
52-
packageVersion = "2.1.0"
52+
packageVersion = "3.0.0"
5353
description = "Note app with encryption"
5454
copyright = "© 2023 SoftArtDev"
5555
macOS.iconFile.set(project.file("src/jvmMain/resources/app_icon.icns"))

app/iosApp/iosApp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@
475475
"$(inherited)",
476476
"@executable_path/Frameworks",
477477
);
478-
MARKETING_VERSION = 2.1;
478+
MARKETING_VERSION = 3.0;
479479
OTHER_LDFLAGS = (
480480
"$(inherited)",
481481
"-ObjC",
@@ -517,7 +517,7 @@
517517
"$(inherited)",
518518
"@executable_path/Frameworks",
519519
);
520-
MARKETING_VERSION = 2.1;
520+
MARKETING_VERSION = 3.0;
521521
OTHER_LDFLAGS = (
522522
"$(inherited)",
523523
"-ObjC",

app/iosApp/iosApp/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<key>CFBundlePackageType</key>
2323
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
2424
<key>CFBundleShortVersionString</key>
25-
<string>2.1</string>
25+
<string>3.0</string>
2626
<key>CFBundleVersion</key>
2727
<string>17</string>
2828
<key>LSRequiresIPhoneOS</key>

core/data/db-sqldelight/src/androidMain/jniLibs/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)