Skip to content

Commit

Permalink
feat:Release Version 0.33.3
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinnZou committed Oct 28, 2023
1 parent 55757c8 commit bff321e
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 42 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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"
}
```

Expand Down
26 changes: 13 additions & 13 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
28 changes: 6 additions & 22 deletions web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<MavenPublication>("release") {
from(components["release"])
groupId = "com.github.kevinnzou"
artifactId = "compose-webview"
version = "0.33.2"
}
}
}

}

metalava {
sourcePaths.setFrom("src/main")
Expand Down Expand Up @@ -156,3 +135,8 @@ dependencies {

androidTestImplementation(libs.squareup.mockwebserver)
}

mavenPublishing {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.S01, automaticRelease = true)
signAllPublications()
}
3 changes: 0 additions & 3 deletions web/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
POM_ARTIFACT_ID=accompanist-webview
POM_NAME=Accompanist WebView
POM_PACKAGING=aar

0 comments on commit bff321e

Please sign in to comment.