diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 00000000..03fbb423 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,43 @@ +name: Android CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: set up JDK 11 + uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew build + + # Upload artifacts so they are available from the run + - name: Upload APK(s) + uses: actions/upload-artifact@v4 + with: + name: app-apks + path: app/build/outputs/apk/**/*.apk + # optional: set retention days (default retention configured in repo/org settings) + retention-days: 30 + + - name: Upload full build directory (optional) + uses: actions/upload-artifact@v4 + with: + name: gradle-build + path: app/build + retention-days: 30 diff --git a/app/build.gradle b/app/build.gradle index 3950a8c3..ccbe2dee 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,14 +1,10 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 22 - buildToolsVersion '29.0.3' - lintOptions { - disable "ExpiredTargetSdkVersion" - } + compileSdkVersion 36 defaultConfig { applicationId "com.holokenmod" - minSdkVersion 8 - targetSdkVersion 22 + minSdkVersion 24 + targetSdkVersion 36 } buildTypes { @@ -17,6 +13,10 @@ android { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } + namespace 'com.holokenmod' + lint { + disable 'ExpiredTargetSdkVersion' + } } repositories { google() diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5722d68a..5a561bb8 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@