Skip to content

Commit

Permalink
Release 0.5.0 (#16)
Browse files Browse the repository at this point in the history
* Release 0.5.0

- Updates the sample apps to version 0.5.0

* update the README
  • Loading branch information
rahul27 authored May 27, 2022
1 parent 0f7884b commit 765d566
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 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.4.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 `0.5.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
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.4.0"
const val versionName = "0.5.0"
const val buildToolsVersion = "30.0.3"
const val androidTestInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
const val jvmTarget = "11"
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

object Versions {
const val gradleTools = "7.1.3"
const val gradleTools = "7.2.1"
const val kotlinVersion = "1.6.21"
const val junit = "4.13.2"
const val junitAndroidX = "1.1.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import android.widget.TextView
import android.widget.Toast
import io.moonsense.sdk.Moonsense
import io.moonsense.sdk.callback.MoonsenseCallback
import io.moonsense.sdk.exception.MoonsenseException
import io.moonsense.sdk.model.Session
import java.util.concurrent.TimeUnit

Expand All @@ -22,7 +21,7 @@ internal class MainActivity : Activity() {
private var sessionCount = 0

private val moonsenseCallback = object : MoonsenseCallback {
override fun onError(ex: MoonsenseException) {
override fun onError(ex: Exception) {
Toast.makeText(
this@MainActivity,
"Error: msg (${ex.message})",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ import android.util.Log
import io.moonsense.models.v2.Bundle
import io.moonsense.sdk.Moonsense
import io.moonsense.sdk.callback.MoonsenseCoreCallback
import io.moonsense.sdk.config.SDKConfig
import io.moonsense.sdk.config.SDKCoreConfig
import io.moonsense.sdk.config.SensorType
import io.moonsense.sdk.exception.MoonsenseException
import io.moonsense.sdk.model.Session
import okhttp3.HttpUrl
import retrofit2.Call
Expand Down Expand Up @@ -73,7 +72,7 @@ class AcmeSdk(context: Context) {
uploadData(acmeRequest)
}

override fun onError(ex: MoonsenseException) {
override fun onError(ex: Exception) {
Log.e(TAG, "Moonsense error reported $ex", ex)
}

Expand Down Expand Up @@ -111,7 +110,7 @@ class AcmeSdk(context: Context) {
init {
Moonsense.initialize(
context,
SDKConfig(
SDKCoreConfig(
// generate a bundle every second,
bundleGenerationInterval = ONE_SECOND_IN_MILLIS,
// only record accelerometer data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import io.moonsense.sdk.Moonsense
import io.moonsense.sdk.callback.MoonsenseCallback
import io.moonsense.sdk.config.SDKConfig
import io.moonsense.sdk.config.SensorType
import io.moonsense.sdk.exception.MoonsenseException
import io.moonsense.sdk.model.Session

/**
Expand Down Expand Up @@ -42,7 +41,7 @@ object Payment {
)
),
moonsenseCallback = object : MoonsenseCallback {
override fun onError(ex: MoonsenseException) {
override fun onError(ex: Exception) {
Toast.makeText(
context,
"Error: msg (${ex.message})",
Expand Down

0 comments on commit 765d566

Please sign in to comment.