Skip to content

Commit

Permalink
update uikit sample to compose version 1.2.0 alpha01 dev724 (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
dima-avdeev-jb authored Jun 23, 2022
1 parent 586ec43 commit b1fe574
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
4 changes: 1 addition & 3 deletions experimental/examples/falling-balls-mpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ After a successful launch on the device - you can delete this temporary project.
Certificates will remain in login.keychain

## Run on iOS device
- set teamId in local.properties
- In build.gradle.kts
add block `connectedDevice("Device") { }` to compose.experimental.uikit.application.deployConfigurations
- Set teamId in build.gradle.kts, or set in local.properties (compose.ios.teamId=***)
- `./gradlew iosDeployDeviceRelease`
- During the build, you will be prompted to access login.keychain
5 changes: 5 additions & 0 deletions experimental/examples/falling-balls-mpp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ compose.experimental {
//Usage: ./gradlew iosDeployIPadDebug
device = IOSDevices.IPAD_MINI_6th_Gen
}
connectedDevice("Device") {
//First need specify your teamId here, or in local.properties (compose.ios.teamId=***)
//teamId="***"
//Usage: ./gradlew iosDeployDeviceRelease
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion experimental/examples/falling-balls-mpp/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
org.gradle.jvmargs=-Xmx3g
compose.version=1.2.0-alpha01-dev716
compose.version=1.2.0-alpha01-dev724
kotlin.version=1.6.21
kotlin.code.style=official
kotlin.native.cacheKind=none
Expand All @@ -8,3 +8,4 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
compose.desktop.verbose=true
4 changes: 4 additions & 0 deletions experimental/examples/minesweeper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ A simple game powered by Compose Multiplatform
`./gradlew iosDeployIPhone8Debug`
`./gradlew iosDeployIPadDebug`

## Run on iOS device
- Read about iOS target in [falling-balls-mpp/README.md](../falling-balls-mpp/README.md)
- `./gradlew iosDeployDeviceRelease`

## Credits
<div>Icons made by <a href="https://www.flaticon.com/authors/creaticca-creative-agency" title="Creaticca Creative Agency">Creaticca Creative Agency</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
8 changes: 5 additions & 3 deletions experimental/examples/minesweeper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {

plugins {
kotlin("multiplatform") version "1.6.21"
id("org.jetbrains.compose") version "1.2.0-alpha01-dev716"
id("org.jetbrains.compose") version "1.2.0-alpha01-dev724"
}

version = "1.0-SNAPSHOT"
Expand Down Expand Up @@ -164,9 +164,11 @@ compose.experimental {
//Usage: ./gradlew iosDeployIPadDebug
device = IOSDevices.IPAD_MINI_6th_Gen
}
// connectedDevice("Device") { //todo lazy init (compose.ios.teamId=*** in local.properties)
connectedDevice("Device") {
//First need specify your teamId here, or in local.properties (compose.ios.teamId=***)
//teamId="***"
//Usage: ./gradlew iosDeployDeviceRelease
// }
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions experimental/examples/minesweeper/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
# Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental
compose.desktop.verbose=true

0 comments on commit b1fe574

Please sign in to comment.