Skip to content

Commit

Permalink
Support alert messages customization [ios] (#38)
Browse files Browse the repository at this point in the history
* add

* improve from review

* refactoring
  • Loading branch information
Undermaken authored Sep 28, 2021
1 parent ea83b16 commit df251fe
Show file tree
Hide file tree
Showing 22 changed files with 91 additions and 55 deletions.
4 changes: 4 additions & 0 deletions .ios/CieModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ - (NSString*) getPin
self.url = url;
}

RCT_EXPORT_METHOD(setAlertMessage:(NSString*)key withValue:(NSString*)value) {
[self.cieSDK setAlertMessageWithKey:key value:value];
}

- (NSString*) getAuthenticationUrl
{
return self.url;
Expand Down
14 changes: 10 additions & 4 deletions .ios/iociesdkios.framework/Headers/iociesdkios-Swift.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
// Generated by Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
#ifndef IOCIESDKIOS_SWIFT_H
#define IOCIESDKIOS_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -190,7 +190,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import Foundation;
@import ObjectiveC;
#endif

Expand All @@ -209,11 +208,14 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# pragma pop_macro("any")
#endif

@class NSNumber;
@class NSString;

SWIFT_CLASS_NAMED("CIEIDSdk") SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface CIEIDSdk : NSObject
@property (nonatomic) NSInteger attemptsLeft;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)setAlertMessageWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
- (void)postWithUrl:(NSString * _Nonnull)url pin:(NSString * _Nonnull)pin completed:(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))completed;
- (BOOL)hasNFCFeature SWIFT_WARN_UNUSED_RESULT;
@end
Expand All @@ -230,6 +232,7 @@ SWIFT_CLASS("_TtC11iociesdkios11ErrorHelper")
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSData;

SWIFT_CLASS("_TtC11iociesdkios8NFCToken") SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface NFCToken : NSObject
Expand All @@ -245,7 +248,7 @@ SWIFT_CLASS("_TtC11iociesdkios8NFCToken") SWIFT_AVAILABILITY(ios,introduced=13.0
#endif

#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
// Generated by Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
// Generated by Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
#ifndef IOCIESDKIOS_SWIFT_H
#define IOCIESDKIOS_SWIFT_H
#pragma clang diagnostic push
Expand Down Expand Up @@ -435,7 +438,6 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import Foundation;
@import ObjectiveC;
#endif

Expand All @@ -454,11 +456,14 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
# pragma pop_macro("any")
#endif

@class NSNumber;
@class NSString;

SWIFT_CLASS_NAMED("CIEIDSdk") SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface CIEIDSdk : NSObject
@property (nonatomic) NSInteger attemptsLeft;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)setAlertMessageWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
- (void)postWithUrl:(NSString * _Nonnull)url pin:(NSString * _Nonnull)pin completed:(void (^ _Nonnull)(NSString * _Nullable, NSString * _Nullable))completed;
- (BOOL)hasNFCFeature SWIFT_WARN_UNUSED_RESULT;
@end
Expand All @@ -475,6 +480,7 @@ SWIFT_CLASS("_TtC11iociesdkios11ErrorHelper")
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSData;

SWIFT_CLASS("_TtC11iociesdkios8NFCToken") SWIFT_AVAILABILITY(ios,introduced=13.0)
@interface NFCToken : NSObject
Expand Down
Binary file modified .ios/iociesdkios.framework/Info.plist
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
98 changes: 49 additions & 49 deletions .ios/iociesdkios.framework/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
Expand Up @@ -14,75 +14,75 @@
</data>
<key>Headers/iociesdkios-Swift.h</key>
<data>
ISdaAP81LS+Ao0CbLZBaKrbgtVA=
ocs6hrcoI+mpantbbjwDehl+mKs=
</data>
<key>Headers/iociesdkios.h</key>
<data>
aXO57x4BI7owfkQKowfNnIOM0Fo=
</data>
<key>Info.plist</key>
<data>
FRLfn649hELmywsgp/QqVGVvV18=
ZXtwwotX7PE4JeJb56fT6tNS2ww=
</data>
<key>Modules/iociesdkios.swiftmodule/Project/arm.swiftsourceinfo</key>
<data>
vcUlP0nN2Bfb+4qK3/PWWQunVpE=
5Xh7uBPS8MdWi9+tnUc32EZ60CE=
</data>
<key>Modules/iociesdkios.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo</key>
<data>
MPpQK7Q/hTsw1fqrvE0g/PaZA/0=
tddPySE2v5gazXFpaiGk5UATWCI=
</data>
<key>Modules/iociesdkios.swiftmodule/Project/arm64.swiftsourceinfo</key>
<data>
MPpQK7Q/hTsw1fqrvE0g/PaZA/0=
tddPySE2v5gazXFpaiGk5UATWCI=
</data>
<key>Modules/iociesdkios.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo</key>
<data>
vcUlP0nN2Bfb+4qK3/PWWQunVpE=
5Xh7uBPS8MdWi9+tnUc32EZ60CE=
</data>
<key>Modules/iociesdkios.swiftmodule/Project/armv7.swiftsourceinfo</key>
<data>
vcUlP0nN2Bfb+4qK3/PWWQunVpE=
5Xh7uBPS8MdWi9+tnUc32EZ60CE=
</data>
<key>Modules/iociesdkios.swiftmodule/arm.swiftdoc</key>
<data>
L4LJ9qJhJyw6z6nY5nJZzErv8e0=
K58KLB2FvJxkW8oCQ8NBM8ZcbHk=
</data>
<key>Modules/iociesdkios.swiftmodule/arm.swiftmodule</key>
<data>
+qxbBsMRGScQzlid93uzWx2jVbg=
LyWlWrzQACw9Lb0zRbSEYwzl9zg=
</data>
<key>Modules/iociesdkios.swiftmodule/arm64-apple-ios.swiftdoc</key>
<data>
Ao5vF8Rzmf0mGMXn+EfFtYTvAdo=
WM4c68Nzoqz8NRrea4ek8wqsVZ8=
</data>
<key>Modules/iociesdkios.swiftmodule/arm64-apple-ios.swiftmodule</key>
<data>
F0wNht0I8aQb/r5pi5R8+3pHHwQ=
M51QYWe/OtFTIqMvaOPdpxeJK6o=
</data>
<key>Modules/iociesdkios.swiftmodule/arm64.swiftdoc</key>
<data>
Ao5vF8Rzmf0mGMXn+EfFtYTvAdo=
WM4c68Nzoqz8NRrea4ek8wqsVZ8=
</data>
<key>Modules/iociesdkios.swiftmodule/arm64.swiftmodule</key>
<data>
F0wNht0I8aQb/r5pi5R8+3pHHwQ=
M51QYWe/OtFTIqMvaOPdpxeJK6o=
</data>
<key>Modules/iociesdkios.swiftmodule/armv7-apple-ios.swiftdoc</key>
<data>
L4LJ9qJhJyw6z6nY5nJZzErv8e0=
K58KLB2FvJxkW8oCQ8NBM8ZcbHk=
</data>
<key>Modules/iociesdkios.swiftmodule/armv7-apple-ios.swiftmodule</key>
<data>
+qxbBsMRGScQzlid93uzWx2jVbg=
LyWlWrzQACw9Lb0zRbSEYwzl9zg=
</data>
<key>Modules/iociesdkios.swiftmodule/armv7.swiftdoc</key>
<data>
L4LJ9qJhJyw6z6nY5nJZzErv8e0=
K58KLB2FvJxkW8oCQ8NBM8ZcbHk=
</data>
<key>Modules/iociesdkios.swiftmodule/armv7.swiftmodule</key>
<data>
+qxbBsMRGScQzlid93uzWx2jVbg=
LyWlWrzQACw9Lb0zRbSEYwzl9zg=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand Down Expand Up @@ -569,11 +569,11 @@
<dict>
<key>hash</key>
<data>
ISdaAP81LS+Ao0CbLZBaKrbgtVA=
ocs6hrcoI+mpantbbjwDehl+mKs=
</data>
<key>hash2</key>
<data>
uwR0UfswkC8CPfOIk++SFjK/TrNYAJWkhm7SHL4uR5U=
I8HumSKwWoftlZwnx5R2+3yKkaSebptAV11C8QMZGZ0=
</data>
</dict>
<key>Headers/iociesdkios.h</key>
Expand All @@ -591,165 +591,165 @@
<dict>
<key>hash</key>
<data>
vcUlP0nN2Bfb+4qK3/PWWQunVpE=
5Xh7uBPS8MdWi9+tnUc32EZ60CE=
</data>
<key>hash2</key>
<data>
yyLeUWq921QuAqeQrWnI5diWrZt5rRumj5TCI62Blu8=
Tz9W9IUVGB1nIpKxUu0xlLE6s1A9LyGzJ6n+iE2I3/U=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo</key>
<dict>
<key>hash</key>
<data>
MPpQK7Q/hTsw1fqrvE0g/PaZA/0=
tddPySE2v5gazXFpaiGk5UATWCI=
</data>
<key>hash2</key>
<data>
TgkiNVxdn3iRlSOmJ+T7stSHHr1yLFFoC0CAZS4YVIM=
cnon/3gWBj0karckfFERvaUlWAh3hmoE39N06h0lD24=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/Project/arm64.swiftsourceinfo</key>
<dict>
<key>hash</key>
<data>
MPpQK7Q/hTsw1fqrvE0g/PaZA/0=
tddPySE2v5gazXFpaiGk5UATWCI=
</data>
<key>hash2</key>
<data>
TgkiNVxdn3iRlSOmJ+T7stSHHr1yLFFoC0CAZS4YVIM=
cnon/3gWBj0karckfFERvaUlWAh3hmoE39N06h0lD24=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo</key>
<dict>
<key>hash</key>
<data>
vcUlP0nN2Bfb+4qK3/PWWQunVpE=
5Xh7uBPS8MdWi9+tnUc32EZ60CE=
</data>
<key>hash2</key>
<data>
yyLeUWq921QuAqeQrWnI5diWrZt5rRumj5TCI62Blu8=
Tz9W9IUVGB1nIpKxUu0xlLE6s1A9LyGzJ6n+iE2I3/U=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/Project/armv7.swiftsourceinfo</key>
<dict>
<key>hash</key>
<data>
vcUlP0nN2Bfb+4qK3/PWWQunVpE=
5Xh7uBPS8MdWi9+tnUc32EZ60CE=
</data>
<key>hash2</key>
<data>
yyLeUWq921QuAqeQrWnI5diWrZt5rRumj5TCI62Blu8=
Tz9W9IUVGB1nIpKxUu0xlLE6s1A9LyGzJ6n+iE2I3/U=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/arm.swiftdoc</key>
<dict>
<key>hash</key>
<data>
L4LJ9qJhJyw6z6nY5nJZzErv8e0=
K58KLB2FvJxkW8oCQ8NBM8ZcbHk=
</data>
<key>hash2</key>
<data>
n8Owfl8ErLosK9/VLwsMtDndOmVKVDSM0n0n3lsGqOM=
9uC8NaoKPG/dU6nmQQv7d5h4d1pKFXeUdQ2vrBKzs/8=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/arm.swiftmodule</key>
<dict>
<key>hash</key>
<data>
+qxbBsMRGScQzlid93uzWx2jVbg=
LyWlWrzQACw9Lb0zRbSEYwzl9zg=
</data>
<key>hash2</key>
<data>
zhYn2PSuynz41GWQmruruLE7VuMxjtDS6AvqpRWBkh8=
fA5TsW+KTcE5ShmKoGFwG4IL0pZab4rq3G6qjDOaVzg=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/arm64-apple-ios.swiftdoc</key>
<dict>
<key>hash</key>
<data>
Ao5vF8Rzmf0mGMXn+EfFtYTvAdo=
WM4c68Nzoqz8NRrea4ek8wqsVZ8=
</data>
<key>hash2</key>
<data>
S4G6ssKG3/o8p/LeQVYxBsvGGYPfSWIJ9t3uy/UIDy0=
fpp9kjRyYqgb13TS1llVT3UNtqk1OyLk6wtzHoc/Hvs=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/arm64-apple-ios.swiftmodule</key>
<dict>
<key>hash</key>
<data>
F0wNht0I8aQb/r5pi5R8+3pHHwQ=
M51QYWe/OtFTIqMvaOPdpxeJK6o=
</data>
<key>hash2</key>
<data>
1Jd7NmFKT2EoSYfMTCaujjczDFeqHYhVjgeWUdx+kw0=
K9saxkysD14SUGCFilmN8Vn2Kj4bWAV9Mv/52DhuvWs=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/arm64.swiftdoc</key>
<dict>
<key>hash</key>
<data>
Ao5vF8Rzmf0mGMXn+EfFtYTvAdo=
WM4c68Nzoqz8NRrea4ek8wqsVZ8=
</data>
<key>hash2</key>
<data>
S4G6ssKG3/o8p/LeQVYxBsvGGYPfSWIJ9t3uy/UIDy0=
fpp9kjRyYqgb13TS1llVT3UNtqk1OyLk6wtzHoc/Hvs=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/arm64.swiftmodule</key>
<dict>
<key>hash</key>
<data>
F0wNht0I8aQb/r5pi5R8+3pHHwQ=
M51QYWe/OtFTIqMvaOPdpxeJK6o=
</data>
<key>hash2</key>
<data>
1Jd7NmFKT2EoSYfMTCaujjczDFeqHYhVjgeWUdx+kw0=
K9saxkysD14SUGCFilmN8Vn2Kj4bWAV9Mv/52DhuvWs=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/armv7-apple-ios.swiftdoc</key>
<dict>
<key>hash</key>
<data>
L4LJ9qJhJyw6z6nY5nJZzErv8e0=
K58KLB2FvJxkW8oCQ8NBM8ZcbHk=
</data>
<key>hash2</key>
<data>
n8Owfl8ErLosK9/VLwsMtDndOmVKVDSM0n0n3lsGqOM=
9uC8NaoKPG/dU6nmQQv7d5h4d1pKFXeUdQ2vrBKzs/8=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/armv7-apple-ios.swiftmodule</key>
<dict>
<key>hash</key>
<data>
+qxbBsMRGScQzlid93uzWx2jVbg=
LyWlWrzQACw9Lb0zRbSEYwzl9zg=
</data>
<key>hash2</key>
<data>
zhYn2PSuynz41GWQmruruLE7VuMxjtDS6AvqpRWBkh8=
fA5TsW+KTcE5ShmKoGFwG4IL0pZab4rq3G6qjDOaVzg=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/armv7.swiftdoc</key>
<dict>
<key>hash</key>
<data>
L4LJ9qJhJyw6z6nY5nJZzErv8e0=
K58KLB2FvJxkW8oCQ8NBM8ZcbHk=
</data>
<key>hash2</key>
<data>
n8Owfl8ErLosK9/VLwsMtDndOmVKVDSM0n0n3lsGqOM=
9uC8NaoKPG/dU6nmQQv7d5h4d1pKFXeUdQ2vrBKzs/8=
</data>
</dict>
<key>Modules/iociesdkios.swiftmodule/armv7.swiftmodule</key>
<dict>
<key>hash</key>
<data>
+qxbBsMRGScQzlid93uzWx2jVbg=
LyWlWrzQACw9Lb0zRbSEYwzl9zg=
</data>
<key>hash2</key>
<data>
zhYn2PSuynz41GWQmruruLE7VuMxjtDS6AvqpRWBkh8=
fA5TsW+KTcE5ShmKoGFwG4IL0pZab4rq3G6qjDOaVzg=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Binary file modified .ios/iociesdkios.framework/iociesdkios
Binary file not shown.
Loading

0 comments on commit df251fe

Please sign in to comment.