diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100755 index 0000000..bc3e683 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: Create Apk + +on: + workflow_dispatch: + pull_request: + paths-ignore: + - "README*.md" + - "app/src/main/res/**" + - ".github/**" + push: + paths-ignore: + - "README*.md" + - "app/src/main/res/**" + - ".github/**" + +jobs: + apk: + name: Generate APK + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Validate Gradle Wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Setup JDK + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + cache: "gradle" + - name: Build APK + run: bash ./gradlew assembleReleaseGithub --stacktrace + - name: Upload APK + uses: actions/upload-artifact@v1 + with: + name: release + path: app/build/outputs/apk/releaseGithub/ diff --git a/app/build.gradle.kts b/app/build.gradle.kts index c2c32e0..28dae7c 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -32,7 +32,7 @@ android { isShrinkResources = true proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), - "proguard-rules.pro" + "proguard-rules.pro", ) } getByName("debug") { @@ -45,17 +45,16 @@ android { signingConfig = signingConfigs.getByName("release") proguardFiles( getDefaultProguardFile("proguard-android-optimize.txt"), - "proguard-rules.pro" + "proguard-rules.pro", ) } - } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = "1.8" + jvmTarget = "17" } buildFeatures { compose = true @@ -90,4 +89,4 @@ dependencies { implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1") implementation("androidx.navigation:navigation-compose:2.7.0-alpha01") implementation("androidx.compose.material:material-icons-extended:1.4.3") -} \ No newline at end of file +} diff --git a/key.jks b/key.jks new file mode 100755 index 0000000..f43334d Binary files /dev/null and b/key.jks differ