Skip to content

Commit c247179

Browse files
authored
Merge pull request #12 from TransmitSecurity/release/1.1.0
Release/1.1.0
2 parents 5271fa7 + c2ed80e commit c247179

25 files changed

Lines changed: 18414 additions & 17496 deletions

.gitignore

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# These are some examples of commonly ignored file patterns.
2+
# You should customize this list as applicable to your project.
3+
# Learn more about .gitignore:
4+
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
5+
6+
# Node artifact files
7+
node_modules/
8+
dist/
9+
10+
# Compiled Java class files
11+
*.class
12+
13+
# Compiled Python bytecode
14+
*.py[cod]
15+
16+
# Log files
17+
*.log
18+
19+
# Package files
20+
*.jar
21+
22+
# Maven
23+
target/
24+
dist/
25+
26+
# JetBrains IDE
27+
.idea/
28+
29+
# Unit test reports
30+
TEST*.xml
31+
32+
# Generated by MacOS
33+
.DS_Store
34+
35+
# Generated by Windows
36+
Thumbs.db
37+
38+
# Applications
39+
*.app
40+
*.exe
41+
*.war
42+
43+
# Large media files
44+
*.mp4
45+
*.tiff
46+
*.avi
47+
*.flv
48+
*.mov
49+
*.wmv
50+
51+
lib/
52+
bindid-sdk-common/
53+
build.sh

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ dependencies {
6767
//noinspection GradleDynamicVersion
6868
implementation "com.facebook.react:react-native:+" // From node_modules
6969
//implementation ("com.ts:bindid:1.22.0@aar") { transitive=true }
70-
implementation "com.transmitsecurity:bindid:1.22.0"
70+
implementation "com.transmitsecurity:bindid:1.30.0"
7171
implementation "com.nimbusds:nimbus-jose-jwt:9.11.1"
7272
implementation 'com.google.code.gson:gson:2.8.6'
7373
implementation 'com.fasterxml.jackson.core:jackson-databind:2.7.3'

android/src/main/java/com/bindidreactnative/TSBindIdParser.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import com.ts.bindid.XmBindIdTransactionSigningDisplayData;
3737
import com.ts.bindid.XmBindIdTransactionSigningRequest;
3838
import com.ts.bindid.XmRequiredVerifications;
39+
import com.ts.bindid.XmBindIdTokenExchangePlatformMode;
3940

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

60-
XmBindIdServerEnvironment serverEnvironment = XmBindIdServerEnvironment.createWithMode(environmentMode);
61-
serverEnvironment.setEnvironmentUrl(environmentUrl);
61+
XmBindIdServerEnvironment serverEnvironment;
6262

63+
if (environmentUrl != null && !environmentUrl.isEmpty()) {
64+
serverEnvironment = XmBindIdServerEnvironment.createWithUrl(environmentUrl);
65+
} else {
66+
serverEnvironment = XmBindIdServerEnvironment.createWithMode(environmentMode);
67+
}
68+
69+
if (environment.hasKey("tokenExchangePlatformMode")) {
70+
XmBindIdTokenExchangePlatformMode tokenExchangePlatformMode = TSBindIdUtils.getEnum(environment, "tokenExchangePlatformMode", XmBindIdTokenExchangePlatformMode.class);
71+
serverEnvironment.setTokenExchangePlatformMode(tokenExchangePlatformMode);
72+
}
73+
6374
XmBindIdConfig config = XmBindIdConfig.create(applicationContext.getApplicationContext(), serverEnvironment, clientId);
6475

6576
if (map.hasKey("disableStateValidation")) {

bindid-react-native.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
1616
s.source_files = "ios/**/*.{h,m,mm,swift}"
1717

1818
s.dependency "React-Core"
19-
s.dependency 'XmBindIdSDK', '~> 1.30.0'
19+
s.dependency 'XmBindIdSDK', '~> 1.40.0'
2020
end

docs/release-notes.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ Template
1111
#### EXPECTED MIGRATION CHANGES
1212
--->
1313

14+
## 1.1.0 - November 2022
15+
### Content
16+
#### New Features
17+
1. Added Token exchange platform mode enum to XmBindIdServerEnvironment to indicate the platform for token exchange.
18+
1. General bug fixes and performance improvement.
19+
20+
### Upgrade
21+
1. Upgraded the iOS XmBindIdSDK framework version to 1.40.0.
22+
1. Upgraded the Android XmBindIdSDK library version to 1.30.0.
23+
1424
## 1.0.2 - August 2022
1525
### Content
1626
#### Bug Fixes

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ dependencies {
206206

207207
implementation project(':bindidreactnative')
208208
//implementation ("com.ts:bindid:1.18.0@aar") { transitive=true }
209-
implementation ("com.transmitsecurity:bindid:1.22.0") { transitive=true }
209+
implementation ("com.transmitsecurity:bindid:1.30.0") { transitive=true }
210210
}
211211

212212
// Run this once to be able to run the application with BUCK

example/ios/BindIdAppExample.xcodeproj/project.pbxproj

Lines changed: 74 additions & 66 deletions
Large diffs are not rendered by default.

example/ios/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PODS:
22
- bindid-react-native (1.0.2):
33
- React-Core
4-
- XmBindIdSDK (~> 1.30.0)
4+
- XmBindIdSDK (~> 1.40.0)
55
- boost (1.76.0)
66
- CocoaAsyncSocket (7.6.5)
77
- DoubleConversion (1.1.6)
@@ -355,11 +355,11 @@ PODS:
355355
- React-jsi (= 0.69.4)
356356
- React-logger (= 0.69.4)
357357
- React-perflogger (= 0.69.4)
358-
- RNScreens (3.13.1):
358+
- RNScreens (3.18.2):
359359
- React-Core
360360
- React-RCTImage
361361
- SocketRocket (0.6.0)
362-
- XmBindIdSDK (1.30.0)
362+
- XmBindIdSDK (1.40.0)
363363
- Yoga (1.14.0)
364364
- YogaKit (1.18.1):
365365
- Yoga (~> 1.14)
@@ -516,7 +516,7 @@ EXTERNAL SOURCES:
516516
:path: "../node_modules/react-native/ReactCommon/yoga"
517517

518518
SPEC CHECKSUMS:
519-
bindid-react-native: 903dbb76948e63798fe2102ad2ee5257dd422608
519+
bindid-react-native: 96db5a2199aa6b7fab9d9257d2063173154bdcaf
520520
boost: a7c83b31436843459a1961bfd74b96033dc77234
521521
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
522522
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
@@ -562,12 +562,12 @@ SPEC CHECKSUMS:
562562
React-RCTVibration: 9adb4a3cbb598d1bbd46a05256f445e4b8c70603
563563
React-runtimeexecutor: 61ee22a8cdf8b6bb2a7fb7b4ba2cc763e5285196
564564
ReactCommon: 8f67bd7e0a6afade0f20718f859dc8c2275f2e83
565-
RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19
565+
RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d
566566
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
567-
XmBindIdSDK: b39dddd3c5221feeab89413f3037501e99823bc9
567+
XmBindIdSDK: 6ab3bb5561c857a04ee90929363ae1a589dd3953
568568
Yoga: ff994563b2fd98c982ca58e8cd9db2cdaf4dda74
569569
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
570570

571571
PODFILE CHECKSUM: 2afbee34aa701dd2f89f67316b91249dc6b498fa
572572

573-
COCOAPODS: 1.10.1
573+
COCOAPODS: 1.11.3
64.5 KB
Loading

0 commit comments

Comments
 (0)