Skip to content

Commit

Permalink
Maybe fix android build in jetpack client
Browse files Browse the repository at this point in the history
  • Loading branch information
simlay committed Jun 21, 2024
1 parent 949eff6 commit 4b57577
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/core/examples/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const TIME_OUT: Duration = Duration::from_secs(2);
async fn main() {
let _ = env_logger::builder().parse_default_env().try_init();

let url = format!("http://{HOST}/simple_stream?_lvn[format]=swiftui");
let url = format!("http://{HOST}/simple_stream?_format=swiftui");

let live_socket = LiveSocket::new(url.to_string(), TIME_OUT)
.await
Expand Down
12 changes: 9 additions & 3 deletions crates/core/liveview-native-core-jetpack/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ subprojects {
}

dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("net.java.dev.jna:jna:5.14.0@aar")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1")
compileOnly("net.java.dev.jna:jna:5.14.0@aar")

androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")

testImplementation("junit:junit:4.13.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1")
testImplementation("net.java.dev.jna:jna:5.14.0")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
}
Expand All @@ -41,8 +41,10 @@ android {
getByName("release") {
isMinifyEnabled = false
}
/*
create("releaseDesktop") {
}
*/
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
Expand All @@ -57,10 +59,12 @@ android {
withSourcesJar()
withJavadocJar()
}
/*
singleVariant("releaseDesktop") {
withSourcesJar()
withJavadocJar()
}
*/
}
ndkVersion = "26.3.11579264"

Expand Down Expand Up @@ -165,6 +169,7 @@ publishing {
}
}
}
/*
publications {
register<MavenPublication>("releaseDesktop") {
groupId = "org.phoenixframework"
Expand All @@ -176,4 +181,5 @@ publishing {
}
}
}
*/
}

0 comments on commit 4b57577

Please sign in to comment.