Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format #289

Merged
merged 3 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 45 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,44 @@
name: Build android/ios
name: CI
on:
pull_request:
branches:
- 'dev'
merge_group:

jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha || github.event.merge_group.head_sha }}

- uses: actions/setup-java@v1
with:
java-version: '12.x'

- uses: subosito/flutter-action@v1
with:
channel: 'stable'

- name: Formatting
run: dart format --output=none --set-exit-if-changed .

- name: Preprocess
run: |
cd lib/server
wget -q ${{ secrets.SECRET_SALT }} || bash << EOF
echo DO NOT USE SECRET
echo 'String getValid(String vToken) { return vToken; }' > salt.dart
EOF
wget -q ${{ secrets.SECRET_WSALT }} || bash << EOF
echo DO NOT USE SECRET
echo 'String getValid(String vToken) { return vToken; }' > wsalt.dart
EOF

- name: Analyze
run: flutter analyze --no-fatal-infos

ios-build:
runs-on: macos-latest
steps:
Expand All @@ -15,11 +48,12 @@ jobs:

- uses: subosito/flutter-action@v2
with:
# flutter-version: '2.5.2'
channel: 'stable'

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Preprocess
run: |
cd lib/server
Expand All @@ -33,6 +67,7 @@ jobs:
EOF
cd ../..
python3 preprocess-ios.py

- name: Podfile
run: |
cd ios
Expand All @@ -42,13 +77,15 @@ jobs:
pod install
pod update
cd ..

- name: Build
run: |
flutter build ios --release --no-codesign
mkdir -p Payload
mv ./build/ios/iphoneos/Runner.app Payload
zip -r -y Payload.zip Payload/Runner.app
mv Payload.zip Payload.ipa

- name: Upload IPA
uses: actions/upload-artifact@v2
with:
Expand All @@ -65,13 +102,16 @@ jobs:
- uses: actions/setup-java@v1
with:
java-version: '12.x'

- uses: subosito/flutter-action@v1
with:
# flutter-version: '2.5.2'
channel: 'stable'

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Preprocess
run: |
cd lib/server
Expand All @@ -85,12 +125,14 @@ jobs:
EOF
cd ../..
python3 preprocess-android.py

- name: Build
run: |
flutter clean
flutter build apk --release

- name: Upload APK
uses: actions/upload-artifact@v2
with:
name: apk-build
path: ./build/app/outputs/apk/release/app-release.apk
path: ./build/app/outputs/apk/release/app-release.apk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ class PositionedList extends StatefulWidget {
/// See [ScrollView.reverse].
final bool reverse;

/// {@template flutter.widgets.scroll_view.shrinkWrap}
/// Whether the extent of the scroll view in the [scrollDirection] should be
/// determined by the contents being viewed.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ class ScrollablePositionedList extends StatefulWidget {
/// See [ScrollView.reverse].
final bool reverse;

/// {@template flutter.widgets.scroll_view.shrinkWrap}
/// Whether the extent of the scroll view in the [scrollDirection] should be
/// determined by the contents being viewed.
///
Expand Down
Loading