manage-app-sdk 0.0.2
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/README.md +2 -0
- package/dist/Constants/Home.js +85 -0
- package/dist/assets/AppConstant.js +293 -0
- package/dist/assets/androidResources/Connectivity.java +52 -0
- package/dist/assets/androidResources/ConnectivityPackage.java +25 -0
- package/dist/assets/fonts/VoltePlay-Bold.ttf +0 -0
- package/dist/assets/fonts/VoltePlay-Light.ttf +0 -0
- package/dist/assets/fonts/VoltePlay-Medium.ttf +0 -0
- package/dist/assets/fonts/VoltePlay-Regular.ttf +0 -0
- package/dist/assets/fonts/VoltePlay-SemiBold.ttf +0 -0
- package/dist/assets/gif/loader.gif +0 -0
- package/dist/assets/images/PartnerLogosSmall.png +0 -0
- package/dist/assets/images/Union.png +0 -0
- package/dist/assets/images/appIcon.png +0 -0
- package/dist/assets/images/desktop-alert.png +0 -0
- package/dist/assets/images/desktop-cross.png +0 -0
- package/dist/assets/images/mobile-bg.png +0 -0
- package/dist/assets/images/stepper-one-small.png +0 -0
- package/dist/assets/images/stepper-one.png +0 -0
- package/dist/assets/images/stepper-two-small.png +0 -0
- package/dist/assets/images/stepper-two.png +0 -0
- package/dist/assets/images/tablet-bg.png +0 -0
- package/dist/assets/png/Tataplay-Binge.png +0 -0
- package/dist/assets/png/arrowBack.png +0 -0
- package/dist/assets/png/backArrowPng.png +0 -0
- package/dist/assets/svg/BingeLogoSvg.js +44 -0
- package/dist/assets/svg/CrossSvg.js +32 -0
- package/dist/assets/svg/OfferSvg.js +31 -0
- package/dist/assets/svg/PlansSvg.js +75 -0
- package/dist/assets/svg/TickSvg.js +28 -0
- package/dist/assets/svg/arrowBack.js +27 -0
- package/dist/assets/svg/arrowSvg.js +31 -0
- package/dist/components/AppIcon/AppIcon.js +70 -0
- package/dist/components/AppleBanner/AppleMusicBanner.js +36 -0
- package/dist/components/AppleBanner/AppleMusicBannerStyles.js +32 -0
- package/dist/components/AppleBanner/AppleMusicBlackBanner.js +66 -0
- package/dist/components/AppsContainer/AppsContainer.js +112 -0
- package/dist/components/BottomSheet/BottomSheet.js +173 -0
- package/dist/components/BottomSheet/BottomSheetStyles.js +48 -0
- package/dist/components/Buttons/PrimaryButton/PrimaryButton.js +50 -0
- package/dist/components/Buttons/RadioButton/RadioButton.js +24 -0
- package/dist/components/Buttons/TextButton/TextButton.js +44 -0
- package/dist/components/CheckButton/CheckButton.js +36 -0
- package/dist/components/CommonModal/CommonModel.js +79 -0
- package/dist/components/CommonModal/ModalTypes.js +10 -0
- package/dist/components/Confetti/ConfettiBurst.js +120 -0
- package/dist/components/Confetti/FallingConfetti.js +190 -0
- package/dist/components/Confetti/MultiConfettiBurst.js +73 -0
- package/dist/components/Coupon/CouponCard.js +47 -0
- package/dist/components/Coupon/CouponStyles.js +54 -0
- package/dist/components/Footer/Footer.js +177 -0
- package/dist/components/Footer/MServiceFooter/MServiceFooter.js +103 -0
- package/dist/components/Footer/OnButtonFooter/OneButtonFooter.js +65 -0
- package/dist/components/Footer/PlanSummaryFooter/SummaryFooter.js +180 -0
- package/dist/components/Footer/PrimeAoFooter/PrimeAoFooter.js +193 -0
- package/dist/components/Footer/UpgradeFooter/UpgradeFooter.js +89 -0
- package/dist/components/Footer/UpgradeFooter/styles.js +73 -0
- package/dist/components/GradientBorderContainer/GradientBorderContainer.js +79 -0
- package/dist/components/GradientText/GradientText.js +60 -0
- package/dist/components/Header/ManageAppHeader.js +71 -0
- package/dist/components/HighlightedText/HighlightedText.js +53 -0
- package/dist/components/Input/OtpInput.js +105 -0
- package/dist/components/Loader/Loader.js +39 -0
- package/dist/components/MServicePaymentMethod/MServicePaymentMethod.js +395 -0
- package/dist/components/MicroDrama/MicroDramaBanner.js +67 -0
- package/dist/components/MicroDrama/MicroDramaCard.js +33 -0
- package/dist/components/MicroDrama/styles.js +29 -0
- package/dist/components/OfferCard/OfferCard.js +100 -0
- package/dist/components/PaymentMethod/PaymentMethod.js +370 -0
- package/dist/components/Plan/CurrentPlanCard.js +138 -0
- package/dist/components/Plan/PlanCard.js +268 -0
- package/dist/components/Plan/PlanCardStyles.js +371 -0
- package/dist/components/Plan/RenderAppIcons.js +115 -0
- package/dist/components/Plan/SpecialPlanCard.js +272 -0
- package/dist/components/PopUps/CancelPopUp/CancelPopUp.js +190 -0
- package/dist/components/PopUps/ConfettiAnimation.js +172 -0
- package/dist/components/PopUps/ConfettiBurst.js +142 -0
- package/dist/components/PopUps/CouponPopUp/CouponPopUp.js +185 -0
- package/dist/components/PopUps/ErrorMsgPopup/ErrorMsgPopup.js +104 -0
- package/dist/components/PopUps/InternetErrorPopUp/InternetErrorPopUp.js +122 -0
- package/dist/components/PopUps/MServicePopUp/MServicePopUp.js +155 -0
- package/dist/components/PopUps/MpinPopUp/MpinPopUp.js +193 -0
- package/dist/components/PopUps/OtpPopup/OtpPopup.js +345 -0
- package/dist/components/PopUps/PlanCancelledPopUp/PlanCancelledPopUp.js +183 -0
- package/dist/components/PopUps/PlanDetailPopup/PlanDetailPopup.js +121 -0
- package/dist/components/PopUps/PopUp/PopUp.js +171 -0
- package/dist/components/PrimeAddOn/PrimeAddOn.js +72 -0
- package/dist/components/PrimeAddOn/PrimeAddOnStyles.js +79 -0
- package/dist/components/PrimeAddOn/SummaryPage/PrimeAddOnBanner.js +109 -0
- package/dist/components/PrimeBanner/PrimeBanner.js +27 -0
- package/dist/components/PrimeBanner/PrimeBannerStyles.js +36 -0
- package/dist/components/SectionItem/SectionItem.js +42 -0
- package/dist/components/Toast/Toast.js +71 -0
- package/dist/components/Toast/ToastStyle.js +62 -0
- package/dist/navigation/Routes.js +84 -0
- package/dist/navigation/RoutesConstants.js +18 -0
- package/dist/screens/AppDiscontinue/ChooseApp.js +325 -0
- package/dist/screens/AppDiscontinue/styles.js +89 -0
- package/dist/screens/AppsReplacement/AppsReplacement.js +359 -0
- package/dist/screens/AppsReplacement/styles.js +92 -0
- package/dist/screens/ChooseYourPlan/ChooseYourPlan.js +596 -0
- package/dist/screens/ChooseYourPlan/ChooseYourPlanStyles.js +28 -0
- package/dist/screens/ChooseYourPlan/OffersCarousel.js +146 -0
- package/dist/screens/CreateSession/CreateSession.js +620 -0
- package/dist/screens/MyPlan/MyPlan.js +429 -0
- package/dist/screens/MyPlan/MyPlanStyles.js +227 -0
- package/dist/screens/PaymentStatus/PaymentStatus.js +492 -0
- package/dist/screens/PaymentStatus/styles.js +68 -0
- package/dist/screens/PlanCancellation/CancelPlan.js +127 -0
- package/dist/screens/PlanCancellation/InfiniteAutoScroll.js +67 -0
- package/dist/screens/PlanCancellation/styles.js +83 -0
- package/dist/screens/PlanSummary/PlanSummary.js +748 -0
- package/dist/screens/PlanSummary/PlanSummaryStyles.js +385 -0
- package/dist/screens/PrimePlanSummary/PrimePlanSummary.js +252 -0
- package/dist/screens/PrimePlanSummary/PrimePlanSummaryStyles.js +102 -0
- package/dist/screens/SelectApps/SelectApps.js +513 -0
- package/dist/screens/SelectApps/SelectAppsStyles.js +165 -0
- package/dist/screens/SplashScreen/SplashScreen.js +82 -0
- package/dist/services/apiCall/action.js +718 -0
- package/dist/services/apiCall/apiServiceUtils.js +136 -0
- package/dist/services/apiCall/constants.js +42 -0
- package/dist/services/apiCall/parser.js +92 -0
- package/dist/services/apiCall/reducer.js +591 -0
- package/dist/services/global/action.js +111 -0
- package/dist/services/global/commonReducer.js +97 -0
- package/dist/services/global/constants.js +22 -0
- package/dist/services/serviceCommonHandler.js +220 -0
- package/dist/store/configureStore.js +13 -0
- package/dist/store/rootReducer.js +14 -0
- package/dist/utils/commonUtils.js +381 -0
- package/dist/utils/fontUtils.js +13 -0
- package/dist/utils/string.js +101 -0
- package/package.json +53 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _AppConstant = require("../../assets/AppConstant");
|
|
9
|
+
var _fontUtils = require("../../utils/fontUtils");
|
|
10
|
+
const ratio = _AppConstant.AppConstant.dimension.aspectRatio;
|
|
11
|
+
var _default = exports.default = styles = _reactNative.StyleSheet.create({
|
|
12
|
+
container: {
|
|
13
|
+
flex: 1
|
|
14
|
+
// justifyContent: "center",
|
|
15
|
+
},
|
|
16
|
+
innerContainer: {
|
|
17
|
+
flex: 1,
|
|
18
|
+
alignItems: "center"
|
|
19
|
+
},
|
|
20
|
+
ScrollViewContainer: {},
|
|
21
|
+
listContainer: {
|
|
22
|
+
alignSelf: "center",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
rowGap: 22 * ratio,
|
|
25
|
+
marginTop: 10 * ratio,
|
|
26
|
+
marginBottom: 20 * ratio
|
|
27
|
+
},
|
|
28
|
+
columnWrapperStyle: {
|
|
29
|
+
columnGap: 28
|
|
30
|
+
},
|
|
31
|
+
itemApps: {
|
|
32
|
+
borderRadius: 6,
|
|
33
|
+
width: 56 * ratio,
|
|
34
|
+
height: 56 * ratio,
|
|
35
|
+
alignItems: "center"
|
|
36
|
+
// marginHorizontal: 10 * ratio,
|
|
37
|
+
},
|
|
38
|
+
title: {
|
|
39
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(16),
|
|
40
|
+
fontFamily: _fontUtils.FONTS.SemiBold
|
|
41
|
+
},
|
|
42
|
+
titleApps: {
|
|
43
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(11),
|
|
44
|
+
color: "#220046",
|
|
45
|
+
textAlign: "center",
|
|
46
|
+
marginTop: 4
|
|
47
|
+
},
|
|
48
|
+
confirmButton: {
|
|
49
|
+
backgroundColor: "gray",
|
|
50
|
+
alignItems: "center",
|
|
51
|
+
borderRadius: 3,
|
|
52
|
+
paddingVertical: 10,
|
|
53
|
+
margin: 15,
|
|
54
|
+
width: "100%"
|
|
55
|
+
},
|
|
56
|
+
enabledButton: {
|
|
57
|
+
backgroundColor: "#e10192"
|
|
58
|
+
},
|
|
59
|
+
imageFlexi199: {
|
|
60
|
+
width: "100%",
|
|
61
|
+
height: "100%",
|
|
62
|
+
resizeMode: "cover"
|
|
63
|
+
},
|
|
64
|
+
headerColor: {
|
|
65
|
+
backgroundColor: "#efe8fa"
|
|
66
|
+
},
|
|
67
|
+
headerText: {
|
|
68
|
+
color: "black",
|
|
69
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(20)
|
|
70
|
+
},
|
|
71
|
+
appIcon: {
|
|
72
|
+
width: 64 * ratio,
|
|
73
|
+
height: 64 * ratio,
|
|
74
|
+
borderRadius: 6
|
|
75
|
+
},
|
|
76
|
+
appDesc: {
|
|
77
|
+
width: 64 * ratio,
|
|
78
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(10),
|
|
79
|
+
color: "#220046",
|
|
80
|
+
fontFamily: _fontUtils.FONTS.Medium,
|
|
81
|
+
marginVertical: 5 * ratio,
|
|
82
|
+
textAlign: "center"
|
|
83
|
+
},
|
|
84
|
+
subheading: {
|
|
85
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(16),
|
|
86
|
+
color: "#220046",
|
|
87
|
+
fontFamily: _fontUtils.FONTS.SemiBold
|
|
88
|
+
},
|
|
89
|
+
choosableAppsContainer: {
|
|
90
|
+
backgroundColor: "#efe8fa",
|
|
91
|
+
width: 360 * ratio,
|
|
92
|
+
paddingTop: 10 * ratio,
|
|
93
|
+
paddingHorizontal: 20 * ratio
|
|
94
|
+
},
|
|
95
|
+
complimentaryAppsContainer: {
|
|
96
|
+
width: 360 * ratio,
|
|
97
|
+
paddingHorizontal: 22 * ratio,
|
|
98
|
+
marginBottom: 200 * ratio
|
|
99
|
+
},
|
|
100
|
+
complimentaryTextContainer: {
|
|
101
|
+
flexDirection: "row",
|
|
102
|
+
marginVertical: 8 * ratio,
|
|
103
|
+
alignItems: "center"
|
|
104
|
+
},
|
|
105
|
+
complmentaryHeading: {
|
|
106
|
+
color: "#ffe8f7",
|
|
107
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(16),
|
|
108
|
+
fontFamily: _fontUtils.FONTS.Medium
|
|
109
|
+
},
|
|
110
|
+
complmentaryDesc: {
|
|
111
|
+
color: "#ffe8f7",
|
|
112
|
+
fontSize: _AppConstant.AppConstant.normalizeFont(14),
|
|
113
|
+
fontFamily: _fontUtils.FONTS.Medium
|
|
114
|
+
},
|
|
115
|
+
giftGIF: {
|
|
116
|
+
width: 35 * ratio,
|
|
117
|
+
height: 35 * ratio,
|
|
118
|
+
left: -12 * ratio
|
|
119
|
+
},
|
|
120
|
+
checkMark: {
|
|
121
|
+
width: 20 * ratio,
|
|
122
|
+
height: 20 * ratio,
|
|
123
|
+
backgroundColor: "#e10192",
|
|
124
|
+
zIndex: 999,
|
|
125
|
+
position: "absolute",
|
|
126
|
+
top: -5 * ratio,
|
|
127
|
+
right: -10 * ratio,
|
|
128
|
+
borderRadius: 50,
|
|
129
|
+
justifyContent: "center",
|
|
130
|
+
alignItems: "center"
|
|
131
|
+
},
|
|
132
|
+
appAndCheckMarkContainer: {
|
|
133
|
+
position: "relative"
|
|
134
|
+
},
|
|
135
|
+
checkSvg: {
|
|
136
|
+
width: 10 * ratio,
|
|
137
|
+
height: 10 * ratio
|
|
138
|
+
},
|
|
139
|
+
whiteBackground: {
|
|
140
|
+
// backgroundColor: "#efe8fa",
|
|
141
|
+
alignItems: "center"
|
|
142
|
+
},
|
|
143
|
+
blackBackground: {
|
|
144
|
+
alignItems: "center"
|
|
145
|
+
},
|
|
146
|
+
footerAndToastContainer: {
|
|
147
|
+
position: "absolute",
|
|
148
|
+
bottom: 0,
|
|
149
|
+
left: 0,
|
|
150
|
+
right: 0
|
|
151
|
+
},
|
|
152
|
+
primeAddOn: {
|
|
153
|
+
width: "100%",
|
|
154
|
+
marginBottom: -2,
|
|
155
|
+
borderRadius: 0
|
|
156
|
+
},
|
|
157
|
+
primeContainerStyle: {
|
|
158
|
+
width: 500
|
|
159
|
+
},
|
|
160
|
+
imageBackground: {
|
|
161
|
+
width: "100%",
|
|
162
|
+
..._reactNative.StyleSheet.absoluteFillObject,
|
|
163
|
+
height: "30%"
|
|
164
|
+
}
|
|
165
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _reactNativeLinearGradient = require("react-native-linear-gradient");
|
|
11
|
+
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
13
|
+
const slideFadeOut = () => {
|
|
14
|
+
"worklet";
|
|
15
|
+
|
|
16
|
+
return {
|
|
17
|
+
initialValues: {
|
|
18
|
+
opacity: 1,
|
|
19
|
+
transform: [{
|
|
20
|
+
translateX: 0
|
|
21
|
+
}]
|
|
22
|
+
},
|
|
23
|
+
animations: {
|
|
24
|
+
opacity: (0, _reactNativeReanimated.withTiming)(0, {
|
|
25
|
+
duration: 200,
|
|
26
|
+
easing: _reactNativeReanimated.Easing.linear
|
|
27
|
+
}),
|
|
28
|
+
transform: [{
|
|
29
|
+
translateX: (0, _reactNativeReanimated.withTiming)(-60, {
|
|
30
|
+
duration: 200,
|
|
31
|
+
easing: _reactNativeReanimated.Easing.out(_reactNativeReanimated.Easing.ease)
|
|
32
|
+
})
|
|
33
|
+
}]
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
const SplashScreen = () => {
|
|
38
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.View, {
|
|
39
|
+
exiting: slideFadeOut,
|
|
40
|
+
style: styles.splashContainer
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNativeLinearGradient.LinearGradient, {
|
|
42
|
+
colors: ["#340368ff", "#140128ff"],
|
|
43
|
+
start: {
|
|
44
|
+
x: 0,
|
|
45
|
+
y: 0
|
|
46
|
+
},
|
|
47
|
+
end: {
|
|
48
|
+
x: 0,
|
|
49
|
+
y: 1
|
|
50
|
+
},
|
|
51
|
+
style: _reactNative.StyleSheet.absoluteFill
|
|
52
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNativeReanimated.default.Image, {
|
|
53
|
+
entering: _reactNativeReanimated.FadeInLeft.easing(_reactNativeReanimated.Easing.linear).duration(200),
|
|
54
|
+
source: require("../../assets/png/Tataplay-Binge.png"),
|
|
55
|
+
resizeMode: "contain",
|
|
56
|
+
style: styles.bingeLogo
|
|
57
|
+
}));
|
|
58
|
+
};
|
|
59
|
+
var _default = exports.default = SplashScreen;
|
|
60
|
+
const styles = _reactNative.StyleSheet.create({
|
|
61
|
+
splashContainer: {
|
|
62
|
+
flex: 1,
|
|
63
|
+
justifyContent: "center",
|
|
64
|
+
alignItems: "center",
|
|
65
|
+
position: "absolute",
|
|
66
|
+
top: 0,
|
|
67
|
+
left: 0,
|
|
68
|
+
right: 0,
|
|
69
|
+
bottom: 0,
|
|
70
|
+
zIndex: 999,
|
|
71
|
+
pointerEvents: "none"
|
|
72
|
+
},
|
|
73
|
+
linearGradient: {
|
|
74
|
+
flex: 1,
|
|
75
|
+
..._reactNative.StyleSheet.absoluteFill
|
|
76
|
+
},
|
|
77
|
+
bingeLogo: {
|
|
78
|
+
width: "75%",
|
|
79
|
+
maxWidth: 280,
|
|
80
|
+
height: 90
|
|
81
|
+
}
|
|
82
|
+
});
|