Konstantin Petrukhnov
10/21/2019, 8:16 AMfcosta
10/21/2019, 2:18 PMPreview
. It crashes. Any way to workaround this? The log follows:Sujit
10/21/2019, 7:43 PMval ios64 = iosArm64("ios64")
val iosSim = iosX64("iosSim")
val iosMain by sourceSets.creating {
dependencies {
implementation(kotlin(Config.ios.dependencies.stdlib))
implementation(Config.ios.dependencies.serialization)
implementation(Config.ios.dependencies.coroutines)
}
}
val iosTest by sourceSets.creating {
dependencies {
implementation(kotlin(Config.ios.dependencies.stdlib))
implementation(Config.android.dependencies.coroutinesTest)
}
}
configure(listOf(ios64, iosSim)) {
binaries.framework {
baseName = Config.ios.frameworkName
freeCompilerArgs.add("-Xobjc-generics")
}
sourceSets {
@Suppress("UNUSED_VARIABLE")
val ios64Main by getting {
dependsOn(iosMain)
}
@Suppress("UNUSED_VARIABLE")
val iosSimMain by getting {
dependsOn(iosMain)
}
@Suppress("UNUSED_VARIABLE")
val ios64Test by getting {
dependsOn(iosTest)
}
@Suppress("UNUSED_VARIABLE")
val iosSimTest by getting {
dependsOn(iosTest)
}
}
}
Now, when I make a publication, it publishes two separate native components for iOS, basically, for both iossim
, and ios64
. What's the standard way to do this, such that I can only publish the native library called native
, and no iossim
, ios64
. I feel like I'm missing a link here somewhere... All the sources are in iosMain
, and iosTest
foldershhariri
10/22/2019, 9:39 AMKenneth Andersson
10/22/2019, 4:16 PMFranGSierra
10/23/2019, 8:20 AMsharedModule
class is Storage
on iOS it's generated and called as StorageKT
. There is any way to change the name programatically?Zhan Huang
10/23/2019, 5:57 PMSylvain Patenaude
10/23/2019, 8:10 PMDmitri Sh
10/24/2019, 1:17 AMinterface Idea
. When in Swift, want to have a struct implement this interface, a.k.a protocol now in the Swiftland. Get a compiler error - inheritance from non-protocol type 'Idea'.
In the generated objective-c file I see this - __attribute__((objc_subclassing_restricted))
. Reading on it, all objective c protocols are restricted to classes. So how I do get around this problem - or no getting around and have to use classes in Swift😥?Alexander Minyaev
10/24/2019, 4:33 PMKris Wong
10/24/2019, 8:23 PMKris Wong
10/24/2019, 9:02 PMkpgalligan
10/25/2019, 12:44 AMMarc Reichelt
10/25/2019, 11:38 AM> Task :app:prepareLintJar
> Task :app:lintVitalRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Configuration with name 'compileClasspath' not found.
Sylvain Patenaude
10/25/2019, 7:05 PMkpgalligan
10/26/2019, 4:20 PMShan
10/26/2019, 11:47 PMenableFeaturePreview("GRADLE_METADATA")
feature. Is the idea that I apply a common
dependency to my commonMain and if I have this enabled it will auto apply the correct dependency for each target's sourceset, as long as they have supported the metadata feature also?Shan
10/26/2019, 11:52 PMlouiscad
10/27/2019, 9:32 AMandroidTest
(which maps to AGP test
is seems, but I sadly don't know how).
I'm mentioning you because I know you worked on AGP integration, and I digged so deep without a real solution that I don't know who else could help me on that one.Konstantin Petrukhnov
10/28/2019, 8:11 AMMarc Reichelt
10/28/2019, 1:40 PMsourceSets["iosMain"].dependencies {
implementation("io.ktor:ktor-client-ios:$ktorVersion")
}
But Gradle complains with “KotlinSourceSet with name ‘iosMain’ not found.“…Sylvain Patenaude
10/28/2019, 3:37 PMProject MySDK at : is either no Android app project or build version has not been set to override. Skipping...
Therefore, no .framework file is generated. Any clue?JoakimForslund
10/29/2019, 9:27 AMErik Christensen
10/29/2019, 7:23 PMKonstantin Petrukhnov
10/30/2019, 5:17 AMRishabh Harit
10/30/2019, 12:11 PMmagnumrocha
10/30/2019, 1:13 PMTony
10/30/2019, 6:04 PMKurt Renzo Acosta
10/31/2019, 12:38 AMKonstantin Petrukhnov
10/31/2019, 6:14 AMKonstantin Petrukhnov
10/31/2019, 6:14 AMgildor
10/31/2019, 6:27 AMtylerwilson
10/31/2019, 2:28 PMdarkmoon_uk
11/07/2019, 12:16 AM