From de0fbc997992352f75a1e5bf391a96f30b63162d Mon Sep 17 00:00:00 2001 From: kubel Date: Thu, 5 Dec 2024 09:24:46 +0100 Subject: [PATCH] Test version --- .github/workflows/release-kotlin.yml | 10 +++++++--- .jitpack.yml | 3 ++- crates/kotlin-ffi/android/build.gradle | 4 +--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-kotlin.yml b/.github/workflows/release-kotlin.yml index 20a7dc35..d68a6ada 100644 --- a/.github/workflows/release-kotlin.yml +++ b/.github/workflows/release-kotlin.yml @@ -10,7 +10,7 @@ on: env: CARGO_TERM_COLOR: always - VERSION: ${{ github.event.inputs.version || '0.2.80' }} + VERSION: ${{ github.event.inputs.version || '0.2.81' }} TARGET_BRANCH: ${{ github.ref_name }} permissions: @@ -47,6 +47,10 @@ jobs: api-level: 35 build-tools: 35.0.0 ndk-version: 27.2.12479018 + + - name: Build with Gradle + run: | + ./gradlew clean assembleRelease -Pversion=${{ env.VERSION }} - name: Install cargo-ndk run: | @@ -107,8 +111,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: 0.2.80 #${{ env.VERSION }} - release_name: 0.2.80 #Yttrium ${{ env.VERSION }} + tag_name: ${{ env.VERSION }} + release_name: Yttrium ${{ env.VERSION }} draft: false prerelease: false diff --git a/.jitpack.yml b/.jitpack.yml index 85fa5461..d25a2035 100644 --- a/.jitpack.yml +++ b/.jitpack.yml @@ -8,7 +8,8 @@ android: - platforms;android-33 before_install: - - RELEASE_URL="https://github.com/reown-com/yttrium/releases/download/0.2.80/kotlin-artifacts.zip" + - echo "VERSION=${{ env.VERSION }}" + - RELEASE_URL="https://github.com/reown-com/yttrium/releases/download/${{env.VERSION}}/kotlin-artifacts.zip" - echo "Fetching binaries and bindings from $RELEASE_URL" - curl -L -o kotlin-artifacts.zip $RELEASE_URL || echo "Failed to fetch binaries" - echo "Downloaded zip file:" diff --git a/crates/kotlin-ffi/android/build.gradle b/crates/kotlin-ffi/android/build.gradle index 6404fdf3..d95d9b4f 100644 --- a/crates/kotlin-ffi/android/build.gradle +++ b/crates/kotlin-ffi/android/build.gradle @@ -71,13 +71,11 @@ java { publishing { publications { release(MavenPublication) { - // Use the AAR file generated by the build artifact("$buildDir/outputs/aar/${project.name}-release.aar") - // Customize POM details groupId = 'com.github.reown-com' artifactId = 'yttrium' - version = '0.2.80' + version = project.hasProperty("version") ? project.getProperty("version") : "0.0.1" pom { name.set("Yttrium")