diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..54d2a07 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,24 @@ +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 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Build with Gradle + run: gradle build diff --git a/README.md b/README.md index 0a670a9..bfadcdc 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ The app will be installed on all devices accessible to `adb`. This project makes a few assumptions about your environment in order to build correctly: -* You have `gradle` 8.7+ installed - there is no [Gradle Wrapper][] +* You have `gradle` 8.11+ installed - there is no [Gradle Wrapper][] included. * You have `JAVA_HOME` set up. If you have `java` in your path, you should be good to go. diff --git a/build.gradle b/build.gradle index f9412f4..2181b84 100644 --- a/build.gradle +++ b/build.gradle @@ -4,12 +4,13 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:8.5.2' + classpath 'com.android.tools.build:gradle:8.10.0' } } repositories { google() + mavenCentral() } apply plugin: 'com.android.application' @@ -17,9 +18,9 @@ apply plugin: 'com.android.application' android { namespace "pl.czak.minimal" - compileSdkVersion 34 + compileSdkVersion 35 defaultConfig { - targetSdk 34 + targetSdk 35 } }