Browse Source

update uikit sample to compose version 1.2.0 alpha01 dev724 (#2137)

pull/2140/head
dima.avdeev 2 years ago committed by GitHub
parent
commit
b1fe574a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      experimental/examples/falling-balls-mpp/README.md
  2. 5
      experimental/examples/falling-balls-mpp/build.gradle.kts
  3. 3
      experimental/examples/falling-balls-mpp/gradle.properties
  4. 4
      experimental/examples/minesweeper/README.md
  5. 8
      experimental/examples/minesweeper/build.gradle.kts
  6. 1
      experimental/examples/minesweeper/gradle.properties

4
experimental/examples/falling-balls-mpp/README.md

@ -29,8 +29,6 @@ After a successful launch on the device - you can delete this temporary project.
Certificates will remain in login.keychain Certificates will remain in login.keychain
## Run on iOS device ## Run on iOS device
- set teamId in local.properties - Set teamId in build.gradle.kts, or set in local.properties (compose.ios.teamId=***)
- In build.gradle.kts
add block `connectedDevice("Device") { }` to compose.experimental.uikit.application.deployConfigurations
- `./gradlew iosDeployDeviceRelease` - `./gradlew iosDeployDeviceRelease`
- During the build, you will be prompted to access login.keychain - During the build, you will be prompted to access login.keychain

5
experimental/examples/falling-balls-mpp/build.gradle.kts

@ -163,6 +163,11 @@ compose.experimental {
//Usage: ./gradlew iosDeployIPadDebug //Usage: ./gradlew iosDeployIPadDebug
device = IOSDevices.IPAD_MINI_6th_Gen 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
}
} }
} }
} }

3
experimental/examples/falling-balls-mpp/gradle.properties

@ -1,5 +1,5 @@
org.gradle.jvmargs=-Xmx3g org.gradle.jvmargs=-Xmx3g
compose.version=1.2.0-alpha01-dev716 compose.version=1.2.0-alpha01-dev724
kotlin.version=1.6.21 kotlin.version=1.6.21
kotlin.code.style=official kotlin.code.style=official
kotlin.native.cacheKind=none kotlin.native.cacheKind=none
@ -8,3 +8,4 @@ kotlin.native.enableDependencyPropagation=false
kotlin.mpp.enableGranularSourceSetsMetadata=true kotlin.mpp.enableGranularSourceSetsMetadata=true
# Enable kotlin/native experimental memory model # Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental kotlin.native.binary.memoryModel=experimental
compose.desktop.verbose=true

4
experimental/examples/minesweeper/README.md

@ -9,5 +9,9 @@ A simple game powered by Compose Multiplatform
`./gradlew iosDeployIPhone8Debug` `./gradlew iosDeployIPhone8Debug`
`./gradlew iosDeployIPadDebug` `./gradlew iosDeployIPadDebug`
## Run on iOS device
- Read about iOS target in [falling-balls-mpp/README.md](../falling-balls-mpp/README.md)
- `./gradlew iosDeployDeviceRelease`
## Credits ## 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> <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
experimental/examples/minesweeper/build.gradle.kts

@ -16,7 +16,7 @@ buildscript {
plugins { plugins {
kotlin("multiplatform") version "1.6.21" 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" version = "1.0-SNAPSHOT"
@ -164,9 +164,11 @@ compose.experimental {
//Usage: ./gradlew iosDeployIPadDebug //Usage: ./gradlew iosDeployIPadDebug
device = IOSDevices.IPAD_MINI_6th_Gen 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 //Usage: ./gradlew iosDeployDeviceRelease
// } }
} }
} }
} }

1
experimental/examples/minesweeper/gradle.properties

@ -5,3 +5,4 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false kotlin.native.enableDependencyPropagation=false
# Enable kotlin/native experimental memory model # Enable kotlin/native experimental memory model
kotlin.native.binary.memoryModel=experimental kotlin.native.binary.memoryModel=experimental
compose.desktop.verbose=true

Loading…
Cancel
Save