Skip to content

Commit 35f6c21

Browse files
author
Chunlea Ju
committed
Setup release for ios and android
1 parent b502b69 commit 35f6c21

File tree

4 files changed

+52
-3
lines changed

4 files changed

+52
-3
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
**/android/gradlew
3737
**/android/gradlew.bat
3838
**/android/local.properties
39+
**/android/key.properties
3940
**/android/**/GeneratedPluginRegistrant.java
4041

4142
# iOS/XCode related
@@ -71,3 +72,15 @@
7172
!**/ios/**/default.pbxuser
7273
!**/ios/**/default.perspectivev3
7374
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
75+
76+
# fastlane specific
77+
**/fastlane/report.xml
78+
79+
# deliver temporary files
80+
**/fastlane/Preview.html
81+
82+
# snapshot generated screenshots
83+
**/fastlane/screenshots
84+
85+
# scan temporary files
86+
**/fastlane/test_output

android/app/build.gradle

+16-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ if (flutterVersionName == null) {
2121
flutterVersionName = '1.0'
2222
}
2323

24+
def keystoreProperties = new Properties()
25+
def keystorePropertiesFile = rootProject.file('key.properties')
26+
if (keystorePropertiesFile.exists()) {
27+
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
28+
}
29+
2430
apply plugin: 'com.android.application'
2531
apply plugin: 'kotlin-android'
2632
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
@@ -46,11 +52,20 @@ android {
4652
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
4753
}
4854

55+
signingConfigs {
56+
release {
57+
keyAlias keystoreProperties['keyAlias']
58+
keyPassword keystoreProperties['keyPassword']
59+
storeFile file(keystoreProperties['storeFile'])
60+
storePassword keystoreProperties['storePassword']
61+
}
62+
}
63+
4964
buildTypes {
5065
release {
5166
// TODO: Add your own signing config for the release build.
5267
// Signing with the debug keys for now, so `flutter run --release` works.
53-
signingConfig signingConfigs.debug
68+
signingConfig signingConfigs.release
5469
}
5570
}
5671
}

ios/Runner.xcodeproj/project.pbxproj

+15-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@
153153
TargetAttributes = {
154154
97C146ED1CF9000F007C117D = {
155155
CreatedOnToolsVersion = 7.3.1;
156+
DevelopmentTeam = LY579HXDHF;
156157
LastSwiftMigration = 0910;
158+
ProvisioningStyle = Automatic;
157159
};
158160
};
159161
};
@@ -217,7 +219,7 @@
217219
);
218220
runOnlyForDeploymentPostprocessing = 0;
219221
shellPath = /bin/sh;
220-
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
222+
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n";
221223
};
222224
/* End PBXShellScriptBuildPhase section */
223225

@@ -309,7 +311,10 @@
309311
buildSettings = {
310312
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
311313
CLANG_ENABLE_MODULES = YES;
314+
CODE_SIGN_IDENTITY = "Apple Development";
315+
CODE_SIGN_STYLE = Automatic;
312316
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
317+
DEVELOPMENT_TEAM = LY579HXDHF;
313318
ENABLE_BITCODE = NO;
314319
FRAMEWORK_SEARCH_PATHS = (
315320
"$(inherited)",
@@ -323,6 +328,7 @@
323328
);
324329
PRODUCT_BUNDLE_IDENTIFIER = com.chunlea.actionsGo;
325330
PRODUCT_NAME = "$(TARGET_NAME)";
331+
PROVISIONING_PROFILE_SPECIFIER = "";
326332
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
327333
SWIFT_VERSION = 4.0;
328334
VERSIONING_SYSTEM = "apple-generic";
@@ -442,7 +448,10 @@
442448
buildSettings = {
443449
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444450
CLANG_ENABLE_MODULES = YES;
451+
CODE_SIGN_IDENTITY = "Apple Development";
452+
CODE_SIGN_STYLE = Automatic;
445453
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
454+
DEVELOPMENT_TEAM = LY579HXDHF;
446455
ENABLE_BITCODE = NO;
447456
FRAMEWORK_SEARCH_PATHS = (
448457
"$(inherited)",
@@ -456,6 +465,7 @@
456465
);
457466
PRODUCT_BUNDLE_IDENTIFIER = com.chunlea.actionsGo;
458467
PRODUCT_NAME = "$(TARGET_NAME)";
468+
PROVISIONING_PROFILE_SPECIFIER = "";
459469
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
460470
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
461471
SWIFT_VERSION = 4.0;
@@ -469,7 +479,10 @@
469479
buildSettings = {
470480
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
471481
CLANG_ENABLE_MODULES = YES;
482+
CODE_SIGN_IDENTITY = "Apple Development";
483+
CODE_SIGN_STYLE = Automatic;
472484
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
485+
DEVELOPMENT_TEAM = LY579HXDHF;
473486
ENABLE_BITCODE = NO;
474487
FRAMEWORK_SEARCH_PATHS = (
475488
"$(inherited)",
@@ -483,6 +496,7 @@
483496
);
484497
PRODUCT_BUNDLE_IDENTIFIER = com.chunlea.actionsGo;
485498
PRODUCT_NAME = "$(TARGET_NAME)";
499+
PROVISIONING_PROFILE_SPECIFIER = "";
486500
SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
487501
SWIFT_VERSION = 4.0;
488502
VERSIONING_SYSTEM = "apple-generic";
@@ -513,7 +527,6 @@
513527
defaultConfigurationName = Release;
514528
};
515529
/* End XCConfigurationList section */
516-
517530
};
518531
rootObject = 97C146E61CF9000F007C117D /* Project object */;
519532
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)