Skip to content

Commit 2b3c853

Browse files
committed
upgrade multiple libs & min ios version & fixed build gradle
1 parent efb13c8 commit 2b3c853

File tree

13 files changed

+93
-80
lines changed

13 files changed

+93
-80
lines changed

app/android/app/build.gradle

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
plugins {
2+
id "com.android.application"
3+
id "kotlin-android"
4+
id "dev.flutter.flutter-gradle-plugin"
5+
}
6+
17
def flutterProperties = new Properties()
28
def localPropertiesFile = rootProject.file('local.properties')
39
if (localPropertiesFile.exists()) {
@@ -14,11 +20,6 @@ if (buildPropertiesFile.exists()) {
1420
}
1521
}
1622

17-
def flutterRoot = flutterProperties.getProperty('flutter.sdk')
18-
if (flutterRoot == null) {
19-
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
20-
}
21-
2223
/**
2324
* Declare the env vars here
2425
* **/
@@ -51,11 +52,8 @@ if (keystorePropertiesFile.exists()) {
5152
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
5253
}
5354

54-
apply plugin: 'com.android.application'
55-
apply plugin: 'kotlin-android'
56-
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
57-
5855
android {
56+
namespace 'com.rootstrap.base.flutter_base_rootstrap'
5957
compileSdkVersion buildProperties.getProperty('flutter.compileSdkVersion').toInteger()
6058
ndkVersion flutter.ndkVersion
6159

@@ -105,6 +103,3 @@ flutter {
105103
source '../..'
106104
}
107105

108-
dependencies {
109-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
110-
}

app/android/build.gradle

+5-24
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,12 @@
1-
buildscript {
2-
ext.kotlin_version = '1.6.10'
3-
repositories {
4-
google()
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.1.2'
10-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
11-
}
12-
}
13-
141
allprojects {
152
repositories {
163
google()
174
mavenCentral()
185
}
19-
}
20-
21-
rootProject.buildDir = '../build'
22-
subprojects {
23-
project.buildDir = "${rootProject.buildDir}/${project.name}"
24-
}
25-
subprojects {
26-
project.evaluationDependsOn(':app')
27-
}
286

29-
tasks.register("clean", Delete) {
30-
delete rootProject.buildDir
7+
rootProject.buildDir = '../build'
8+
subprojects {
9+
project.buildDir = "${rootProject.buildDir}/${project.name}"
10+
project.evaluationDependsOn(':app')
11+
}
3112
}

app/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-all.zip

app/android/settings.gradle

+23-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
include ':app'
1+
pluginManagement {
2+
def flutterSdkPath = {
3+
def properties = new Properties()
4+
file("local.properties").withInputStream { properties.load(it) }
5+
def flutterSdkPath = properties.getProperty("flutter.sdk")
6+
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
7+
return flutterSdkPath
8+
}()
29

3-
def localPropertiesFile = new File(rootProject.projectDir, "local.properties")
4-
def properties = new Properties()
10+
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
511

6-
assert localPropertiesFile.exists()
7-
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) }
12+
repositories {
13+
google()
14+
mavenCentral()
15+
gradlePluginPortal()
16+
}
817

9-
def flutterSdkPath = properties.getProperty("flutter.sdk")
10-
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
11-
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle"
18+
}
19+
20+
plugins {
21+
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
22+
id "com.android.application" version "8.7.0" apply false
23+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
24+
}
25+
26+
include ":app"

app/ios/Flutter/AppFrameworkInfo.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>11.0</string>
24+
<string>13.0</string>
2525
</dict>
2626
</plist>

app/ios/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '11.0'
2+
platform :ios, '13.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

app/ios/Runner.xcodeproj/project.pbxproj

+31-13
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
7FCD1AAFFC74258114648268 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
5151
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
5252
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
53-
97C146EE1CF9000F007C117D /* Flutter Base.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flutter Base.app"; sourceTree = BUILT_PRODUCTS_DIR; };
53+
97C146EE1CF9000F007C117D /* RS Base Debug 2.0.0.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RS Base Debug 2.0.0.app"; sourceTree = BUILT_PRODUCTS_DIR; };
5454
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5555
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5656
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
@@ -114,7 +114,7 @@
114114
97C146EF1CF9000F007C117D /* Products */ = {
115115
isa = PBXGroup;
116116
children = (
117-
97C146EE1CF9000F007C117D /* Flutter Base.app */,
117+
97C146EE1CF9000F007C117D /* RS Base Debug 2.0.0.app */,
118118
);
119119
name = Products;
120120
sourceTree = "<group>";
@@ -157,14 +157,15 @@
157157
9705A1C41CF9048500538489 /* Embed Frameworks */,
158158
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
159159
DD7C17448DBE0C72AFB53D97 /* [CP] Embed Pods Frameworks */,
160+
0A3832D21E11A3F695107A97 /* [CP] Copy Pods Resources */,
160161
);
161162
buildRules = (
162163
);
163164
dependencies = (
164165
);
165166
name = Runner;
166167
productName = Runner;
167-
productReference = 97C146EE1CF9000F007C117D /* Flutter Base.app */;
168+
productReference = 97C146EE1CF9000F007C117D /* RS Base Debug 2.0.0.app */;
168169
productType = "com.apple.product-type.application";
169170
};
170171
/* End PBXNativeTarget section */
@@ -173,7 +174,7 @@
173174
97C146E61CF9000F007C117D /* Project object */ = {
174175
isa = PBXProject;
175176
attributes = {
176-
LastUpgradeCheck = 1300;
177+
LastUpgradeCheck = 1510;
177178
ORGANIZATIONNAME = "";
178179
TargetAttributes = {
179180
97C146ED1CF9000F007C117D = {
@@ -217,6 +218,23 @@
217218
/* End PBXResourcesBuildPhase section */
218219

219220
/* Begin PBXShellScriptBuildPhase section */
221+
0A3832D21E11A3F695107A97 /* [CP] Copy Pods Resources */ = {
222+
isa = PBXShellScriptBuildPhase;
223+
buildActionMask = 2147483647;
224+
files = (
225+
);
226+
inputFileListPaths = (
227+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
228+
);
229+
name = "[CP] Copy Pods Resources";
230+
outputFileListPaths = (
231+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
232+
);
233+
runOnlyForDeploymentPostprocessing = 0;
234+
shellPath = /bin/sh;
235+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
236+
showEnvVarsInLog = 0;
237+
};
220238
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
221239
isa = PBXShellScriptBuildPhase;
222240
alwaysOutOfDate = 1;
@@ -362,7 +380,7 @@
362380
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
363381
GCC_WARN_UNUSED_FUNCTION = YES;
364382
GCC_WARN_UNUSED_VARIABLE = YES;
365-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
383+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
366384
MTL_ENABLE_DEBUG_INFO = NO;
367385
SDKROOT = iphoneos;
368386
SUPPORTED_PLATFORMS = iphoneos;
@@ -440,7 +458,7 @@
440458
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
441459
GCC_WARN_UNUSED_FUNCTION = YES;
442460
GCC_WARN_UNUSED_VARIABLE = YES;
443-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
461+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
444462
MTL_ENABLE_DEBUG_INFO = YES;
445463
ONLY_ACTIVE_ARCH = YES;
446464
SDKROOT = iphoneos;
@@ -518,7 +536,7 @@
518536
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
519537
GCC_WARN_UNUSED_FUNCTION = YES;
520538
GCC_WARN_UNUSED_VARIABLE = YES;
521-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
539+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
522540
MTL_ENABLE_DEBUG_INFO = YES;
523541
ONLY_ACTIVE_ARCH = YES;
524542
SDKROOT = iphoneos;
@@ -590,7 +608,7 @@
590608
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
591609
GCC_WARN_UNUSED_FUNCTION = YES;
592610
GCC_WARN_UNUSED_VARIABLE = YES;
593-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
611+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
594612
MTL_ENABLE_DEBUG_INFO = NO;
595613
SDKROOT = iphoneos;
596614
SUPPORTED_PLATFORMS = iphoneos;
@@ -664,7 +682,7 @@
664682
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
665683
GCC_WARN_UNUSED_FUNCTION = YES;
666684
GCC_WARN_UNUSED_VARIABLE = YES;
667-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
685+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
668686
MTL_ENABLE_DEBUG_INFO = NO;
669687
SDKROOT = iphoneos;
670688
SUPPORTED_PLATFORMS = iphoneos;
@@ -738,7 +756,7 @@
738756
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
739757
GCC_WARN_UNUSED_FUNCTION = YES;
740758
GCC_WARN_UNUSED_VARIABLE = YES;
741-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
759+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
742760
MTL_ENABLE_DEBUG_INFO = NO;
743761
SDKROOT = iphoneos;
744762
SUPPORTED_PLATFORMS = iphoneos;
@@ -810,7 +828,7 @@
810828
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
811829
GCC_WARN_UNUSED_FUNCTION = YES;
812830
GCC_WARN_UNUSED_VARIABLE = YES;
813-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
831+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
814832
MTL_ENABLE_DEBUG_INFO = NO;
815833
SDKROOT = iphoneos;
816834
SUPPORTED_PLATFORMS = iphoneos;
@@ -887,7 +905,7 @@
887905
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
888906
GCC_WARN_UNUSED_FUNCTION = YES;
889907
GCC_WARN_UNUSED_VARIABLE = YES;
890-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
908+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
891909
MTL_ENABLE_DEBUG_INFO = YES;
892910
ONLY_ACTIVE_ARCH = YES;
893911
SDKROOT = iphoneos;
@@ -936,7 +954,7 @@
936954
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
937955
GCC_WARN_UNUSED_FUNCTION = YES;
938956
GCC_WARN_UNUSED_VARIABLE = YES;
939-
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
957+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
940958
MTL_ENABLE_DEBUG_INFO = NO;
941959
SDKROOT = iphoneos;
942960
SUPPORTED_PLATFORMS = iphoneos;

app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Dev.xcscheme

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
18-
BuildableName = "Flutter Base.app"
18+
BuildableName = "RS Base.app"
1919
BlueprintName = "Runner"
2020
ReferencedContainer = "container:Runner.xcodeproj">
2121
</BuildableReference>
@@ -45,7 +45,7 @@
4545
<BuildableReference
4646
BuildableIdentifier = "primary"
4747
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
48-
BuildableName = "Flutter Base.app"
48+
BuildableName = "RS Base.app"
4949
BlueprintName = "Runner"
5050
ReferencedContainer = "container:Runner.xcodeproj">
5151
</BuildableReference>
@@ -62,7 +62,7 @@
6262
<BuildableReference
6363
BuildableIdentifier = "primary"
6464
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
65-
BuildableName = "Flutter Base.app"
65+
BuildableName = "RS Base.app"
6666
BlueprintName = "Runner"
6767
ReferencedContainer = "container:Runner.xcodeproj">
6868
</BuildableReference>

app/ios/Runner.xcodeproj/xcshareddata/xcschemes/QA.xcscheme

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
18-
BuildableName = "Flutter Base.app"
18+
BuildableName = "RS Base.app"
1919
BlueprintName = "Runner"
2020
ReferencedContainer = "container:Runner.xcodeproj">
2121
</BuildableReference>
@@ -45,7 +45,7 @@
4545
<BuildableReference
4646
BuildableIdentifier = "primary"
4747
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
48-
BuildableName = "Flutter Base.app"
48+
BuildableName = "RS Base.app"
4949
BlueprintName = "Runner"
5050
ReferencedContainer = "container:Runner.xcodeproj">
5151
</BuildableReference>
@@ -62,7 +62,7 @@
6262
<BuildableReference
6363
BuildableIdentifier = "primary"
6464
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
65-
BuildableName = "Flutter Base.app"
65+
BuildableName = "RS Base.app"
6666
BlueprintName = "Runner"
6767
ReferencedContainer = "container:Runner.xcodeproj">
6868
</BuildableReference>

app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1510"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -15,7 +15,7 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
18-
BuildableName = "Runner.app"
18+
BuildableName = "RS Base.app"
1919
BlueprintName = "Runner"
2020
ReferencedContainer = "container:Runner.xcodeproj">
2121
</BuildableReference>
@@ -31,7 +31,7 @@
3131
<BuildableReference
3232
BuildableIdentifier = "primary"
3333
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
34-
BuildableName = "Runner.app"
34+
BuildableName = "RS Base.app"
3535
BlueprintName = "Runner"
3636
ReferencedContainer = "container:Runner.xcodeproj">
3737
</BuildableReference>
@@ -48,13 +48,14 @@
4848
ignoresPersistentStateOnLaunch = "NO"
4949
debugDocumentVersioning = "YES"
5050
debugServiceExtension = "internal"
51+
enableGPUValidationMode = "1"
5152
allowLocationSimulation = "YES">
5253
<BuildableProductRunnable
5354
runnableDebuggingMode = "0">
5455
<BuildableReference
5556
BuildableIdentifier = "primary"
5657
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
57-
BuildableName = "Runner.app"
58+
BuildableName = "RS Base.app"
5859
BlueprintName = "Runner"
5960
ReferencedContainer = "container:Runner.xcodeproj">
6061
</BuildableReference>
@@ -71,7 +72,7 @@
7172
<BuildableReference
7273
BuildableIdentifier = "primary"
7374
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
74-
BuildableName = "Runner.app"
75+
BuildableName = "RS Base.app"
7576
BlueprintName = "Runner"
7677
ReferencedContainer = "container:Runner.xcodeproj">
7778
</BuildableReference>

app/ios/Runner/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import Flutter
33

4-
@UIApplicationMain
4+
@main
55
@objc class AppDelegate: FlutterAppDelegate {
66
override func application(
77
_ application: UIApplication,

0 commit comments

Comments
 (0)