Skip to content

Commit

Permalink
Release 1.0.0 (#18)
Browse files Browse the repository at this point in the history
* Release 1.0.0

* set 1.0.0
  • Loading branch information
rahul27 authored Jun 30, 2022
1 parent 9d82ce1 commit 5a6dc40
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ maven {

## Version History

The latest release of the SDK is `0.6.0`. Details about the current and past releases can be found in the [Releases](https://github.com/moonsense/moonsense-android-sdk/releases) section.
The latest release of the SDK is `1.0.0`. Details about the current and past releases can be found in the [Releases](https://github.com/moonsense/moonsense-android-sdk/releases) section.


## Integration
Expand Down
29 changes: 29 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
Expand All @@ -13,6 +15,10 @@ buildscript {
}
}

plugins {
id("com.github.ben-manes.versions").version(Versions.gradleVersionsPlugin)
}

allprojects {
repositories {
google()
Expand All @@ -26,4 +32,27 @@ allprojects {

tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}

fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
}

tasks.withType<DependencyUpdatesTask> {
outputFormatter = closureOf<com.github.benmanes.gradle.versions.reporter.result.Result> {
if (outdated.dependencies.isEmpty()) {
println("Up to date!")
} else {
for (dependency in outdated.dependencies) {
println("${dependency.group} ${dependency.name} ${dependency.version} -> ${dependency.available.release ?: dependency.available.milestone}")
}
}
}
rejectVersionIf {
// ignore jacoco - https://github.com/ben-manes/gradle-versions-plugin/issues/534
isNonStable(candidate.version) || (candidate.group == "org.jacoco") && (candidate.version != currentVersion)
}
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/AppConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object AppConfig {
const val minSdkVersion = 16
const val targetSdkVersion = 31
const val versionCode = 1
const val versionName = "0.6.0"
const val versionName = "1.0.0"
const val buildToolsVersion = "30.0.3"
const val androidTestInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
const val jvmTarget = "11"
Expand Down
13 changes: 7 additions & 6 deletions buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@

object Versions {
const val gradleTools = "7.2.1"
const val kotlinVersion = "1.6.21"
const val kotlinVersion = "1.7.0"
const val junit = "4.13.2"
const val junitAndroidX = "1.1.3"
const val espressoCore = "3.4.0"
const val squareWireRuntime = "4.3.0"
const val constraintLayout = "2.1.3"
const val fragmentKtx = "1.4.1"
const val squareWireRuntime = "4.4.0"
const val constraintLayout = "2.1.4"
const val fragmentKtx = "1.5.0"
const val androidXLegacySupport = "1.0.0"
const val material = "1.5.0"
const val material = "1.6.1"
const val retrofit = "2.9.0"
const val gson = "2.9.0"
const val mockWebServer = "4.9.3"
const val mockWebServer = "4.10.0"
const val gradleVersionsPlugin = "0.42.0"
}

0 comments on commit 5a6dc40

Please sign in to comment.