Anton Afanasev
06/07/2021, 4:55 PMandylamax
06/07/2021, 6:09 PMDaan Panis
06/07/2021, 6:56 PMwbertan
06/08/2021, 9:00 AMAndroid Studio Bumblebee | 2021.1.1 Canary 2
And it seems the KMM Plugin isn’t compatible 😞
Do we have anything in the roadmap when a new compatible version of the plugin will be available?
Plugin 'Kotlin Multiplatform Mobile' (version '0.2.5(203-1.5.10-829-IJ)-120') is not compatible with the current version of the IDE, because it requires build 203.* or older but the current build is AI-211.6222.4
Elyes Ben Salah
06/08/2021, 10:53 AMdivyanshunegi
06/08/2021, 4:34 PMcore-library
in both android and iOS, we want to convert this into a KMM module and use the same on both iOS and Android as our journey of migration to KMM. as currently I saw we can only import as .jar
in Android and .framework
in iOS, is this true or can we have the complete module added to our project ?Slackbot
06/08/2021, 5:09 PMSaiedmomen
06/08/2021, 8:15 PMGoth
06/09/2021, 2:34 AMjush
06/09/2021, 6:50 AMjvm
custom compilation.
It's not clear to me how can I add that new custom compilation as dependency in another module.
More details in 🧵divyanshunegi
06/09/2021, 7:56 AMdeviant
06/09/2021, 8:23 AMrudolf.hladik
06/09/2021, 4:50 PMopen class SomeOpenClass
in my library named e.g. MyKmmLibrary
if the user use it in the kmm app the open class will have the swift name MyKmmLibrarySomeOpenClass
which is terrible, is there a way to force it to be named just SomeOpenClass
?william
06/09/2021, 7:57 PMAkram Bensalem
06/10/2021, 4:03 PMaiidziis
06/10/2021, 7:03 PMColton Idle
06/10/2021, 8:05 PMAlberto
06/10/2021, 9:43 PMSlackbot
06/11/2021, 8:47 AMdivyanshunegi
06/11/2021, 11:36 AMpublic class HeaderInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request request = chain.request();
request = request.newBuilder()
.addHeader("headerKey0", "HeaderVal0")
.addHeader("headerKey0", "HeaderVal0--NotReplaced/NorUpdated") //new header added
.build();
//alternative
Headers moreHeaders = request.headers().newBuilder()
.add("headerKey1", "HeaderVal1")
.add("headerKey2", "HeaderVal2")
.set("headerKey2", "HeaderVal2--UpdatedHere") // existing header UPDATED if available, else added.
.add("headerKey3", "HeaderKey3")
.add("headerLine4 : headerLine4Val") //line with `:`, spaces doesn't matter.
.removeAll("headerKey3") //Oops, remove this.
.build();
request = request.newBuilder().headers(moreHeaders).build();
/* ##### List of headers ##### */
// headerKey0: HeaderVal0
// headerKey0: HeaderVal0--NotReplaced/NorUpdated
// headerKey1: HeaderVal1
// headerKey2: HeaderVal2--UpdatedHere
// headerLine4: headerLine4Val
Response response = chain.proceed(request);
return response;
}
}
I have something like this custom Interceptor in my Android retrofit interceptor for headers,
I am converting this logic to ktor and want add an interceptor there, I could not find a proper solution, the way ktor docs suggest is we need to create a custom feature (Plugin) and install it while instantiating the client, any help or direction is appreciatedJim
06/11/2021, 6:04 PMUIScreen.mainScreen.bounds.size
bounds
should be a CGRect
and size
should be a CGSize
, but size
is an Int
. This seems like a bug. Any other ways to get the screen size?divyanshunegi
06/12/2021, 10:14 AMcommonMain
but as I can see it does not support addInterceptor property by default, which is available in OkHttp for Android.
So the new plan I had is create an expect class APiClient in common main and implement APIClient for Android on AndroidMain with OkHttp engine and APiClient on iOSMain with IOS Engine.
Is this approach right ? or am I missing some part ?elye
06/14/2021, 10:27 AMelye
06/14/2021, 11:40 AMhttps://www.youtube.com/watch?v=_Q62iJoNOfg▾
Nicolas Demoisson
06/14/2021, 12:33 PMHenry
06/15/2021, 2:03 AMNapa Ram
06/15/2021, 7:00 AMHossein Amini
06/15/2021, 11:11 AMCarson Holzheimer
06/15/2021, 11:25 AMstillping
06/15/2021, 2:49 PM.xcframework
into a KMP project
Is there any built-in way of consuming these things in KMP? If not, is there a Gradle plugin for this?stillping
06/15/2021, 2:49 PM.xcframework
into a KMP project
Is there any built-in way of consuming these things in KMP? If not, is there a Gradle plugin for this?mkrussel
06/15/2021, 5:06 PM.xcframework
contains architecture directories containing normal frameworks. You need to make the cinterop point to the correct directory based on the target.stillping
06/16/2021, 7:45 AM