-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[12] Integrate Moko Resources to share project resources between platforms #44
base: develop
Are you sure you want to change the base?
Conversation
Kover report:🧛 Unit Tests Code Coverage:
|
File | Coverage |
---|---|
HomeScreen.kt |
0.00% |
Strings.kt |
0.00% |
Modified Files Not Found In Coverage Report:
Dependencies.kt
Dependencies.kt
Gemfile.lock
Plugins.kt
Plugins.kt
Podfile.lock
Versions.kt
Versions.kt
build.gradle.kts
build.gradle.kts
build.gradle.kts
build.gradle.kts
project.pbxproj
strings.xml
strings.xml
Codebase cunningly covered by count Shroud 🧛
Generated by 🚫 Danger
733215b
to
9d544fd
Compare
9828b2b
to
50865c4
Compare
return if (args.isEmpty()) { | ||
StringDesc.Resource(id).toString(context = context) | ||
} else { | ||
id.format(*args.toTypedArray()).toString(context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In most cases using a spread operator causes a full copy of the array to be created before calling a method. This may result in a performance penalty. |
return if (args.isEmpty()) { | ||
StringDesc.Resource(id).localized() | ||
} else { | ||
id.format(*args.toTypedArray()).localized() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In most cases using a spread operator causes a full copy of the array to be created before calling a method. This may result in a performance penalty. |
50865c4
to
f78241f
Compare
f78241f
to
c52faf4
Compare
2fe0b62
to
26ea55f
Compare
sample/shared/build.gradle.kts
Outdated
@@ -59,6 +62,11 @@ kotlin { | |||
implementation(AUTH) | |||
} | |||
|
|||
with(Dependencies.Moko) { | |||
api(RESOURCES) | |||
// api(RESOURCES_COMPOSE) FIXME: Cannot build the shared module with this dependency |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what is the issue with this dependency but I can build the project with this line @AVI5HEK. Can you please provide the logs of the error?
Screen.Recording.2023-09-28.at.8.39.15.AM.mov
8f37830
to
9c79a0d
Compare
What happened 👀
Add Moko Resources to the template.
Insight 📝
:shared
module fails to build if we add the dependencydev.icerock.moko:resources-compose:0.23.0
. This line has been commented out for now until a resolution is found.expect
andactual
classes and methods ofStrings
as a helper to get the strings from Moko resources in both the Android and iOS apps.Proof Of Work 📹
Android
iOS