react-native-flyy 1.4.37 → 1.4.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -134,7 +134,7 @@ dependencies {
|
|
|
134
134
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
135
135
|
|
|
136
136
|
//Flyy sdk dependency
|
|
137
|
-
implementation 'com.github.roid-software:flyy-sdk:1.4.54.
|
|
137
|
+
implementation 'com.github.roid-software:flyy-sdk:1.4.54.84'
|
|
138
138
|
// implementation project(path: ':flyy')
|
|
139
139
|
|
|
140
140
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
@@ -332,10 +332,10 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
|
|
|
332
332
|
openFlyyRouteActivity(FlyyRouteActivity.FLYY_QUIZ_PAGE, null)
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
@ReactMethod
|
|
336
|
+
fun setCustomFontName(regularFont: String?, mediumFont: String?, boldFont: String?) {
|
|
337
|
+
Flyy.setCustomFontName(regularFont,mediumFont, boldFont)
|
|
338
|
+
}
|
|
339
339
|
|
|
340
340
|
@ReactMethod
|
|
341
341
|
fun openFlyyQuizHistoryPage() {
|
|
@@ -477,6 +477,12 @@ class FlyyModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
|
|
|
477
477
|
Flyy.setThemeColor(colorPrimary, colorPrimaryDark)
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
+
@ReactMethod
|
|
481
|
+
fun setCustomThemeColor(topBgColor: String, mainBgColor: String, shadowBgColor: String, offersCardBgColor: String, buttonBGColor: String, headingTextColor: String, subHeadingTextColor: String, extraTextColor: String, labelsTextColor: String, walletCardColor: String, walletInnerCardColor: String, walletSubHeadingColor: String, scratchCardBgColor: String, scratchCardInnerColor: String) {
|
|
482
|
+
Flyy.setDarkThemeColor(topBgColor, mainBgColor, shadowBgColor, offersCardBgColor, buttonBGColor, headingTextColor, subHeadingTextColor, extraTextColor, labelsTextColor, walletCardColor, walletInnerCardColor, walletSubHeadingColor, scratchCardBgColor, scratchCardInnerColor)
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
|
|
480
486
|
@ReactMethod
|
|
481
487
|
fun setUserToken(userToken: String) {
|
|
482
488
|
Flyy.setUserToken(userToken)
|
package/ios/ReactNativeFlyy.m
CHANGED
|
@@ -137,15 +137,15 @@ RCT_EXPORT_METHOD(initSDKWithReferralCallback: (NSString *)partnerToken :(int)en
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
//set custom font
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
RCT_EXPORT_METHOD(setCustomFontName: (NSString *)regularFont :(NSString *)mediumFont :(NSString *)boldFont)
|
|
141
|
+
{
|
|
142
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
143
|
+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
|
144
|
+
dispatch_async(dispatch_get_main_queue(), ^(){
|
|
145
|
+
[self->flyy setCustomFontNameWithRegularFont:regularFont mediumFont:mediumFont boldFont:boldFont];
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
149
|
|
|
150
150
|
////Init flyy sdk with theme colors
|
|
151
151
|
//RCT_EXPORT_METHOD(initSDKWithThemeColors: (NSString *)partnerToken :(int)environment
|
|
@@ -489,6 +489,17 @@ RCT_EXPORT_METHOD(setThemeColor: (NSString *)colorPrimary :(NSString *)colorPrim
|
|
|
489
489
|
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
+
//set custom theme color
|
|
493
|
+
RCT_EXPORT_METHOD(setCustomThemeColor: (NSString *)topBgColor :(NSString *)mainBgColor :(NSString *)shadowBgColor :(NSString *)offersCardBgColor :(NSString *)buttonBGColor :(NSString *)headingTextColor :(NSString *)subHeadingTextColor :(NSString *)extraTextColor :(NSString *)labelsTextColor :(NSString *)walletCardColor :(NSString *)walletInnerCardColor :(NSString *)walletSubHeadingColor :(NSString *)scratchCardBgColor :(NSString *)scratchCardInnerColor)
|
|
494
|
+
{
|
|
495
|
+
themeColor = topBgColor;
|
|
496
|
+
|
|
497
|
+
//Instance of flyy class
|
|
498
|
+
flyy = [Flyy sharedFlyyInstance];
|
|
499
|
+
[flyy setFlyyThemeColorWithTopBgColor:topBgColor mainBgColor:mainBgColor shadowBgColor:shadowBgColor offersCardBgColor:offersCardBgColor buttonBGColor:buttonBGColor headingTextColor:headingTextColor subHeadingTextColor:subHeadingTextColor extraTextColor:extraTextColor labelsTextColor:labelsTextColor walletCardColor:walletCardColor walletInnerCardColor:walletInnerCardColor walletSubHeadingColor:walletSubHeadingColor scratchCardBgColor:scratchCardBgColor scratchCardInnerColor:scratchCardInnerColor];
|
|
500
|
+
|
|
501
|
+
}
|
|
502
|
+
|
|
492
503
|
//set user token
|
|
493
504
|
RCT_EXPORT_METHOD(setUserToken: (NSString *)userToken)
|
|
494
505
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-flyy",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.39",
|
|
4
4
|
"description": "React Native wrapper around our Android and iOS mobile SDKs",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"pod-install": "^0.1.0",
|
|
66
66
|
"prettier": "^2.0.5",
|
|
67
67
|
"react": "17.0.2",
|
|
68
|
-
"react-native": "0.
|
|
68
|
+
"react-native": "0.68.1",
|
|
69
69
|
"react-native-builder-bob": "^0.17.1",
|
|
70
70
|
"release-it": "^14.2.2",
|
|
71
71
|
"typescript": "^4.1.3"
|