Skip to content

Commit

Permalink
fix: build wallet_app example with java 21 (#437)
Browse files Browse the repository at this point in the history
* CI: add job to build examples/wallet_app

* fix: build examples/wallet_app with java 21
  • Loading branch information
ptisserand authored Jan 10, 2025
1 parent cf98696 commit 97c67ed
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FLUTTER_VERSION=3.27.1
JAVA_VERSION=21
STARKNET_RPC=http://localhost:5050
DEVNET_DUMP_PATH=/devnet-dump.json
18 changes: 18 additions & 0 deletions .github/actions/android-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Setup environment to build Android application'
description: 'Configures Java and Android SDK for building Android applications'

runs:
using: "composite"
steps:
- name: Dotenv Action
id: load-env
uses: falti/[email protected]
with:
path: .env.ci
- name: Java setup
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ steps.load-env.outputs.java_version }}
- name: Setup Android SDK
uses: android-actions/setup-android@v3
18 changes: 18 additions & 0 deletions .github/workflows/build-android-examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build android examples

on:
workflow_dispatch:

jobs:
build-wallet-app-example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Flutter setup
uses: ./.github/actions/flutter-setup
- name: Java/Android setup
uses: ./.github/actions/android-setup
- uses: bluefireteam/melos-action@v3
- name: Build wallet_app example
run: flutter build appbundle
working-directory: ./examples/wallet_app
2 changes: 1 addition & 1 deletion examples/wallet_app/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "com.android.application" version "8.2.1" apply false
id "org.jetbrains.kotlin.android" version "1.9.10" apply false
}

Expand Down

0 comments on commit 97c67ed

Please sign in to comment.