diff --git a/.github/ci-gradle.properties b/.github/ci-gradle.properties new file mode 100644 index 0000000..2d05d0d --- /dev/null +++ b/.github/ci-gradle.properties @@ -0,0 +1,7 @@ +org.gradle.daemon=false +org.gradle.parallel=true +org.gradle.jvmargs=-Xmx5120m +org.gradle.workers.max=2 + +kotlin.incremental=false +kotlin.compiler.execution.strategy=in-process \ No newline at end of file diff --git a/.github/workflows/Check.yaml b/.github/workflows/Check.yaml new file mode 100644 index 0000000..31d7484 --- /dev/null +++ b/.github/workflows/Check.yaml @@ -0,0 +1,54 @@ +name: Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: macos-latest + timeout-minutes: 30 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Copy CI gradle.properties + run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + + - name: Retrieve the secret and decode it to a file + env: + SECRETS_BASE64: ${{ secrets.SECRETS_BASE64 }} + run: | + echo $SECRETS_BASE64 | base64 --decode > secrets.properties + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: zulu + cache: 'gradle' + + - name: Check formatting and build apk + run: ./gradlew spotlessCheck lintRelease :composeApp:assembleRelease --stacktrace + + - name: Upload build outputs (APKs) + uses: actions/upload-artifact@v3 + with: + name: build-outputs + path: composeApp/build/outputs + + - name: Upload build reports + if: always() + uses: actions/upload-artifact@v3 + with: + name: build-reports + path: composeApp/build/reports \ No newline at end of file diff --git a/.gitignore b/.gitignore index 885449f..270c44d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,5 @@ captures .cxx local.properties xcuserdata/ -*.jks *yarn.lock secrets.properties diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c6b15fa..2663508 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -21,7 +21,7 @@ kamel = "0.6.0" materialKolor = "1.2.0" spotless = "6.20.0" ktfmt = "0.44" -precompose = "1.5.0-beta01" +precompose = "1.5.1" moko-mvvm = "0.16.1" moko-permissions = "0.16.0" kotlinx-datetime = "0.4.0" diff --git a/keystore/splashy.jks b/keystore/splashy.jks new file mode 100644 index 0000000..d12bd50 Binary files /dev/null and b/keystore/splashy.jks differ