react-native-flyy 1.4.36 → 1.4.38
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.83'
|
|
138
138
|
// implementation project(path: ':flyy')
|
|
139
139
|
|
|
140
140
|
implementation 'com.google.code.gson:gson:2.8.7'
|
|
@@ -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
|
@@ -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.38",
|
|
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",
|
|
@@ -629,19 +629,19 @@
|
|
|
629
629
|
"meow": "^8.1.0",
|
|
630
630
|
"merge-stream": "^2.0.0",
|
|
631
631
|
"merge2": "^1.4.1",
|
|
632
|
-
"metro": "^0.
|
|
633
|
-
"metro-babel-register": "^0.
|
|
634
|
-
"metro-babel-transformer": "^0.
|
|
635
|
-
"metro-cache": "^0.
|
|
636
|
-
"metro-config": "^0.
|
|
637
|
-
"metro-core": "^0.
|
|
638
|
-
"metro-inspector-proxy": "^0.
|
|
639
|
-
"metro-minify-uglify": "^0.
|
|
640
|
-
"metro-react-native-babel-preset": "^0.
|
|
641
|
-
"metro-react-native-babel-transformer": "^0.
|
|
642
|
-
"metro-resolver": "^0.
|
|
643
|
-
"metro-source-map": "^0.
|
|
644
|
-
"metro-symbolicate": "^0.
|
|
632
|
+
"metro": "^0.66.2",
|
|
633
|
+
"metro-babel-register": "^0.66.2",
|
|
634
|
+
"metro-babel-transformer": "^0.66.2",
|
|
635
|
+
"metro-cache": "^0.66.2",
|
|
636
|
+
"metro-config": "^0.66.2",
|
|
637
|
+
"metro-core": "^0.66.2",
|
|
638
|
+
"metro-inspector-proxy": "^0.66.2",
|
|
639
|
+
"metro-minify-uglify": "^0.66.2",
|
|
640
|
+
"metro-react-native-babel-preset": "^0.66.2",
|
|
641
|
+
"metro-react-native-babel-transformer": "^0.66.2",
|
|
642
|
+
"metro-resolver": "^0.66.2",
|
|
643
|
+
"metro-source-map": "^0.66.2",
|
|
644
|
+
"metro-symbolicate": "^0.66.2",
|
|
645
645
|
"micromatch": "^4.0.2",
|
|
646
646
|
"mime": "^2.4.7",
|
|
647
647
|
"mime-db": "^1.45.0",
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
"nullthrows": "^1.1.1",
|
|
678
678
|
"nwsapi": "^2.2.0",
|
|
679
679
|
"oauth-sign": "^0.9.0",
|
|
680
|
-
"ob1": "^0.
|
|
680
|
+
"ob1": "^0.66.2",
|
|
681
681
|
"object-assign": "^4.1.1",
|
|
682
682
|
"object-copy": "^0.1.0",
|
|
683
683
|
"object-inspect": "^1.9.0",
|