-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- android sdk 35 & ios 18 - kotlin 2.1.0 - gradle 8.10 - AGP 8.7
- Loading branch information
Showing
13 changed files
with
113 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ captures | |
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
xcuserdata | ||
xcuserdata | ||
.kotlin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
plugins { | ||
//trick: for the same plugin versions in all sub-modules | ||
id("com.android.application").version("7.4.1").apply(false) | ||
id("com.android.library").version("7.4.1").apply(false) | ||
kotlin("android").version("1.9.23").apply(false) | ||
kotlin("multiplatform").version("1.9.23").apply(false) | ||
id("com.android.application").version("8.7.3").apply(false) | ||
id("com.android.library").version("8.7.3").apply(false) | ||
kotlin("android").version("2.1.0").apply(false) | ||
kotlin("plugin.compose").version("2.1.0").apply(false) | ||
kotlin("multiplatform").version("2.1.0").apply(false) | ||
} | ||
|
||
tasks.register("clean", Delete::class) { | ||
delete(rootProject.buildDir) | ||
delete(rootProject.layout.buildDirectory) | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
target 'iosApp' do | ||
use_frameworks! | ||
platform :ios, '14.1' | ||
platform :ios, '18' | ||
pod 'shared', :path => '../shared' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 6 additions & 4 deletions
10
samples/kmp/shared/src/commonMain/kotlin/com/example/kmpsample/Sample.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
package com.example.kmpsample | ||
import com.trustwallet.core.* | ||
|
||
import com.trustwallet.core.CoinType | ||
import com.trustwallet.core.HDWallet | ||
|
||
class Sample { | ||
private val platform: Platform = getPlatform() | ||
|
||
fun greet(): String { | ||
var log = "Wallet Core KMP on platform: ${platform.name}!\n\n" | ||
val wallet = HDWallet(256, "") | ||
log += "Created mnemonic: ${wallet.mnemonic}\n" | ||
log += "Created mnemonic: ${wallet.mnemonic}\n\n" | ||
val btcAddress = wallet.getAddressForCoin(CoinType.Bitcoin) | ||
log += "Bitcoin address: ${btcAddress}\n\n" | ||
val ethAddress = wallet.getAddressForCoin(CoinType.Ethereum) | ||
log += "Bitcoin address: ${btcAddress}\n" | ||
log += "Ethereum address: ${ethAddress}\n" | ||
log += "Ethereum address: ${ethAddress}\n\n" | ||
return log | ||
} | ||
} |