Skip to content

Commit

Permalink
Merge pull request #408 from ForgeRock/develop
Browse files Browse the repository at this point in the history
ForgeRock Android SDK 4.4.0 Release
  • Loading branch information
spetrov authored Apr 2, 2024
2 parents 7d4b16c + 4444228 commit 44b2561
Show file tree
Hide file tree
Showing 161 changed files with 4,234 additions and 1,343 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/bitbar-prepare-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,23 @@ jobs:
- name: List build tools versions
run: ls /Users/runner/Library/Android/sdk/build-tools/

# Sign auth-debug-androidTest.apk
- name: Sign auth-debug-androidTest.apk
# Sign app-debug-androidTest.apk
- name: Sign app-debug-androidTest.apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: samples/auth/build/outputs/apk/androidTest/debug
releaseDirectory: samples/app/build/outputs/apk/androidTest/debug
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "34.0.0"

# Sign forgerock-auth-debug-androidTest.apk
- name: Sign forgerock-auth-debug-androidTest.apk
# Sign forgerock-integration-tests-debug-androidTest.apk
- name: Sign forgerock-integration-tests-debug-androidTest.apk
uses: r0adkll/sign-android-release@v1
with:
releaseDirectory: forgerock-auth/build/outputs/apk/androidTest/debug
releaseDirectory: forgerock-integration-tests/build/outputs/apk/androidTest/debug
signingKeyBase64: ${{ secrets.SIGNING_KEYSTORE }}
alias: ${{ secrets.SIGNING_ALIAS }}
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }}
Expand All @@ -71,19 +71,19 @@ jobs:
BUILD_TOOLS_VERSION: "34.0.0"

# Publish the signed APKs as build artifacts
- name: Publish auth-debug-androidTest.apk
- name: Publish app-debug-androidTest.apk
uses: actions/upload-artifact@v3
if: success()
with:
name: auth-debug-androidTest-signed.apk
path: samples/auth/build/outputs/apk/androidTest/debug/auth-debug-androidTest-signed.apk
name: app-debug-androidTest-signed.apk
path: samples/app/build/outputs/apk/androidTest/debug/app-debug-androidTest-signed.apk

- name: Publish forgerock-auth-debug-androidTest.apk
- name: Publish forgerock-integration-tests-debug-androidTest-signed.apk
uses: actions/upload-artifact@v3
if: success()
with:
name: forgerock-auth-debug-androidTest-signed.apk
path: forgerock-auth/build/outputs/apk/androidTest/debug/forgerock-auth-debug-androidTest-signed.apk
name: forgerock-integration-tests-debug-androidTest-signed.apk
path: forgerock-integration-tests/build/outputs/apk/androidTest/debug/forgerock-integration-tests-debug-androidTest-signed.apk

# Send slack notification ONLY if any of the steps above fail
- name: Send slack notification
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/bitbar-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,28 @@ jobs:

steps:
# Get the test artifacts prepared in previous step
- name: Get the auth-debug-androidTest.apk BitBar artifact
- name: Get the app-debug-androidTest.apk BitBar artifact
uses: actions/download-artifact@v3
with:
name: auth-debug-androidTest-signed.apk
name: app-debug-androidTest-signed.apk

- name: Get the forgerock-auth-debug-androidTest.apk BitBar artifact
- name: Get the forgerock-integration-tests-debug-androidTest.apk BitBar artifact
uses: actions/download-artifact@v3
with:
name: forgerock-auth-debug-androidTest-signed.apk
name: forgerock-integration-tests-debug-androidTest-signed.apk

- name: Unzip auth-debug-androidTest-signed.apk and forgerock-auth-debug-androidTest-signed.apk
- name: Unzip app-debug-androidTest-signed.apk and forgerock-integration-tests-debug-androidTest-signed.apk
run: |
unzip -o auth-debug-androidTest-signed.apk
unzip -o forgerock-auth-debug-androidTest-signed.apk
unzip -o app-debug-androidTest-signed.apk
unzip -o forgerock-integration-tests-debug-androidTest-signed.apk
- name: Upload auth-debug-androidTest-signed.apk to BitBar
- name: Upload app-debug-androidTest-signed.apk to BitBar
run: |
echo "BITBAR_APP_FILE_ID=$(curl -X POST -u ${{ secrets.BITBAR_API_KEY }}: https://cloud.bitbar.com/api/me/files -F "file=@auth-debug-androidTest-signed.apk" | jq '.id')" >> $GITHUB_ENV
echo "BITBAR_APP_FILE_ID=$(curl -X POST -u ${{ secrets.BITBAR_API_KEY }}: https://cloud.bitbar.com/api/me/files -F "file=@app-debug-androidTest-signed.apk" | jq '.id')" >> $GITHUB_ENV
- name: Upload forgerock-auth-debug-androidTest-signed.apk to BitBar
- name: Upload forgerock-integration-tests-debug-androidTest-signed.apk to BitBar
run: |
echo "BITBAR_TEST_FILE_ID=$(curl -X POST -u ${{ secrets.BITBAR_API_KEY }}: https://cloud.bitbar.com/api/me/files -F "file=@forgerock-auth-debug-androidTest-signed.apk" | jq '.id')" >> $GITHUB_ENV
echo "BITBAR_TEST_FILE_ID=$(curl -X POST -u ${{ secrets.BITBAR_API_KEY }}: https://cloud.bitbar.com/api/me/files -F "file=@forgerock-integration-tests-debug-androidTest-signed.apk" | jq '.id')" >> $GITHUB_ENV
- name: Prepare BitBar run configuration file
run: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@ jobs:
- name: Run forgerock-authenticator debug unit tests
run: ./gradlew :forgerock-authenticator:testDebugUnitTest --stacktrace --no-daemon

# Execute forgerock-authenticator debug unit tests
- name: Run ping-protect debug unit tests
run: ./gradlew :ping-protect:testDebugUnitTest --stacktrace --no-daemon

# Publish test reports for the unit tests
- name: Publish test results
if: success() || failure()
uses: dorny/test-reporter@v1
with:
name: Unit tests results
path: 'forgerock-core/build/test-results/**/TEST-*.xml,forgerock-auth/build/test-results/**/TEST-*.xml,forgerock-authenticator/build/test-results/**/TEST-*.xml'
path: 'forgerock-core/build/test-results/**/TEST-*.xml,forgerock-auth/build/test-results/**/TEST-*.xml,forgerock-authenticator/build/test-results/**/TEST-*.xml,ping-protect/build/test-results/**/TEST-*.xml'
list-suites: 'all'
list-tests: 'all'
fail-on-error: 'true'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-live-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
description: The AM url to run live test cases against
type: string
required: true
default: https://openam-forgerrock-sdksteanant.forgeblocks.com/am
default: https://openam-sdks.forgeblocks.com/am
realm:
description: The AM realm to use
type: string
Expand All @@ -16,7 +16,7 @@ on:
description: The AM session cookie name
type: string
required: true
default: iPlanetDirectoryPro
default: 5421aeddf91aa20

jobs:
run-tests:
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## [4.4.0]
#### Added
- Added `TextInput` callback support [SDKS-545]
- Added a new module for integration with `PingOne Protect` [SDKS-2900]
- Added interface allowing developers to customize the biometric prompt for device binding\signing [SDKS-2991]
- Added immutable HTTP headers on each request `x-requested-with: forgerock-sdk` and `x-requested-platform: android` [SDKS-3033]

#### Fixed
- Addressed `nimbus-jose-jwt:9.25` library security vulnerability (CVE-2023-52428) [SDKS-2988]
- NullPointerException for Centralize Login, Replace deprecated onActivityResult with ActivityResultContract [SDKS-3079]

## [4.3.1]
#### Fixed
- Fixed an issue where the SDK was crashing during device binding on Android 9 devices [SDKS-2948]
Expand Down
158 changes: 0 additions & 158 deletions build.gradle

This file was deleted.

Loading

0 comments on commit 44b2561

Please sign in to comment.