diff --git a/.github/workflows/flutter_ci.yml b/.github/workflows/flutter_ci.yml index 892d180..adc992b 100644 --- a/.github/workflows/flutter_ci.yml +++ b/.github/workflows/flutter_ci.yml @@ -13,7 +13,7 @@ on: jobs: build: name: Build and Test - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Check out code @@ -24,24 +24,32 @@ jobs: with: flutter-version: 3.24.3 + - name: Set up Java 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + - name: Install dependencies run: flutter pub get - name: Run tests run: flutter test -# - name: Build APK for Android -# run: flutter build apk -# + + + - name: Build APK for Android + run: flutter build apk + # - name: Build iOS App -# run: flutter build ios -# -# - name: Archive and upload Android artifacts -# uses: actions/upload-artifact@v4 -# with: -# name: build-android -# path: build/app/outputs/flutter-apk/app-release.apk -# +# run: flutter build ios --no-codesign + + - name: Archive and upload Android artifacts + uses: actions/upload-artifact@v4 + with: + name: build-android + path: build/app/outputs/flutter-apk/app-release.apk + # - name: Archive and upload iOS artifacts # uses: actions/upload-artifact@v4 # with: diff --git a/android/app/build.gradle b/android/app/build.gradle index 4a7e7bb..3593ddd 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -65,13 +65,13 @@ android { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] - storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null + storeFile keystoreProperties['storeFile'] storePassword keystoreProperties['storePassword'] } } buildTypes { release { - signingConfig signingConfigs.release + signingConfig signingConfigs.debug } }