Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# These are some examples of commonly ignored file patterns.
# You should customize this list as applicable to your project.
# Learn more about .gitignore:
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore

# Node artifact files
node_modules/
dist/

# Compiled Java class files
*.class

# Compiled Python bytecode
*.py[cod]

# Log files
*.log

# Package files
*.jar

# Maven
target/
dist/

# JetBrains IDE
.idea/

# Unit test reports
TEST*.xml

# Generated by MacOS
.DS_Store

# Generated by Windows
Thumbs.db

# Applications
*.app
*.exe
*.war

# Large media files
*.mp4
*.tiff
*.avi
*.flv
*.mov
*.wmv

lib/
bindid-sdk-common/
build.sh
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
//implementation ("com.ts:bindid:1.22.0@aar") { transitive=true }
implementation "com.transmitsecurity:bindid:1.22.0"
implementation "com.transmitsecurity:bindid:1.30.0"
implementation "com.nimbusds:nimbus-jose-jwt:9.11.1"
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.7.3'
Expand Down
15 changes: 13 additions & 2 deletions android/src/main/java/com/bindidreactnative/TSBindIdParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import com.ts.bindid.XmBindIdTransactionSigningDisplayData;
import com.ts.bindid.XmBindIdTransactionSigningRequest;
import com.ts.bindid.XmRequiredVerifications;
import com.ts.bindid.XmBindIdTokenExchangePlatformMode;

import org.json.JSONArray;
import org.json.JSONException;
Expand All @@ -57,9 +58,19 @@ public XmBindIdConfig getConfig(Context applicationContext, ReadableMap map) {
String environmentUrl = environment.getString("environmentUrl");
XmBindIdServerEnvironmentMode environmentMode = TSBindIdUtils.getEnum(environment, "environmentMode", XmBindIdServerEnvironmentMode.class);

XmBindIdServerEnvironment serverEnvironment = XmBindIdServerEnvironment.createWithMode(environmentMode);
serverEnvironment.setEnvironmentUrl(environmentUrl);
XmBindIdServerEnvironment serverEnvironment;

if (environmentUrl != null && !environmentUrl.isEmpty()) {
serverEnvironment = XmBindIdServerEnvironment.createWithUrl(environmentUrl);
} else {
serverEnvironment = XmBindIdServerEnvironment.createWithMode(environmentMode);
}

if (environment.hasKey("tokenExchangePlatformMode")) {
XmBindIdTokenExchangePlatformMode tokenExchangePlatformMode = TSBindIdUtils.getEnum(environment, "tokenExchangePlatformMode", XmBindIdTokenExchangePlatformMode.class);
serverEnvironment.setTokenExchangePlatformMode(tokenExchangePlatformMode);
}

XmBindIdConfig config = XmBindIdConfig.create(applicationContext.getApplicationContext(), serverEnvironment, clientId);

if (map.hasKey("disableStateValidation")) {
Expand Down
2 changes: 1 addition & 1 deletion bindid-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Pod::Spec.new do |s|
s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "React-Core"
s.dependency 'XmBindIdSDK', '~> 1.30.0'
s.dependency 'XmBindIdSDK', '~> 1.40.0'
end
10 changes: 10 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ Template
#### EXPECTED MIGRATION CHANGES
--->

## 1.1.0 - November 2022
### Content
#### New Features
1. Added Token exchange platform mode enum to XmBindIdServerEnvironment to indicate the platform for token exchange.
1. General bug fixes and performance improvement.

### Upgrade
1. Upgraded the iOS XmBindIdSDK framework version to 1.40.0.
1. Upgraded the Android XmBindIdSDK library version to 1.30.0.

## 1.0.2 - August 2022
### Content
#### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ dependencies {

implementation project(':bindidreactnative')
//implementation ("com.ts:bindid:1.18.0@aar") { transitive=true }
implementation ("com.transmitsecurity:bindid:1.22.0") { transitive=true }
implementation ("com.transmitsecurity:bindid:1.30.0") { transitive=true }
}

// Run this once to be able to run the application with BUCK
Expand Down
140 changes: 74 additions & 66 deletions example/ios/BindIdAppExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- bindid-react-native (1.0.2):
- React-Core
- XmBindIdSDK (~> 1.30.0)
- XmBindIdSDK (~> 1.40.0)
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
Expand Down Expand Up @@ -355,11 +355,11 @@ PODS:
- React-jsi (= 0.69.4)
- React-logger (= 0.69.4)
- React-perflogger (= 0.69.4)
- RNScreens (3.13.1):
- RNScreens (3.18.2):
- React-Core
- React-RCTImage
- SocketRocket (0.6.0)
- XmBindIdSDK (1.30.0)
- XmBindIdSDK (1.40.0)
- Yoga (1.14.0)
- YogaKit (1.18.1):
- Yoga (~> 1.14)
Expand Down Expand Up @@ -516,7 +516,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS:
bindid-react-native: 903dbb76948e63798fe2102ad2ee5257dd422608
bindid-react-native: 96db5a2199aa6b7fab9d9257d2063173154bdcaf
boost: a7c83b31436843459a1961bfd74b96033dc77234
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
Expand Down Expand Up @@ -562,12 +562,12 @@ SPEC CHECKSUMS:
React-RCTVibration: 9adb4a3cbb598d1bbd46a05256f445e4b8c70603
React-runtimeexecutor: 61ee22a8cdf8b6bb2a7fb7b4ba2cc763e5285196
ReactCommon: 8f67bd7e0a6afade0f20718f859dc8c2275f2e83
RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19
RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
XmBindIdSDK: b39dddd3c5221feeab89413f3037501e99823bc9
XmBindIdSDK: 6ab3bb5561c857a04ee90929363ae1a589dd3953
Yoga: ff994563b2fd98c982ca58e8cd9db2cdaf4dda74
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 2afbee34aa701dd2f89f67316b91249dc6b498fa

COCOAPODS: 1.10.1
COCOAPODS: 1.11.3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading