diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb44c1c9..d6243d67 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,3 +29,17 @@ jobs: cd build/app/outputs/flutter-apk/ mv app.apk blueshot.apk ls -al + ios: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1 + with: + channel: 'stable' # 'dev', 'alpha', default to: 'stable' + flutter-version: '2.2.0' # you can also specify exact version of flutter + - run: | + flutter pub get + flutter build ios --release --no-codesign diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e41e8f39..e12a71d1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: with: channel: 'stable' - run: flutter pub get - - run: flutter build apk --no-sound-null-safety + - run: flutter build apk --no-shrink #--no-sound-null-safety - run: cd build/app/outputs && tree - run: | cd build/app/outputs/flutter-apk/ @@ -33,3 +33,30 @@ jobs: tag: ${{ github.ref }} overwrite: true file_glob: true + iOS: + name: Release iOS + runs-on: macOS-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + - uses: subosito/flutter-action@v1 + with: + channel: 'stable' # 'dev', 'alpha', default to: 'stable' + - run: flutter pub get + - run: flutter build ios --release --no-codesign + - run: brew install tree + - run: | + cd /Users/runner/work/flutter-ble-terminal/flutter-ble-terminal/build/ios/iphoneos + tree + ls -al + tar -zcvf ios.tar.gz Runner.app + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUBTOKEN }} + file: /Users/runner/work/flutter-ble-terminal/flutter-ble-terminal/build/ios/iphoneos/* + tag: ${{ github.ref }} + overwrite: true + file_glob: true diff --git a/android/app/build.gradle b/android/app/build.gradle index e6db5716..1ccb83bf 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -46,6 +46,8 @@ android { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug + shrinkResources false + minifyEnabled false } } }