From a9bd776f70e2e54e5082cc88b5d09a681bc98c7b Mon Sep 17 00:00:00 2001 From: Suhas Dissanayake Date: Mon, 31 Jul 2023 12:40:08 +0530 Subject: [PATCH] Setup github actions --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ app/build.gradle.kts | 13 ++++++------- key.jks | Bin 0 -> 2533 bytes 3 files changed, 43 insertions(+), 7 deletions(-) create mode 100755 .github/workflows/main.yml create mode 100755 key.jks 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 0000000000000000000000000000000000000000..f43334d691dc772ac667c07c014c6992dbebce5b GIT binary patch literal 2533 zcma)+c{CJ^8pdZgBP3?fAj{BVYpjFB5Jr~lOSDOtk|oQ0LNYV9vF~HeP$(oz_90|q zQueL#eX^Cc5h_I8&bjy0xqsdJ$9vxM{+{=F{(P_$#0&@s#!?WuFoayRN%S{fAQzB9 zLBvBSh?rlPilsoy|4V}AK`2oAFP#2sl3@q_mUdPGH4k}-Xl6x?@vf$94>iCC_Mf_0^1@vz6;5Gp9BqV zuP>J*rEwJTta4*JeG77Vs>mkvX6AsCKO-)z%%UJjGn@HaE~E& zwyjOo~RFZNer1W1Q?0y}$GV5ac zH{Y5%pH=gn7w|Y+qBM8b7c!wyJ=Tb8OYVR~2L;Di$IHV$HTjih(Z3vH6(^4t;d?TM zPa)G*m0iEI_nr}6nzrH;FhmX6!g8>2AkM{`VK^wxT)V$w&Nw#=Vw2R;Y~U|Vtm6)(Pp-M%_1is!`G3fnE9}xFtcNV zJT6jqy1Mg;6p9x`XgV32u2smPsS6iziqPeHWd6U4aH;0f?hVJG?-Etg6cS(mf5bgFq z&i%YN#zl1N-uR)C`RYhv@nA?>rD!gwBk9(tpDb4$@~nYnLs=seJUAf@Uo9hQYm29@ zST-1u8FM!`BM}Pv5_5A~!*a}PcBsFHw2pNGsm;>vV|?CIhoepj<8XA|={<}(slTF1 zj-A%1Kn`U$z()cS_wYlD{IEXlg!FHAE(I(0Bf{#DE@T~(?XM@!vaheoHQ7c5Pu zK0bNj0$L<8e__?fA5mVU^dio*K~)9GY}et3|XY!x-3d4X6}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