Skip to content

Commit e756bbb

Browse files
Merge branch 'main' into dependabot/github_actions/codecov/codecov-action-5
2 parents 5cff0b8 + aab7491 commit e756bbb

File tree

8 files changed

+29
-110
lines changed

8 files changed

+29
-110
lines changed

.github/workflows/base.yaml

Lines changed: 10 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -20,55 +20,35 @@ jobs:
2020
build:
2121
name: Build package & run tests
2222
runs-on: ubuntu-latest
23-
2423
steps:
2524
- name: Checkout repository
2625
uses: actions/checkout@v4
2726
with:
2827
fetch-depth: 1 # Use shallow clone for faster checkout
29-
3028
- name: Check broken links
3129
uses: JustinBeckwith/linkinator-action@v1
3230
with:
3331
paths: "**/*.md"
34-
35-
- name: Get Flutter version by FVM
36-
uses: kuhnroyal/flutter-fvm-config-action@v2
37-
id: fvm-config-action
32+
- name: Setup Flutter
33+
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
3834
with:
39-
path: ".fvmrc"
40-
flavor: "stable"
41-
42-
- name: Set up Flutter
43-
uses: subosito/flutter-action@v2
44-
with:
45-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
46-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
47-
architecture: x64
48-
cache: true
49-
35+
path: '.fvmrc'
36+
flavor: 'stable'
5037
- name: Install dependencies
5138
run: dart pub get
52-
5339
- name: Run l10n
5440
run: flutter gen-l10n
55-
5641
- name: Run l10n on example
5742
run: flutter gen-l10n
5843
working-directory: example
59-
6044
- name: Format code
6145
run: dart format --set-exit-if-changed $(find . -name "*.dart" ! \( -wholename "./lib/localization/intl/*" -or -wholename "./example/lib/localization/intl/*" \))
62-
6346
- name: Analyze static code
6447
run: dart analyze
65-
6648
- name: Run tests
6749
run: flutter test --no-pub --coverage
68-
6950
- name: Check publish warnings
7051
run: dart pub publish --dry-run
71-
7252
- name: Upload coverage to Codecov
7353
uses: codecov/codecov-action@v5
7454
env:
@@ -81,78 +61,30 @@ jobs:
8161
example:
8262
name: Build example app
8363
runs-on: ubuntu-latest
84-
8564
steps:
8665
- name: Checkout repository
8766
uses: actions/checkout@v4
8867
with:
8968
fetch-depth: 1 # Use shallow clone for faster checkout
90-
91-
- name: Get Flutter version by FVM
92-
uses: kuhnroyal/flutter-fvm-config-action@v2
93-
id: fvm-config-action
94-
with:
95-
path: ".fvmrc"
96-
flavor: "stable"
97-
98-
- name: Set up Flutter
99-
uses: subosito/flutter-action@v2
69+
- name: Setup Flutter
70+
uses: kuhnroyal/flutter-fvm-config-action/setup@v3
10071
with:
101-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
102-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
103-
architecture: x64
104-
cache: true
105-
72+
path: '.fvmrc'
73+
flavor: 'stable'
10674
- name: Install dependencies
10775
run: dart pub get
108-
10976
- name: Run l10n
11077
run: flutter gen-l10n
111-
11278
- name: Run l10n on example
11379
run: flutter gen-l10n
11480
working-directory: example
115-
11681
- name: Build example
11782
run: flutter build appbundle --debug
11883
working-directory: example
11984

12085
deployment:
12186
if: ${{ github.ref_type == 'tag' }}
122-
needs: [build, example]
123-
name: Deploy package
87+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
12488
permissions:
12589
id-token: write
126-
runs-on: ubuntu-latest
127-
steps:
128-
- name: Checkout repository
129-
uses: actions/checkout@v4
130-
with:
131-
fetch-depth: 1 # Use shallow clone for faster checkout
132-
133-
- name: Set up Dart
134-
uses: dart-lang/setup-dart@v1
135-
136-
- name: Get Flutter version by FVM
137-
uses: kuhnroyal/flutter-fvm-config-action@v2
138-
id: fvm-config-action
139-
with:
140-
path: ".fvmrc"
141-
flavor: "stable"
142-
143-
- name: Set up Flutter
144-
uses: subosito/flutter-action@v2
145-
with:
146-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
147-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
148-
architecture: x64
149-
cache: true
150-
151-
- name: Install dependencies
152-
run: dart pub get
153-
154-
- name: Run l10n
155-
run: flutter gen-l10n
156-
157-
- name: Publish package
158-
run: dart pub publish -v -f
90+
needs: [build, example]

example/android/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gradle-wrapper.jar
77
GeneratedPluginRegistrant.java
88

99
# Remember to never publicly share your keystore.
10-
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
10+
# See https://flutter.dev/to/reference-keystore
1111
key.properties
1212
**/*.keystore
1313
**/*.jks

example/android/app/build.gradle

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,8 @@ plugins {
55
id "dev.flutter.flutter-gradle-plugin"
66
}
77

8-
def localProperties = new Properties()
9-
def localPropertiesFile = rootProject.file("local.properties")
10-
if (localPropertiesFile.exists()) {
11-
localPropertiesFile.withReader("UTF-8") { reader ->
12-
localProperties.load(reader)
13-
}
14-
}
15-
16-
def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
17-
if (flutterVersionCode == null) {
18-
flutterVersionCode = "1"
19-
}
20-
21-
def flutterVersionName = localProperties.getProperty("flutter.versionName")
22-
if (flutterVersionName == null) {
23-
flutterVersionName = "1.0"
24-
}
25-
268
android {
27-
namespace = "dev.danvickmiller.formbuildervalidators.example"
9+
namespace = "com.example.example"
2810
compileSdk = flutter.compileSdkVersion
2911
ndkVersion = flutter.ndkVersion
3012

@@ -33,14 +15,19 @@ android {
3315
targetCompatibility = JavaVersion.VERSION_1_8
3416
}
3517

18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_1_8
20+
}
21+
3622
defaultConfig {
37-
applicationId = "dev.danvickmiller.formbuildervalidators.example"
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "com.example.example"
3825
// You can update the following values to match your application needs.
39-
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
4027
minSdk = flutter.minSdkVersion
4128
targetSdk = flutter.targetSdkVersion
42-
versionCode = flutterVersionCode.toInteger()
43-
versionName = flutterVersionName
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
4431
}
4532

4633
buildTypes {

example/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
1+
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
android.enableJetifier=true

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip

example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.3.0" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
21+
id "com.android.application" version "8.1.0" apply false
22+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

2525
include ":app"

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
44
version: 1.0.0+1
55

66
environment:
7-
sdk: ^3.4.0
8-
flutter: ">=3.22.0"
7+
sdk: ">=3.6.0 <4.0.0"
8+
flutter: ">=3.27.0"
99

1010
dependencies:
1111
flutter:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ funding:
1111
- https://opencollective.com/flutter-form-builder-ecosystem
1212

1313
environment:
14-
sdk: ^3.4.0
15-
flutter: ">=3.22.0"
14+
sdk: ">=3.6.0 <4.0.0"
15+
flutter: ">=3.27.0"
1616

1717
dependencies:
1818
flutter:

0 commit comments

Comments
 (0)