Skip to content

Commit

Permalink
Merge pull request #14 from saasquatch/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
slisaasquatch authored Feb 2, 2024
2 parents 3d910eb + f123986 commit d8e5334
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [Unreleased]

## [0.0.9] - 2024-02-02

### Changed

- saasquatch-java-sdk version bump. Fixes [#13](https://github.com/saasquatch/squatch-android/issues/13).
- Internal dependency version bumps.

## [0.0.8] - 2023-05-16

### Fixed
Expand Down Expand Up @@ -53,7 +60,9 @@

## [0.0.1] - 2021-02-17

[Unreleased]: https://github.com/saasquatch/squatch-android/compare/0.0.8...HEAD
[Unreleased]: https://github.com/saasquatch/squatch-android/compare/0.0.9...HEAD

[0.0.9]: https://github.com/saasquatch/squatch-android/compare/0.0.8...0.0.9

[0.0.8]: https://github.com/saasquatch/squatch-android/compare/0.0.7...0.0.8

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Add the dependency:

```gradle
dependencies {
implementation 'com.github.saasquatch:squatch-android:0.0.8'
implementation 'com.github.saasquatch:squatch-android:0.0.9'
}
```

Expand All @@ -51,6 +51,7 @@ Flowable.fromPublisher(squatchAndroid.widgetUpsert(
WidgetUpsertInput.newBuilder()
.setUserInputWithUserJwt(userJwt)
.setWidgetType(WidgetType.ofProgramWidget("referral-program", "referrerWidget"))
.setEngagementMedium("MOBILE")
.build(),
null, AndroidRenderWidgetOptions.ofWebView(webView)))
.onErrorComplete() // or provide your own error handling
Expand All @@ -73,6 +74,7 @@ userInput.put("customFields", customFields);
Flowable.fromPublisher(squatchAndroid.widgetUpsert(
WidgetUpsertInput.newBuilder()
.setUserInput(userInput)
.setEngagementMedium("MOBILE")
.build(),
RequestOptions.newBuilder()
.setAuthMethod(AuthMethod.ofJwt(userJwt))
Expand All @@ -89,6 +91,7 @@ Flowable.fromPublisher(squatchAndroid.renderWidget(
RenderWidgetInput.newBuilder()
.setUserWithUserJwt(userJwt) // Can be omitted to render a widget without user information
.setWidgetType(WidgetType.ofProgramWidget("referral-program", "referrerWidget"))
.setEngagementMedium("MOBILE")
.build(),
null, AndroidRenderWidgetOptions.ofWebView(webView)))
.onErrorComplete() // or provide your own error handling
Expand Down
9 changes: 5 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ plugins {
}

android {
compileSdkVersion 33
compileSdkVersion 34

defaultConfig {
minSdkVersion 19
targetSdkVersion 33
targetSdkVersion 34
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand All @@ -25,8 +25,9 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
api 'com.github.saasquatch:saasquatch-java-sdk:0.0.5'
api 'com.github.saasquatch:saasquatch-java-sdk:0.1.0'
api 'org.reactivestreams:reactive-streams:1.0.4'
implementation 'io.reactivex.rxjava3:rxjava:3.1.6'
implementation 'io.reactivex.rxjava3:rxjava:3.1.8'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.2'
implementation 'com.google.code.findbugs:jsr305:3.0.2'
}

0 comments on commit d8e5334

Please sign in to comment.