diff --git a/README.md b/README.md index b99dfd1b..9ace4075 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # WebView wrapper for Jetpack Compose [![](https://jitpack.io/v/KevinnZou/compose-webview.svg)](https://jitpack.io/#KevinnZou/compose-webview) +[![Maven Central](https://img.shields.io/maven-central/v/io.github.kevinnzou/compose-webview.svg)](https://search.maven.org/artifact/io.github.kevinnzou/compose-webview) +![badge-android](http://img.shields.io/badge/platform-android-6EDB8D.svg?style=flat) According to the [official documentation](https://medium.com/androiddevelopers/an-update-on-jetpack-compose-accompanist-libraries-august-2023-ac4cbbf059f1) updated on August 2023, Jetpack Compose Accompanist library decided to deprecate the Web library with no replacement. @@ -23,15 +25,15 @@ This will display a WebView in your Compose layout that shows the URL provided. ## Download -[![](https://jitpack.io/v/KevinnZou/compose-webview.svg)](https://jitpack.io/#KevinnZou/compose-webview) +[![Maven Central](https://img.shields.io/maven-central/v/io.github.kevinnzou/compose-webview.svg)](https://search.maven.org/artifact/io.github.kevinnzou/compose-webview) ```groovy repositories { - maven { url 'https://jitpack.io' } + mavenCentral() } dependencies { - implementation "com.github.KevinnZou:compose-webview:0.33.2" + implementation "io.github.KevinnZou:compose-webview:0.33.3" } ``` diff --git a/gradle.properties b/gradle.properties index 05f7571f..aaf98dfd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -31,23 +31,23 @@ systemProp.org.gradle.internal.publish.checksums.insecure=true # Increase timeout when pushing to Sonatype (otherwise we get timeouts) systemProp.org.gradle.internal.http.socketTimeout=120000 -GROUP=com.google.accompanist -# !! No longer need to update this manually when using a Compose SNAPSHOT -VERSION_NAME=0.33.2-SNAPSHOT +GROUP=io.github.kevinnzou +POM_ARTIFACT_ID=compose-webview +VERSION_NAME=0.33.3 -POM_DESCRIPTION=Utilities for Jetpack Compose +POM_NAME=Compose WebView +POM_INCEPTION_YEAR=2023 +POM_DESCRIPTION=WebView for Jetpack Compose +POM_URL=https://github.com/KevinnZou/compose-webview -POM_URL=https://github.com/google/accompanist/ -POM_SCM_URL=https://github.com/google/accompanist/ -POM_SCM_CONNECTION=scm:git:git://github.com/google/accompanist.git -POM_SCM_DEV_CONNECTION=scm:git:git://github.com/google/accompanist.git +POM_SCM_URL=https://github.com/KevinnZou/compose-webview +POM_SCM_CONNECTION=scm:git:git://github.com/KevinnZou/compose-webview.git +POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/KevinnZou/compose-webview.git POM_LICENCE_NAME=The Apache Software License, Version 2.0 POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt POM_LICENCE_DIST=repo -POM_DEVELOPER_ID=google -POM_DEVELOPER_NAME=Google - -SONATYPE_HOST=DEFAULT -RELEASE_SIGNING_ENABLED=true +POM_DEVELOPER_ID=kevinzou +POM_DEVELOPER_NAME=Kevin Zou +POM_DEVELOPER_URL=https://github.com/KevinnZou/ \ No newline at end of file diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 477203c7..4664aa57 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -22,7 +22,7 @@ androidxnavigation = "2.7.0-alpha01" androidxWindow = "1.0.0" metalava = "0.3.2" -vanniktechPublish = "0.25.2" +vanniktechPublish = "0.25.3" core-ktx = "1.9.0" junit = "4.13.2" androidx-test-ext-junit = "1.1.5" diff --git a/web/build.gradle.kts b/web/build.gradle.kts index 4c473028..8ded80a0 100644 --- a/web/build.gradle.kts +++ b/web/build.gradle.kts @@ -20,7 +20,7 @@ plugins { id(libs.plugins.android.kotlin.get().pluginId) id(libs.plugins.jetbrains.dokka.get().pluginId) id(libs.plugins.gradle.metalava.get().pluginId) - `maven-publish` + id("com.vanniktech.maven.publish") } kotlin { @@ -87,29 +87,8 @@ android { assets.srcDirs("src/androidTest/assets") } } - - publishing { - singleVariant("release") { - withJavadocJar() - withSourcesJar() - } - } } -afterEvaluate { - publishing { - publications { - // Creates a Maven publication called "release". - create("release") { - from(components["release"]) - groupId = "com.github.kevinnzou" - artifactId = "compose-webview" - version = "0.33.2" - } - } - } - -} metalava { sourcePaths.setFrom("src/main") @@ -156,3 +135,8 @@ dependencies { androidTestImplementation(libs.squareup.mockwebserver) } + +mavenPublishing { + publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01, automaticRelease = true) + signAllPublications() +} diff --git a/web/gradle.properties b/web/gradle.properties index 116188ae..e69de29b 100644 --- a/web/gradle.properties +++ b/web/gradle.properties @@ -1,3 +0,0 @@ -POM_ARTIFACT_ID=accompanist-webview -POM_NAME=Accompanist WebView -POM_PACKAGING=aar \ No newline at end of file