Releases: icerockdev/moko-resources
0.24.0-alpha-5
This is an alpha version. Bugs may be present. Any new features may change their API before release.
Changes
- fix registration of
copyFrameworkResourcesToApp
task without cocoapods usage (invalid property was used)
0.24.0-alpha-4
This is an alpha version. Bugs may be present. Any new features may change their API before release.
Changes
- fix missed
copyFrameworkResourcesToApp
task for case when framework prefix is empty
0.24.0-alpha-3
This is an alpha version. Bugs may be present. Any new features may change their API before release.
Changes
- fix missed
copyFrameworkResourcesToApp
task - fix IDE Gradle Sync issue (Querying the mapped value of provider(java.util.Set) before task ':common:resources:generateMRandroidDebug' has completed is not supported)
- migrate android source sets configuration to Android Gradle plugin Variants API. This should fix issues with explicit gradle task dependencies
0.24.0-alpha-2
This is an alpha version. Bugs may be present. Any new features may change their API before release.
Changes
- fix deep hierarchy actual generation
0.24.0-alpha-1
This is an alpha version. Bugs may be present. Any new features may change their API before release.
Changes
- Kotlin 1.9 support (tested on kotlin 1.9.10, 1.9.20)
- Compose Multiplatform 1.5 support (tested on 1.5.11)
- Gradle Configuration Cache support
- Multiple resources source directories support (now you can store resources in any kotlin source set - in commonMain for shared resources and iosMain for ios, for example)
- Added config to control apple actool minimal deployment target (
acToolMinimalDeploymentTarget
)
Breaking changes
- resources now moved from
src/<sourceSet>/resources/MR
tosrc/<sourceSet>/moko-resources
- fonts now generated without inner objects - old generation style was
MR.fonts.Arial.italic
nowMR.fonts.arial-italic
- assets now generated without inner objects - old generation style was
MR.assets.dir.innerdir.myasset
nowMR.assets.myasset
- this will be fixed later
How to update
- change version of moko-resources gradle plugin and runtime library to
0.24.0-alpha-1
- change version of kotlin to 1.9+ (1.9.10+ to support xcode 15 for iOS)
- change version of compose multiplatform to 1.5+ (better to use CM 1.5.11 and kotlin 1.9.21)
- change version of android gradle plugin to 8.1.0+
- change version of gradle to 8.0+
- move resources from
src/<sourceSet>/resources/MR
tosrc/<sourceSet>/moko-resources
- remove gradle config
resourcesSourceSet
- now expect object will be generated in lower source set in hierarchy - change all
multiplatformResources
values set from=
toset
likeresourcesPackage = "org.example.library"
toresourcesPackage.set("org.example.library")
- remove any used workaround hacks from gradle config (like add dependsOn(commonMain) in each source set or direct add of generated kotlin source directories)
if you use fonts or assets - you should update your code to new generation structure (no inner objects in fonts and assets now).
If you have some issues
At first please compare your setup with samples in release branch.
If you not find solution with samples - read next block.
Call to feedback
In this release gradle plugin was rewritten to fix fundamental problems. All sample projects now compiles and works fine, but in real projects can be some new cases that will not work. Please write us in attached to this release discussion. Write about successful works case, about bugs, any feedback about this release.