Skip to content

Commit

Permalink
Check 10.8.0-RC.1 with KSP
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Nähler committed Nov 7, 2023
1 parent a196f69 commit e877cb4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
gradle: [7.6.3, 8.4]
java: [11, 17]
agp: [7.4.2, 8.1.2]
kotlin: [1.7.21, 1.8.22, 1.9.10]
kotlin: [1.7.21, 1.8.22, 1.9.10, 1.9.20]
exclude:
# AGP 8.0+ requires Gradle 8.0
- agp: 8.1.2
Expand All @@ -23,17 +23,30 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Install JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}

- name: Set KSP Version
id: ksp-version
run: |
case ${{ matrix.kotlin }} in
1.7.21) echo "::set-output name=KSP_VERSION::1.7.21-1.0.8" ;;
1.8.22) echo "::set-output name=KSP_VERSION::1.8.22-1.0.11" ;;
1.9.10) echo "::set-output name=KSP_VERSION::1.9.10-1.0.13" ;;
1.9.20) echo "::set-output name=KSP_VERSION::1.9.20-1.0.14" ;;
esac
- name: Build with Gradle
uses: eskatos/gradle-command-action@v1
with:
gradle-version: ${{ matrix.gradle }}
arguments: :app:assembleDebug -PagpVersion=${{ matrix.agp }} -PkotlinVersion=${{ matrix.kotlin }} --scan
arguments: assembleDebug -PagpVersion=${{ matrix.agp }} -PkotlinVersion=${{ matrix.kotlin }} -PkspVersion=${{ steps.ksp-version.outputs.KSP_VERSION }} --scan

- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: G-${{ matrix.gradle }}-J-${{ matrix.java }}-AGP-${{ matrix.agp }}-K-${{ matrix.kotlin }}
name: apk-${{ matrix.gradle }}-${{ matrix.java }}-${{ matrix.agp }}-${{ matrix.kotlin }}-${{ steps.ksp-version.outputs.KSP_VERSION }}
path: app/build/outputs/apk/debug/app-debug.apk
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ plugins {
id 'com.android.application'
id 'kotlin-android'
id 'ly.img.android.sdk'
id 'com.google.devtools.ksp'
}

imglyConfig {

useKspProcessor = true

pesdk {
enabled true
licensePath null
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
buildscript {
ext {
kotlinVersion = findProperty("kotlinVersion")?.toString() ?: "1.6.21"
ksp_version = findProperty("kspVersion")?.toString() ?: "1.6.21-1.0.6"
agpVersion = findProperty("agpVersion")?.toString() ?: "7.1.3"
}
repositories {
Expand All @@ -14,6 +15,7 @@ buildscript {
classpath "com.android.tools.build:gradle:$agpVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'ly.img.android.pesdk:plugin:10.8.0-RC.1'
classpath("com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin:$ksp_version")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand Down

0 comments on commit e877cb4

Please sign in to comment.