Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
petersamokhin committed Dec 29, 2022
1 parent 2932fc1 commit e50f2d0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
10 changes: 10 additions & 0 deletions auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change log

Version 1.0.0 *(2022-12-29)*
----------------------------

* Bump `minSdk` to `21`
* Support Chrome Custom Tabs (thanks @DrRey in #4)
* Migrate to Activity Result API (thanks @DrRey in #5)
* Simplify the API
* Migrate to Robolectric tests from `androidTest`
* Bump the dependencies

Version 0.0.2 *(2020-04-27)*
----------------------------

Expand Down
2 changes: 1 addition & 1 deletion auth/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POM_ARTIFACT_ID=auth
POM_NAME=VK SDK Android Auth
POM_DESCRIPTION=VK SDK Android, module Auth
VERSION_NAME=0.0.3-SNAPSHOT
VERSION_NAME=1.0.0
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=com.petersamokhin.vksdk.android
VERSION_NAME=0.0.3-SNAPSHOT
VERSION_NAME=1.0.0

REPOSITORY_URL_MAVEN_STAGING_DEFAULT=https://oss.sonatype.org/service/local/staging/deploy/maven2/
REPOSITORY_URL_MAVEN_SNAPSHOT_DEFAULT=https://oss.sonatype.org/content/repositories/snapshots/
Expand Down
1 change: 0 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ espressoCore = "3.5.0"
mockito = "4.9.0"

androidGradle = "7.3.1"
publish = "0.22.0"
dokka = "1.7.20"

browser = "1.4.0"
Expand Down
12 changes: 7 additions & 5 deletions gradle/mavenpublish.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'signing'

afterEvaluate {
def isRelease = !project.VERSION_NAME.endsWith('SNAPSHOT')

publishing {
publications {
release(MavenPublication) {
Expand Down Expand Up @@ -46,20 +48,20 @@ afterEvaluate {
def releasesRepoUrl = project.findProperty('REPOSITORY_URL_MAVEN_STAGING_DEFAULT')
def snapshotsRepoUrl = project.findProperty('REPOSITORY_URL_MAVEN_SNAPSHOT_DEFAULT')

url = project.VERSION_NAME.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
url = isRelease ? releasesRepoUrl : snapshotsRepoUrl

if (!project.VERSION_NAME.endsWith('SNAPSHOT')) {
if (isRelease) {
credentials {
username = project.SONATYPE_NEXUS_USERNAME
password = project.SONATYPE_NEXUS_PASSWORD
username = project.findProperty('SONATYPE_NEXUS_USERNAME')
password = project.findProperty('SONATYPE_NEXUS_PASSWORD')
}
}
}
}
}

signing {
required { !project.VERSION_NAME.endsWith('SNAPSHOT') }
required { isRelease }

def signingKey = project.findProperty('signingKey')
def signingPassword = project.findProperty('signingPassword')
Expand Down

0 comments on commit e50f2d0

Please sign in to comment.