Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit cd6c229

Browse files
committed
fixes to use Gradle 4.7 and workaround for env variables on 4.7 gradle - use -P in Gradle commandline instead
1 parent 5c452c5 commit cd6c229

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tutorials/mpp-iOS-Android/SharedCode/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ configurations {
3131

3232
task packForXCode(type: Sync) {
3333
final File frameworkDir = new File(buildDir, "xcode-frameworks")
34-
final String mode = System.getenv('CONFIGURATION')?.toUpperCase() ?: 'DEBUG'
34+
final String mode = project.findProperty("XCODE_CONFIGURATION")?.toUpperCase() ?: 'DEBUG'
3535

3636
inputs.property "mode", mode
3737
dependsOn kotlin.targets.iOS.compilations.main.linkTaskName("FRAMEWORK", mode)

tutorials/mpp-iOS-Android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22

33
buildscript {
4-
ext.kotlin_version = '1.3.0-rc-57'
4+
ext.kotlin_version = '1.3.0-rc-190'
55
repositories {
66
google()
77
jcenter()

tutorials/mpp-iOS-Android/native/KotlinIOS/KotlinIOS.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
);
169169
runOnlyForDeploymentPostprocessing = 0;
170170
shellPath = /bin/sh;
171-
shellScript = "\ncd $SRCROOT/../../SharedCode/build/xcode-frameworks\n./gradlew :SharedCode:packForXCode\n";
171+
shellScript = "\ncd $SRCROOT/../../SharedCode/build/xcode-frameworks\n./gradlew :SharedCode:packForXCode -PXCODE_CONFIGURATION=${CONFIGURATION}\n";
172172
};
173173
/* End PBXShellScriptBuildPhase section */
174174

0 commit comments

Comments
 (0)