line / abc-kmm-notifications Goto Github PK
View Code? Open in Web Editor NEWRemote Notification Manager for Kotlin Multiplatform Mobile iOS and Android
License: Apache License 2.0
Remote Notification Manager for Kotlin Multiplatform Mobile iOS and Android
License: Apache License 2.0
Hey! i am trying to use the latest version of kmm-notifications everything is work in common main and android main but when i try to add the dependency to ios main its not unable to resolve.
here is the code for my build.gradle file.
plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
kotlin(KotlinPlugins.serialization) version Kotlin.version
id("com.android.library")
}
version = "1.0"
val abcNotifications = "com.linecorp.abc:kmm-notifications:0.4.1"
kotlin {
android()
iosX64()
iosArm64()
iosSimulatorArm64()
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
ios.deploymentTarget = "14.1"
podfile = project.file("../markazSupplierIos/Podfile")
framework {
baseName = "shared"
}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(Ktor.core)
implementation(Ktor.clientSerialization)
implementation(Kotlinx.datetime)
implementation(Koin.koin)
implementation(Ktor.ktorLogging)
implementation(Firebase.auth)
implementation(MultiplatformSettings.core)
implementation(MultiplatformSettings.coroutines)
implementation(abcNotifications)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1-native-mt")
implementation("io.islandtime:core:0.6.3")
}
}
val androidMain by getting {
dependencies {
implementation(Ktor.android)
implementation(Koin.koinAndroid)
implementation(Ktor.androidLogging)
runtimeOnly(Ktor.okhttp)
implementation(Datastore.datastore)
implementation(abcNotifications)
api(abcNotifications)
implementation(MultiplatformSettings.datastore)
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val androidTest by getting
val iosX64Main by getting
val iosArm64Main by getting
val iosSimulatorArm64Main by getting
val iosMain by creating {
dependencies {
implementation(Ktor.ios)
implementation(abcNotifications)
api(abcNotifications)
}
dependsOn(commonMain)
iosX64Main.dependsOn(this)
iosArm64Main.dependsOn(this)
iosSimulatorArm64Main.dependsOn(this)
}
val iosX64Test by getting
val iosArm64Test by getting
val iosSimulatorArm64Test by getting
val iosTest by creating {
dependsOn(commonTest)
iosX64Test.dependsOn(this)
iosArm64Test.dependsOn(this)
iosSimulatorArm64Test.dependsOn(this)
}
}
}
android {
compileSdk = 31
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 21
targetSdk = 31
}
}
here is the message i am getting
Could not resolve com.linecorp.abc:kmm-notifications:0.4.1
Could not resolve com.linecorp.abc:kmm-notifications:0.4.1.
Required by:
project :shared
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Any help will be appreciated
Can we use this on compose multiplatform? Im struggling about it.. Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.