Skip to content

Commit b71921a

Browse files
committed
chore: fixed failing build
1 parent 13e0e86 commit b71921a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ android {
4444
defaultConfig {
4545
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4646
applicationId "com.example.example"
47-
minSdkVersion 16
47+
minSdkVersion flutter.minSdkVersion
4848
targetSdkVersion 30
4949
versionCode flutterVersionCode.toInteger()
5050
versionName flutterVersionName

example/android/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ allprojects {
1616
google()
1717
mavenCentral()
1818
}
19+
subprojects {
20+
afterEvaluate { project ->
21+
if (project.hasProperty('android')) {
22+
project.android {
23+
if (namespace == null) {
24+
namespace project.group
25+
}
26+
}
27+
}
28+
}
29+
}
1930
}
2031

2132
rootProject.buildDir = '../build'
@@ -24,6 +35,6 @@ subprojects {
2435
project.evaluationDependsOn(':app')
2536
}
2637

27-
task clean(type: Delete) {
38+
tasks.register("clean", Delete) {
2839
delete rootProject.buildDir
2940
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#Sat Nov 02 12:59:26 GMT 2024
2-
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
54
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)