Skip to content

Commit 340b2d8

Browse files
committed
conf: Update CI workflow to use correct Dart entrypoint.
1 parent a437b6d commit 340b2d8

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ jobs:
7676

7777
# Build
7878
- name: Build APK
79-
run: flutter build apk --dart-define=SENTRY_DSN=${SENTRY_DSN}
79+
run: flutter build apk --flavor production --target lib/main_production.dart --dart-define=SENTRY_DSN=${SENTRY_DSN}

android/app/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,26 @@ android {
5757
signingConfig signingConfigs.debug
5858
}
5959
}
60+
61+
// TODO: Remove when below fix is available in stable channel.
62+
// https://github.com/flutter/flutter/pull/82309
63+
lintOptions {
64+
checkReleaseBuilds false
65+
}
66+
67+
flavorDimensions "default"
68+
productFlavors {
69+
production {
70+
dimension "default"
71+
applicationIdSuffix ""
72+
manifestPlaceholders = [appName: "Codephile"]
73+
}
74+
development {
75+
dimension "default"
76+
applicationIdSuffix ""
77+
manifestPlaceholders = [appName: "[DEV] Codephile"]
78+
}
79+
}
6080
}
6181

6282
flutter {

0 commit comments

Comments
 (0)