mirror of
https://github.com/chenasraf/pantry-flutter.git
synced 2026-05-18 01:28:58 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
768e78ace9 | ||
| d41d2b81be | |||
| 1f09e9d5aa |
50
.github/workflows/release.yml
vendored
50
.github/workflows/release.yml
vendored
@@ -11,7 +11,20 @@ permissions:
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
flutter-version: ${{ steps.read.outputs.version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
sparse-checkout: .flutter-version
|
||||
sparse-checkout-cone-mode: false
|
||||
- id: read
|
||||
run: echo "version=$(cat .flutter-version | tr -d '[:space:]')" >> "$GITHUB_OUTPUT"
|
||||
|
||||
lint:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -21,7 +34,7 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: "3.41.7"
|
||||
flutter-version: ${{ needs.setup.outputs.flutter-version }}
|
||||
cache: true
|
||||
|
||||
- name: Cache pub dependencies
|
||||
@@ -35,9 +48,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Stub .env
|
||||
run: cp .env.example .env
|
||||
|
||||
- name: Verify formatting
|
||||
run: dart format --output=none --set-exit-if-changed .
|
||||
|
||||
@@ -45,6 +55,7 @@ jobs:
|
||||
run: flutter analyze --no-fatal-infos
|
||||
|
||||
test:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@@ -54,7 +65,7 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: "3.41.7"
|
||||
flutter-version: ${{ needs.setup.outputs.flutter-version }}
|
||||
cache: true
|
||||
|
||||
- name: Cache pub dependencies
|
||||
@@ -68,12 +79,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Stub .env
|
||||
run: cp .env.example .env
|
||||
|
||||
- name: Run tests
|
||||
run: flutter test --coverage --dart-define-from-file=.env
|
||||
|
||||
run: flutter test --coverage
|
||||
- name: Upload coverage
|
||||
uses: codecov/codecov-action@v4
|
||||
with:
|
||||
@@ -91,7 +98,7 @@ jobs:
|
||||
fastlane/metadata/ios/en-US/changelogs
|
||||
|
||||
build-android:
|
||||
needs: release-please
|
||||
needs: [setup, release-please]
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -109,7 +116,7 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: "3.41.7"
|
||||
flutter-version: ${{ needs.setup.outputs.flutter-version }}
|
||||
cache: true
|
||||
|
||||
- name: Cache pub dependencies
|
||||
@@ -123,9 +130,6 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Create .env
|
||||
run: cp .env.example .env
|
||||
|
||||
- name: Remove JNI build-id for reproducible builds
|
||||
run: sed -i -e 's/-Wl,/-Wl,--build-id=none,/' $PUB_CACHE/hosted/pub.dev/jni-*/src/CMakeLists.txt
|
||||
|
||||
@@ -149,11 +153,9 @@ jobs:
|
||||
2>/dev/null | grep "SHA256:" | awk '{print $2}'
|
||||
|
||||
- name: Build split APKs
|
||||
run: flutter build apk --release --split-per-abi --obfuscate --split-debug-info=build/debug-info-apk --dart-define-from-file=.env
|
||||
|
||||
run: flutter build apk --release --split-per-abi
|
||||
- name: Build App Bundle
|
||||
run: flutter build appbundle --release --obfuscate --split-debug-info=build/debug-info-aab --dart-define-from-file=.env
|
||||
|
||||
run: flutter build appbundle --release --obfuscate --split-debug-info=build/debug-info-aab
|
||||
- name: Rename artifacts
|
||||
run: |
|
||||
VERSION=${{ needs.release-please.outputs.version }}
|
||||
@@ -180,7 +182,7 @@ jobs:
|
||||
build/app/outputs/bundle/release/pantry-${{ needs.release-please.outputs.version }}.aab
|
||||
|
||||
build-ios:
|
||||
needs: release-please
|
||||
needs: [setup, release-please]
|
||||
if: false # TEMPORARILY DISABLED — was: ${{ needs.release-please.outputs.release_created }}
|
||||
runs-on: macos-latest
|
||||
|
||||
@@ -191,7 +193,7 @@ jobs:
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
flutter-version: "3.41.7"
|
||||
flutter-version: ${{ needs.setup.outputs.flutter-version }}
|
||||
cache: true
|
||||
|
||||
- name: Cache pub dependencies
|
||||
@@ -214,12 +216,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Create .env
|
||||
run: cp .env.example .env
|
||||
|
||||
- name: Build iOS (no codesign)
|
||||
run: flutter build ios --release --no-codesign --obfuscate --split-debug-info=build/debug-info-ios --dart-define-from-file=.env
|
||||
|
||||
run: flutter build ios --release --no-codesign --obfuscate --split-debug-info=build/debug-info-ios
|
||||
- name: Create unsigned IPA
|
||||
run: |
|
||||
mkdir -p build/ios/ipa
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## [0.9.4](https://github.com/chenasraf/pantry-flutter/compare/v0.9.3...v0.9.4) (2026-04-19)
|
||||
|
||||
|
||||
### Build System
|
||||
|
||||
* remove apk obfuscation ([d41d2b8](https://github.com/chenasraf/pantry-flutter/commit/d41d2b81beb512384cb3c2978bebd201c3bf53a0))
|
||||
|
||||
## [0.9.3](https://github.com/chenasraf/pantry-flutter/compare/v0.9.2...v0.9.3) (2026-04-19)
|
||||
|
||||
|
||||
|
||||
30
Makefile
30
Makefile
@@ -83,12 +83,10 @@ i18n-watch:
|
||||
# Development
|
||||
.PHONY: run
|
||||
run:
|
||||
flutter run --dart-define-from-file=.env
|
||||
|
||||
flutter run
|
||||
.PHONY: webapp-run
|
||||
webapp-run:
|
||||
open http://localhost:5111 & flutter run -d web-server --web-port=5111 --dart-define-from-file=.env
|
||||
|
||||
open http://localhost:5111 & flutter run -d web-server --web-port=5111
|
||||
.PHONY: format
|
||||
format:
|
||||
dart format .
|
||||
@@ -106,25 +104,20 @@ check:
|
||||
.PHONY: test
|
||||
test:
|
||||
ifdef FILES
|
||||
flutter test $(FILES) --dart-define-from-file=.env
|
||||
else
|
||||
flutter test --dart-define-from-file=.env
|
||||
endif
|
||||
flutter test $(FILES)else
|
||||
flutter testendif
|
||||
|
||||
.PHONY: test-coverage
|
||||
test-coverage:
|
||||
flutter test --coverage --dart-define-from-file=.env
|
||||
@echo "Coverage report generated at coverage/lcov.info"
|
||||
flutter test --coverage @echo "Coverage report generated at coverage/lcov.info"
|
||||
|
||||
# Building
|
||||
.PHONY: android-build-apk
|
||||
android-build-apk:
|
||||
flutter build apk --release --obfuscate --split-debug-info=build/debug-info-apk --dart-define-from-file=.env
|
||||
|
||||
flutter build apk --release --obfuscate --split-debug-info=build/debug-info-apk
|
||||
.PHONY: android-build-apk-split
|
||||
android-build-apk-split:
|
||||
flutter build apk --release --split-per-abi --obfuscate --split-debug-info=build/debug-info-apk --dart-define-from-file=.env
|
||||
|
||||
flutter build apk --release --split-per-abi --obfuscate --split-debug-info=build/debug-info-apk
|
||||
.PHONY: android-install
|
||||
android-install: android-build-apk
|
||||
flutter install
|
||||
@@ -136,20 +129,17 @@ android-push: android-build-apk
|
||||
|
||||
.PHONY: android-build-aab
|
||||
android-build-aab:
|
||||
flutter build appbundle --release --obfuscate --split-debug-info=build/debug-info-aab --dart-define-from-file=.env
|
||||
|
||||
flutter build appbundle --release --obfuscate --split-debug-info=build/debug-info-aab
|
||||
.PHONY: ios-build
|
||||
ios-build:
|
||||
flutter build ios --release --no-codesign --obfuscate --split-debug-info=build/debug-info-ios --dart-define-from-file=.env
|
||||
|
||||
flutter build ios --release --no-codesign --obfuscate --split-debug-info=build/debug-info-ios
|
||||
.PHONY: ios-build-ipa
|
||||
ios-build-ipa:
|
||||
flutter build ipa --release --obfuscate --split-debug-info=build/debug-info-ios --dart-define-from-file=.env --export-options-plist=ios/ExportOptions.plist
|
||||
|
||||
.PHONY: web-build
|
||||
web-build:
|
||||
flutter build web --release --dart-define-from-file=.env
|
||||
|
||||
flutter build web --release
|
||||
.PHONY: build-all
|
||||
build-all: android-build-apk android-build-aab web-build
|
||||
|
||||
|
||||
2
fastlane/metadata/android/en-US/changelogs/16.txt
Normal file
2
fastlane/metadata/android/en-US/changelogs/16.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Build System
|
||||
- remove apk obfuscation
|
||||
2
fastlane/metadata/ios/en-US/changelogs/16.txt
Normal file
2
fastlane/metadata/ios/en-US/changelogs/16.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Build System
|
||||
- remove apk obfuscation
|
||||
@@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
# In Windows, build-name is used as the major, minor, and patch parts
|
||||
# of the product and file versions while build-number is used as the build suffix.
|
||||
version: 0.9.3+15
|
||||
version: 0.9.4+16
|
||||
|
||||
environment:
|
||||
sdk: ^3.11.1
|
||||
|
||||
Reference in New Issue
Block a user