Skip to content

Commit

Permalink
release 1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoles committed Oct 2, 2024
1 parent 868326f commit a6bba06
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 31 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.10.0] - 2024-09-24

### Changed
- Removed firebase-installations dependency in favour of firebase-messaging

## [1.9.2] - 2023-02-22

### Changed
Expand Down
19 changes: 1 addition & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,30 +26,13 @@ buildscript {

### Update your app level gradle config

If using firebase-messaging version below 22.0.0:
```
dependencies {
...
// Add these lines
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'com.pusher:push-notifications-android:1.9.2'
}
// Add this line to the end of the file
apply plugin: 'com.google.gms.google-services'
```

If using firebase-messaging 22.0.0 and above:
```
dependencies {
...
// Add these lines
implementation 'com.google.firebase:firebase-messaging:22.0.0'
implementation 'com.google.firebase:firebase-installations:17.1.0'
implementation 'com.pusher:push-notifications-android:1.9.2'
implementation 'com.pusher:push-notifications-android:1.10.0'
}
// Add this line to the end of the file
Expand Down
7 changes: 4 additions & 3 deletions pushnotifications/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ android {
compileSdkVersion 31

defaultConfig {
minSdkVersion 16
minSdkVersion 24
targetSdkVersion 31
versionCode 1
versionName "1.9.2"
versionName "1.10.0"

testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Expand Down Expand Up @@ -62,10 +62,11 @@ dependencies {
lintChecks project(':pushnotifications-lint')

testImplementation 'junit:junit:4.12'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'androidx.test:core:1.5.0'
testImplementation 'androidx.test.ext:junit:1.1.5'
testImplementation 'androidx.test.ext:truth:1.5.0'
testImplementation "org.mockito:mockito-core:2.13.0"
testImplementation "org.mockito:mockito-core:3.6.28"

androidTestImplementation 'androidx.test:core:1.5.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
Expand Down
2 changes: 1 addition & 1 deletion pushnotifications/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NAME=1.9.2
VERSION_NAME=1.10.0
VERSION_CODE=1
GROUP=com.pusher

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import android.content.Context
import android.content.SharedPreferences
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.CoreMatchers.equalTo
import org.junit.Assert
import org.junit.Test
import org.mockito.Mockito
import org.mockito.Mockito.`when`
import org.junit.Before
import org.mockito.Mockito.doNothing
import org.hamcrest.MatcherAssert.assertThat

class DeviceStateStoreTest {
private val context: Context = Mockito.mock(Context::class.java)
Expand All @@ -32,8 +32,8 @@ class DeviceStateStoreTest {
.thenReturn(mutableSetOf<String>())
.thenReturn(mutableSetOf("i-123"))

Assert.assertThat(testDeviceStateStore.instanceIds, `is`(emptySet<String>()))
Assert.assertThat(testDeviceStateStore.instanceIds, `is`(equalTo(mutableSetOf("i-123"))))
assertThat(testDeviceStateStore.instanceIds, `is`(emptySet<String>()))
assertThat(testDeviceStateStore.instanceIds, `is`(equalTo(mutableSetOf("i-123"))))
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import org.mockito.Mockito
import org.mockito.Mockito.`when`
import org.junit.Before
import org.mockito.Mockito.doNothing
import org.hamcrest.MatcherAssert.assertThat

class InstanceDeviceStateStoreTest {
private val context: Context = Mockito.mock(Context::class.java)
Expand All @@ -31,7 +32,7 @@ class InstanceDeviceStateStoreTest {
.thenReturn("i-123")

Assert.assertNull(testInstanceDeviceStateStore.deviceId)
Assert.assertThat(testInstanceDeviceStateStore.deviceId, `is`(equalTo("i-123")))
assertThat(testInstanceDeviceStateStore.deviceId, `is`(equalTo("i-123")))
}

@Test
Expand All @@ -51,7 +52,7 @@ class InstanceDeviceStateStoreTest {
.thenReturn("i-123")

Assert.assertNull(testInstanceDeviceStateStore.FCMToken)
Assert.assertThat(testInstanceDeviceStateStore.FCMToken, `is`(equalTo("i-123")))
assertThat(testInstanceDeviceStateStore.FCMToken, `is`(equalTo("i-123")))
}

@Test
Expand All @@ -71,7 +72,7 @@ class InstanceDeviceStateStoreTest {
.thenReturn("i-123")

Assert.assertNull(testInstanceDeviceStateStore.osVersion)
Assert.assertThat(testInstanceDeviceStateStore.osVersion, `is`(equalTo("i-123")))
assertThat(testInstanceDeviceStateStore.osVersion, `is`(equalTo("i-123")))
}

@Test
Expand All @@ -91,7 +92,7 @@ class InstanceDeviceStateStoreTest {
.thenReturn("i-123")

Assert.assertNull(testInstanceDeviceStateStore.sdkVersion)
Assert.assertThat(testInstanceDeviceStateStore.sdkVersion, `is`(equalTo("i-123")))
assertThat(testInstanceDeviceStateStore.sdkVersion, `is`(equalTo("i-123")))
}

@Test
Expand All @@ -110,8 +111,8 @@ class InstanceDeviceStateStoreTest {
.thenReturn(mutableSetOf<String>())
.thenReturn(mutableSetOf("hello"))

Assert.assertThat(testInstanceDeviceStateStore.interests, `is`(emptySet<String>()))
Assert.assertThat(testInstanceDeviceStateStore.interests, `is`(equalTo(mutableSetOf("hello"))))
assertThat(testInstanceDeviceStateStore.interests, `is`(emptySet<String>()))
assertThat(testInstanceDeviceStateStore.interests, `is`(equalTo(mutableSetOf("hello"))))
}

@Test
Expand Down

0 comments on commit a6bba06

Please sign in to comment.