Comments (12)
hi @Burtan .
yes, we can find way to expose our sourceSet directory to configuration
from moko-resources.
@ynsok that problem has no connection with this issue, please create separate issue.
What we need:
Versions: kotlin, agp, gradle
Structure of resources in project. Because we need something recreate your problem on us project. You send only part of log, generated code file, but if this new generated file i need find why code generated without interface realisation
from moko-resources.
will be fixed in 0.24.0, please check in 0.24.0-alpha-6
from moko-resources.
will be available in 0.24.0-beta-1 :)
from moko-resources.
> Task :core:compileDebugKotlinAndroid FAILED
e: core/build/generated/kotlin/generateMRandroidMain/com/Res.kt:13:17 Object 'strings' is not abstract and does not implement abstract member public abstract val __platformDetails: ResourcePlatformDetails defined in dev.icerock.moko.resources.ResourceContainer
e: core/build/generated/kotlin/generateMRandroidMain/com/Res.kt:259:17 Object 'plurals' is not abstract and does not implement abstract member public abstract val __platformDetails: ResourcePlatformDetails defined in dev.icerock.moko.resources.ResourceContainer
e: core/build/generated/kotlin/generateMRandroidMain/com/Res.kt:263:17 Object 'images' is not abstract and does not implement abstract member public abstract val __platformDetails: ResourcePlatformDetails defined in dev.icerock.moko.resources.ResourceContainer
from moko-resources.
@ynsok any details? Sorry, but this log is useless
from moko-resources.
Ok, After updating to 0.24.0-beta-1
multiplatformResources {
resourcesPackage.set("com.******.********")
resourcesClassName.set("Res")
}
![image](https://private-user-images.githubusercontent.com/30358511/325252279-808d52de-ce69-484a-8433-e29aa877a493.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTcxNTAzNDQsIm5iZiI6MTcxNzE1MDA0NCwicGF0aCI6Ii8zMDM1ODUxMS8zMjUyNTIyNzktODA4ZDUyZGUtY2U2OS00ODRhLTg0MzMtZTI5YWE4NzdhNDkzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MzElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTMxVDEwMDcyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1ZDI3ODUwYmMzMzEzMDA5ZWZhY2E5NmE0NGE3YmY3YWY1ZWZlYzE0NzY5ZDdkZTU4NzI5M2Q3N2ExY2MzMTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.dfELuwtNo_4_pKvDBclnF9UTZj7dNuYhDmadxauHg0A)
@ExNDY What other information do you need?
from moko-resources.
@ExNDY My Bad, I didn't update the resources Generator version. It is working
from moko-resources.
Np)
from moko-resources.
Hey, thanks for addressing this issue!
I tried beta-2 with createBuildInfoTask generating resources defined as the tasks output.
afterEvaluate {
multiplatformResources.resourcesSourceSets["commonMain"].srcDir(createBuildInfoTask)
}
The directory is read correctly and the resource access code is generated.
However, the gradle dependency graph is not modified, which means you have to manually trigger the createBuildInfoTask before invoking the moko-resources tasks.
According to JetBrains this should be the way to define task/resource dependencies.
from moko-resources.
If you know what should be changed to achieve what you want - sent pr :)
Or just add Gradle task dependsOn
from moko-resources.
When using an explicit dependsOn
, it often results in complex explicit task dependencies that have to follow (see the linked thread). I have no experience in Gradle plugin coding, but maybe SourceDirectorySet.compiledBy
has to be used to tell Gradle that the task processing the resources actually depends on tasks that define the SourceDirectorySet
?
Maybe the task just has to declare dependency on the SourceDirectorySet?
from moko-resources.
Related Issues (20)
- 0.24.0-beta-2 includes file extension in `files` and `assets` in the resource name HOT 1
- Apostrophe incorrectly displayed on iOS HOT 3
- 0.24.0-beta-03 includes removed strings and fails to build HOT 3
- 0.24.0-beta-3 incorrectly escapes unicode character sequences in iOS strings file HOT 2
- Add observable to StringDesc.localeType
- 0.24.0-beta-03 When compiled on windows, android assets use \ instead of / for folder paths HOT 1
- Cannot change attributes of dependency configuration ':xxx:iosX64CInteropApiElements' after it has been resolved HOT 11
- Resolving dependency configuration 'metadataCompilationApi' is not allowed as it is defined as 'canBeResolved=false' HOT 1
- Load image as plain resource by string on iOS
- Slow loading of string resource at first open of screen HOT 6
- Suggested improvements to CopyFrameworkResourcesToAppTask HOT 1
- 0.24.0-beta-4 incorrectly handles plurals with `"` character; displays as `\"` on iOS and doesn't display on Android. HOT 2
- Font caching Issue for ios HOT 9
- Crash when using MR.strings() in unit tests iOS HOT 9
- Are there plans to support linuxX64? HOT 1
- Remove unnecessary dependency HOT 1
- How do I get the text value on JVM? HOT 2
- Have a dumb question about a different approach to save resources directly in a Kotlin file :D HOT 1
- 0.24.0-beta-5 creates invalid unicode escape sequence HOT 8
- Can't use Moko resources for JVM target HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moko-resources.