Skip to content

Commit

Permalink
Merge pull request #665 from salemove/release/2.0.2
Browse files Browse the repository at this point in the history
Release 2.0.2
  • Loading branch information
gugalo authored Jul 12, 2023
2 parents b767e5f + b31706d commit 72092f7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 17 deletions.
34 changes: 20 additions & 14 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ workflows:
envman add --key VERSION_INCREMENT_TYPE --value "$GITHUB_VERSION_INCREMENT_TYPE"
fi
- gradle-runner@2:
title: Increment project version
inputs:
- gradle_file: $PROJECT_LOCATION/build.gradle
- gradlew_path: $PROJECT_LOCATION/gradlew
- gradle_task: saveWidgetsVersion --type=$VERSION_INCREMENT_TYPE
- script@1:
title: Create PR
inputs:
- content: |-
#!/usr/bin/env bash
Expand All @@ -39,7 +41,9 @@ workflows:
MESSAGE="Increment project version to ${NEW_VERSION}"
git checkout -b $BRANCH_NAME
git add -A
# git add -u stages modifications and deletions, without new files
# added it to prevent CHANGELOG.md from being included in the PR
git add -u
git commit -m "$MESSAGE"
git push origin "$BRANCH_NAME":"$BRANCH_NAME"
Expand All @@ -48,7 +52,7 @@ workflows:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_API_TOKEN" \
https://api.github.com/repos/salemove/android-sdk-widgets/pulls \
-d "{\"title\":\"${MESSAGE}\",\"head\":\"${BRANCH_NAME}\",\"base\":\"master\"}" | jq --raw-output '.number')
-d "{\"title\":\"${MESSAGE}\",\"head\":\"${BRANCH_NAME}\",\"base\":\"development\"}" | jq --raw-output '.number')
curl \
-X POST \
Expand Down Expand Up @@ -94,9 +98,9 @@ workflows:
- variant: $INTEGRATOR_VARIANT
- module: $EXAMPLE_APP_MODULE
- browserstack-upload@0:
title: Upload APP to BrowserStack
inputs:
- custom_id: $BROWSERSTACK_APP_ID
title: Upload APP to BrowserStack
- [email protected]:
inputs:
- notify_email_list: $BUILD_EMAILS
Expand All @@ -119,33 +123,33 @@ workflows:
- variant: $INTEGRATOR_VARIANT
- module: $EXAMPLE_APP_MODULE
- android-lint@0:
title: Run Lint for SDK
inputs:
- project_location: $PROJECT_LOCATION
- module: $WIDGET_SDK_MODULE
- variant: $SDK_VARIANT
title: Run Lint for SDK
- android-unit-test@1:
title: Unit Test for SDK
inputs:
- project_location: $PROJECT_LOCATION
- module: $WIDGET_SDK_MODULE
- variant: $SDK_VARIANT
title: Unit Test for SDK
- android-lint@0:
title: Run Lint for APP
inputs:
- project_location: $PROJECT_LOCATION
- module: $EXAMPLE_APP_MODULE
- variant: $INTEGRATOR_VARIANT
title: Run Lint for APP
- android-unit-test@1:
title: Unit Test for APP
inputs:
- project_location: $PROJECT_LOCATION
- module: $EXAMPLE_APP_MODULE
- variant: $INTEGRATOR_VARIANT
title: Unit Test for APP
- browserstack-upload@0:
title: Upload APP to BrowserStack
inputs:
- custom_id: $BROWSERSTACK_APP_ID
title: Upload APP to BrowserStack
- [email protected]:
inputs:
- notify_email_list: $BUILD_EMAILS
Expand Down Expand Up @@ -258,34 +262,34 @@ workflows:
- variant: $INTEGRATOR_VARIANT
- module: $EXAMPLE_APP_MODULE
- android-lint@0:
title: Run Lint for SDK
inputs:
- project_location: $PROJECT_LOCATION
- module: $WIDGET_SDK_MODULE
- variant: $SDK_VARIANT
title: Run Lint for SDK
- android-unit-test@1:
title: Unit Test for SDK
inputs:
- project_location: $PROJECT_LOCATION
- module: $WIDGET_SDK_MODULE
- variant: $SDK_VARIANT
title: Unit Test for SDK
- android-lint@0:
title: Run Lint for APP
inputs:
- project_location: $PROJECT_LOCATION
- module: $EXAMPLE_APP_MODULE
- variant: $INTEGRATOR_VARIANT
title: Run Lint for APP
- android-unit-test@1:
title: Unit Test for APP
inputs:
- project_location: $PROJECT_LOCATION
- module: $EXAMPLE_APP_MODULE
- variant: $INTEGRATOR_VARIANT
title: Unit Test for APP
- gradle-runner@2:
title: Assemble SDK for instrumentation tests
inputs:
- gradlew_path: ./gradlew
- gradle_task: :$WIDGET_SDK_MODULE:assembleDebugAndroidTest
title: Assemble SDK for instrumentation tests
- virtual-device-testing-for-android@1:
title: UI Test for APP
inputs:
Expand All @@ -305,11 +309,13 @@ workflows:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- gradle-runner@2:
title: Upgrade Core SDK version
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- gradle_file: $PROJECT_LOCATION/build.gradle
- gradle_task: saveCoreSdkVersion --coreSdkVersion=$NEW_VERSION
- script@1:
title: Create PR
inputs:
- content: |-
#!/usr/bin/env bash
Expand All @@ -333,7 +339,7 @@ workflows:
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_API_TOKEN" \
https://api.github.com/repos/salemove/android-sdk-widgets/pulls \
-d "{\"title\":\"${MESSAGE}\",\"head\":\"${BRANCH_NAME}\",\"base\":\"master\"}" | jq --raw-output '.number')
-d "{\"title\":\"${MESSAGE}\",\"head\":\"${BRANCH_NAME}\",\"base\":\"development\"}" | jq --raw-output '.number')
curl \
-X POST \
Expand Down
6 changes: 3 additions & 3 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue Jul 11 10:44:00 UTC 2023
#Tue Jul 11 09:05:13 UTC 2023
dependency.coreSdk.version=1.0.2
widgets.versionCode=63
widgets.versionName=2.0.1
widgets.versionCode=64
widgets.versionName=2.0.2
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public void listenForEngagementEnd(OmnibrowseEngagement engagement, Runnable eng
}

public void unregisterEngagementEndListener(Runnable engagementEnded) {
// Engagement#off(Event, Callback) does not support `null` callback
if (engagementEnded == null) {
return;
}
gliaCore.getCurrentEngagement().ifPresent(
engagement -> engagement.off(Engagement.Events.END, engagementEnded));
}
Expand Down

0 comments on commit 72092f7

Please sign in to comment.