Skip to content

Commit

Permalink
Release of version 0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Kurzawa committed Feb 7, 2023
1 parent 2c63c07 commit ec7b477
Show file tree
Hide file tree
Showing 186 changed files with 65 additions and 5,012 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

All notable changes to this project will be documented in this file.

## [0.11.0] - 2023-02-07

### Fixed
- [Android] Fix initialization with custom url.

### Changed
- Update of native SDK's dependencies.
- Improvements to stability.


## [0.10.5] - 2022-07-26

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Most up-to-date documentation is available at Synerise Help Center:

### iOS

* Xcode 12 and iOS SDK 14
* Xcode 14 and iOS SDK 16
* iOS 9.0+ target deployment
* Valid architectures: armv7, armv7s, arm64 devices and i386, x86_64 simulators

Expand Down
7 changes: 3 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ ext.versions = [
'minSdk' : 21,
'compileSdk' : 31,
'targetSdk' : 31,
'versionCode': 22,
'versionName': "0.10.5"
'versionCode': 23,
'versionName': "0.11.0"
]

buildscript {
Expand All @@ -24,7 +24,6 @@ buildscript {

android {
compileSdkVersion 31
buildToolsVersion "28.0.3"

defaultConfig {
minSdkVersion 21
Expand All @@ -46,7 +45,6 @@ android {
}

repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$projectDir/../../../node_modules/react-native/android"
Expand All @@ -58,6 +56,7 @@ repositories {

dependencies {
implementation 'com.facebook.react:react-native:+'
implementation "com.squareup.okhttp3:logging-interceptor:4.9.1"
api 'com.synerise.sdk:synerise-mobile-sdk:4.6.2'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class RNSyneriseInitializer {

public String clientApiKey;
public String baseUrl;
public String baseUrl = null;
public Boolean isDebugModeEnabled;
public Boolean isCrashHandlingEnabled;
public static volatile boolean isInitialized = false;
Expand All @@ -19,7 +19,7 @@ public void initialize(Application app) {
prepareDefaultSettings();

Synerise.Builder.with(app, clientApiKey, getApplicationName(app))
.baseUrl(null)
.baseUrl(baseUrl)
.syneriseDebugMode(isDebugModeEnabled)
.crashHandlingEnabled(isCrashHandlingEnabled)
.pushRegistrationRequired(RNNotifications.getNativePushListener())
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
uuid = "AFFA86E6-6209-4886-B88C-3A3CCE2E109D"
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>ReactNativeSynerise.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ - (void)setBool:(BOOL)boolean forKey:(NSString *)key {
}

- (void)setDate:(NSDate *)date forKey:(NSString *)key {
[self setObject:[NSNumber numberWithDouble:[date timeIntervalSince1970]] properClass:NSNumber.class forKey:key];
NSNumber *dateAsNumber;
if (date != nil) {
dateAsNumber = [NSNumber numberWithDouble:[date timeIntervalSince1970]];
}

[self setObject:dateAsNumber properClass:NSNumber.class forKey:key];
}

#pragma mark - Private
Expand Down
2 changes: 1 addition & 1 deletion ios/ReactNativeSynerise/Main/RNSyneriseInitializer.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @implementation RNSyneriseInitializer
#pragma mark - Public

- (void)initializeSynerise {
dispatch_sync(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{
[self overwriteDefaultSettings];

[SNRSynerise initializeWithClientApiKey:self.clientApiKey andBaseUrl:self.baseURL];
Expand Down
2 changes: 1 addition & 1 deletion ios/ReactNativeSynerise/Modules/RNBaseModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

static NSString * const RNDefaultErrorDomain = @"com.synerise.sdk.react.error";
static NSInteger const RNDefaultErrorCode = -1;
static NSString * const RNDefaultErrorMessage = @"";
static NSString * const RNDefaultErrorMessage = @"An unknown error has occurred";

static NSString * const RNErrorObjectCode = @"code";
static NSString * const RNErrorObjectMessage = @"message";
Expand Down
4 changes: 2 additions & 2 deletions ios/ReactNativeSynerise/Modules/RNPromotions.m
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ - (nullable NSDictionary *)dictionaryWithAssignVoucherResponse:(SNRAssignVoucher
NSMutableDictionary *dictionary = [@{} mutableCopy];

[dictionary setString:model.message forKey:@"message"];
[dictionary setDictionary:[self dictionaryWithAssignVoucherData:model.assignVoucherData] forKey:@"assignVoucherData"];
[dictionary setDictionary:[self dictionaryWithAssignVoucherData:model.assignVoucherData] forKey:@"data"];

return dictionary;
}
Expand All @@ -264,7 +264,7 @@ - (nullable NSDictionary *)dictionaryWithVoucherCodesResponse:(SNRVoucherCodesRe
[voucherCodesArray addObject:[self dictionaryWithVoucherCodesData:voucherCodesDataModel]];
}

[dictionary setArray:voucherCodesArray forKey:@"items"];
[dictionary setArray:voucherCodesArray forKey:@"data"];

return dictionary;
}
Expand Down
2 changes: 1 addition & 1 deletion ios/react-native-synerise-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require 'json'

package = JSON.parse(File.read('./../package.json'))

SYNERISE_SDK_FRAMEWORK_VERSION = '3.11.2'
SYNERISE_SDK_FRAMEWORK_VERSION = '3.12.0'

Pod::Spec.new do |s|
s.name = package['name']
Expand Down
15 changes: 0 additions & 15 deletions lib/classes/api_queries/BaseApiQuery.d.ts

This file was deleted.

18 changes: 0 additions & 18 deletions lib/classes/api_queries/BaseApiQuery.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/classes/api_queries/DocumentsApiQuery.d.ts

This file was deleted.

18 changes: 0 additions & 18 deletions lib/classes/api_queries/DocumentsApiQuery.js

This file was deleted.

4 changes: 0 additions & 4 deletions lib/classes/api_queries/DocumentsApiQueryType.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions lib/classes/api_queries/DocumentsApiQueryType.js

This file was deleted.

16 changes: 0 additions & 16 deletions lib/classes/api_queries/PromotionsApiQuery.d.ts

This file was deleted.

37 changes: 0 additions & 37 deletions lib/classes/api_queries/PromotionsApiQuery.js

This file was deleted.

9 changes: 0 additions & 9 deletions lib/classes/events/CustomEvent.d.ts

This file was deleted.

46 changes: 0 additions & 46 deletions lib/classes/events/CustomEvent.js

This file was deleted.

14 changes: 0 additions & 14 deletions lib/classes/events/Event.d.ts

This file was deleted.

Loading

0 comments on commit ec7b477

Please sign in to comment.