Comments (1)
It is not possible because the compose resources were designed for the compose only.
setSmallIcon
API is the android system function. It won't work with compose multiplatform resources.
Workaround is to use platform specific resources for such cases:
- put your icon to the
androidMain/res/drawable
- add the
res
dir as android resources dir
android {
sourceSets["main"].apply {
manifest.srcFile("src/androidMain/AndroidManifest.xml")
res.srcDirs("src/androidMain/res")
}
}
- use it as a regular android resource in the android source set
from compose-multiplatform.
Related Issues (20)
- [1.6.10-beta02] Breaks Cocoapods config HOT 1
- [iosApp] org.jetbrains.compose.resources.MissingResourceException with CocoaPods HOT 12
- Modify dim level in Dialog HOT 1
- Modifier.pointerInput or clickable not working for UIKitView HOT 2
- iOS build fails with Duplicate Symbols Error when upgraded to 1.6.2 HOT 10
- Is there any easy way to help me intercept the return key? HOT 6
- Vertical Text Align Issue in iOS HOT 10
- Ignore safe area below bottom bar HOT 3
- CfW: clipboard events do not work on Windows with 1.6.10-beta02
- Crashed on Windows 7 HOT 2
- ComposePanel does not override `getAccessibleContext` HOT 4
- Support Kotlin 2.0.0-RC2 HOT 2
- Multiple configuration changes not tracked correctly when using qualifiers
- Support saving state for nested `NavHostController` HOT 18
- Compose generated string resources does not appear on testflight installed apps HOT 3
- [Test] `IllegalArgumentException` randomly throws from `performClick()` HOT 7
- Investigate new Apple polices regarding using restricted API
- Gradle tasks are using outputs without declaring an explicit or implicit dependency HOT 2
- DrawModifierNode is not synced with LazyColumn scroll position HOT 12
- sharedUserId breaks Compose Resources on Android HOT 2
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 compose-multiplatform.