Closed yshrsmz closed 5 years ago
Thank you for reporting!
I will try to make the ios common module on the next version.
Please specify the napier-iosArm64
or napier-iosArm32
in your gradle till then.
For other peoples
This is the artifacts list. https://bintray.com/beta/#/aakira/maven/napier?tab=files
You should specify the napier-iosArm64
or napier-iosArm32
in your gradle if you want to use real iOS device.
iOSMain {
dependencies {
implementation 'com.github.aakira:napier-iosArm64:0.0.5'
}
}
@AAkira Is there any progress on this?
My current workaround is something like this.
def napier = [
common : "com.github.aakira:napier:${versions.napier}",
android : "com.github.aakira:napier-android:${versions.napier}",
iosX64 : "com.github.aakira:napier-ios:${versions.napier}",
iosArm64: "com.github.aakira:napier-iosArm64:${versions.napier}",
]
kotlin {
def iosTargetName = project.findProperty("kotlin.target") ?: "iosX64"
def iosTarget = presets.getByName(iosTargetName)
targetFromPreset(iosTarget) {
binaries {
framework()
}
}
sourceSets {
iosMain {
dependencies {
implementation napier[iosTargetName]
}
}
}
}
@yshrsmz Oh, that's clever 👍
@yshrsmz @JanStoltman @wuseal
Hi guys!
I have good news.
I just published Napier 1.0.0.
It has the napier-ios
artifact which includes Arm64, Arm32, and X64.
Please check it.
That's great! Thanks a lot 👍
Great! Really Good News
Nice, thanks!
Amazing, thanks!!!!
I got following error while building iOS app for real device.
It looks like
napier-ios
artifact is for iOS simulator.Please consider either of these;
napier-iosArm34
andnapier-iosArm64
) in README and add how we should use these threenapier-ios
ios common module, and let Gradle choose appropriate module depending on target iOS cpu architecture.https://repo.maven.apache.org/maven2/com/squareup/sqldelight/ios-driver/1.1.3/ this link is the example of iOS common artifact. As you can see, common module should include
*.module
file to choose appropriate artifact for different variants.