@tyrads.com/tyrads-sdk 1.1.15 → 2.0.0-beta.1
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 +18 -2
- package/android/src/main/java/com/tyradssdk/TyradsSdkComposeViewManager.kt +112 -0
- package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +21 -9
- package/android/src/main/java/com/tyradssdk/TyradsSdkPackage.kt +2 -1
- package/ios/Tyrads/Tyrads.swift +43 -18
- package/ios/TyradsSdk.mm +3 -1
- package/ios/TyradsSdk.swift +5 -4
- package/lib/commonjs/acmo/core/marquee.js +60 -0
- package/lib/commonjs/acmo/core/marquee.js.map +1 -0
- package/lib/commonjs/acmo/core/storage/storage.js +36 -0
- package/lib/commonjs/acmo/core/storage/storage.js.map +1 -0
- package/lib/commonjs/acmo/core/types/types.d.js +2 -0
- package/lib/commonjs/acmo/core/types/types.d.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js +87 -0
- package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js +41 -0
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js +50 -0
- package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js +163 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js +103 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js +186 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js +104 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js +43 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js +215 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/repository.js +71 -0
- package/lib/commonjs/acmo/modules/dashboard/repository.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js +137 -0
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +1 -0
- package/lib/commonjs/assets/images/premium_star.png +0 -0
- package/lib/commonjs/assets/images/right_arrow.png +0 -0
- package/lib/commonjs/assets/images/star_pointed.png +0 -0
- package/lib/commonjs/i18n.js +112 -0
- package/lib/commonjs/i18n.js.map +1 -0
- package/lib/commonjs/index.js +58 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/acmo/core/marquee.js +54 -0
- package/lib/module/acmo/core/marquee.js.map +1 -0
- package/lib/module/acmo/core/storage/storage.js +29 -0
- package/lib/module/acmo/core/storage/storage.js.map +1 -0
- package/lib/module/acmo/core/types/types.d.js +2 -0
- package/lib/module/acmo/core/types/types.d.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/auto_scroller.js +81 -0
- package/lib/module/acmo/modules/dashboard/components/auto_scroller.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/custom_card.js +36 -0
- package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/my_games_button.js +45 -0
- package/lib/module/acmo/modules/dashboard/components/my_games_button.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/offer_info_section.js +158 -0
- package/lib/module/acmo/modules/dashboard/components/offer_info_section.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_header.js +98 -0
- package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_1.js +181 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_1.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_2.js +99 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_2.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_3.js +38 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_3.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_4.js +210 -0
- package/lib/module/acmo/modules/dashboard/components/premium_option_4.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/repository.js +65 -0
- package/lib/module/acmo/modules/dashboard/repository.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/top_offers.js +130 -0
- package/lib/module/acmo/modules/dashboard/top_offers.js.map +1 -0
- package/lib/module/assets/images/premium_star.png +0 -0
- package/lib/module/assets/images/right_arrow.png +0 -0
- package/lib/module/assets/images/star_pointed.png +0 -0
- package/lib/module/i18n.js +107 -0
- package/lib/module/i18n.js.map +1 -0
- package/lib/module/index.js +59 -2
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts +11 -0
- package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts +3 -0
- package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts +10 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts +9 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts +7 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts +10 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +2 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts +10 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/i18n.d.ts +3 -0
- package/lib/typescript/commonjs/src/i18n.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +15 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/core/marquee.d.ts +11 -0
- package/lib/typescript/module/src/acmo/core/marquee.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/storage/storage.d.ts +3 -0
- package/lib/typescript/module/src/acmo/core/storage/storage.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts +10 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts +9 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts +7 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts +10 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +2 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts +10 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -0
- package/lib/typescript/module/src/i18n.d.ts +3 -0
- package/lib/typescript/module/src/i18n.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +15 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +12 -1
- package/readme.md +71 -0
- package/src/acmo/core/marquee.tsx +62 -0
- package/src/acmo/core/storage/storage.ts +28 -0
- package/src/acmo/core/types/types.d.ts +94 -0
- package/src/acmo/modules/dashboard/components/auto_scroller.tsx +85 -0
- package/src/acmo/modules/dashboard/components/custom_card.tsx +31 -0
- package/src/acmo/modules/dashboard/components/my_games_button.tsx +40 -0
- package/src/acmo/modules/dashboard/components/offer_info_section.tsx +144 -0
- package/src/acmo/modules/dashboard/components/premium_header.tsx +81 -0
- package/src/acmo/modules/dashboard/components/premium_option_1.tsx +161 -0
- package/src/acmo/modules/dashboard/components/premium_option_2.tsx +104 -0
- package/src/acmo/modules/dashboard/components/premium_option_3.tsx +46 -0
- package/src/acmo/modules/dashboard/components/premium_option_4.tsx +184 -0
- package/src/acmo/modules/dashboard/repository.ts +95 -0
- package/src/acmo/modules/dashboard/top_offers.tsx +131 -0
- package/src/assets/images/premium_star.png +0 -0
- package/src/assets/images/right_arrow.png +0 -0
- package/src/assets/images/star_pointed.png +0 -0
- package/src/i18n.ts +115 -0
- package/src/index.tsx +64 -2
@@ -0,0 +1,130 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import React, { useState, useEffect } from 'react';
|
4
|
+
import { View, Text, ActivityIndicator, StyleSheet } from 'react-native';
|
5
|
+
import { fetchCampaignsData } from "./repository.js";
|
6
|
+
import PremiumHeaderSection from "./components/premium_header.js";
|
7
|
+
import CustomCard from "./components/custom_card.js";
|
8
|
+
import MyGamesButton from "./components/my_games_button.js";
|
9
|
+
import PremiumOption1 from "./components/premium_option_1.js";
|
10
|
+
import PremiumOption2 from "./components/premium_option_2.js";
|
11
|
+
import PremiumOption3 from "./components/premium_option_3.js";
|
12
|
+
import PremiumOption4 from "./components/premium_option_4.js";
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
14
|
+
const TopOffers = ({
|
15
|
+
showMore,
|
16
|
+
showMyOffers = false,
|
17
|
+
showMyOffersEmptyView = false,
|
18
|
+
style = 1
|
19
|
+
}) => {
|
20
|
+
const [campaigns, setCampaigns] = useState([]);
|
21
|
+
const [isLoading, setIsLoading] = useState(true);
|
22
|
+
const [error, setError] = useState(null);
|
23
|
+
const [premiumColor, setPremiumColor] = useState('#1C90DF');
|
24
|
+
// const [language, setLanguage] = useState<string>('en');
|
25
|
+
|
26
|
+
useEffect(() => {
|
27
|
+
fetchCampaignsData(
|
28
|
+
// setLanguage,
|
29
|
+
setPremiumColor, setCampaigns, setError, setIsLoading);
|
30
|
+
}, []);
|
31
|
+
if (isLoading) {
|
32
|
+
return /*#__PURE__*/_jsx(View, {
|
33
|
+
style: styles.loadingContainer,
|
34
|
+
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
35
|
+
size: "large",
|
36
|
+
color: "#007AFF"
|
37
|
+
})
|
38
|
+
});
|
39
|
+
}
|
40
|
+
if (error) {
|
41
|
+
return /*#__PURE__*/_jsx(View, {
|
42
|
+
style: styles.errorContainer,
|
43
|
+
children: /*#__PURE__*/_jsxs(Text, {
|
44
|
+
style: styles.errorText,
|
45
|
+
children: ["Error: ", error]
|
46
|
+
})
|
47
|
+
});
|
48
|
+
}
|
49
|
+
if (campaigns.length === 0) {
|
50
|
+
if (showMyOffersEmptyView) {
|
51
|
+
return /*#__PURE__*/_jsx(View, {
|
52
|
+
style: styles.noCampaignContainer,
|
53
|
+
children: /*#__PURE__*/_jsx(Text, {
|
54
|
+
children: "No campaigns available"
|
55
|
+
})
|
56
|
+
});
|
57
|
+
} else {
|
58
|
+
return /*#__PURE__*/_jsx(View, {});
|
59
|
+
}
|
60
|
+
}
|
61
|
+
return /*#__PURE__*/_jsx(CustomCard, {
|
62
|
+
style: {},
|
63
|
+
children: /*#__PURE__*/_jsxs(View, {
|
64
|
+
style: {
|
65
|
+
flex: 1
|
66
|
+
},
|
67
|
+
children: [/*#__PURE__*/_jsx(PremiumHeaderSection, {
|
68
|
+
showMore: showMore,
|
69
|
+
premiumColor: premiumColor
|
70
|
+
}), /*#__PURE__*/_jsx(View, {
|
71
|
+
style: styles.headerSpacer
|
72
|
+
}), (() => {
|
73
|
+
switch (style) {
|
74
|
+
case 1:
|
75
|
+
return /*#__PURE__*/_jsx(PremiumOption1, {
|
76
|
+
data: campaigns,
|
77
|
+
premiumColor: premiumColor
|
78
|
+
});
|
79
|
+
case 2:
|
80
|
+
return /*#__PURE__*/_jsx(PremiumOption2, {
|
81
|
+
data: campaigns,
|
82
|
+
premiumColor: premiumColor
|
83
|
+
});
|
84
|
+
case 3:
|
85
|
+
return /*#__PURE__*/_jsx(PremiumOption3, {
|
86
|
+
data: campaigns,
|
87
|
+
premiumColor: premiumColor
|
88
|
+
});
|
89
|
+
case 4:
|
90
|
+
return /*#__PURE__*/_jsx(PremiumOption4, {
|
91
|
+
data: campaigns,
|
92
|
+
premiumColor: premiumColor
|
93
|
+
});
|
94
|
+
default:
|
95
|
+
return /*#__PURE__*/_jsx(Text, {
|
96
|
+
children: "Please specify a correct style"
|
97
|
+
});
|
98
|
+
}
|
99
|
+
})(), /*#__PURE__*/_jsx(View, {
|
100
|
+
style: styles.gameListSpacer
|
101
|
+
}), showMyOffers && /*#__PURE__*/_jsx(MyGamesButton, {
|
102
|
+
premiumColor: premiumColor
|
103
|
+
})]
|
104
|
+
})
|
105
|
+
});
|
106
|
+
};
|
107
|
+
const styles = StyleSheet.create({
|
108
|
+
loadingContainer: {
|
109
|
+
flex: 1,
|
110
|
+
justifyContent: 'center',
|
111
|
+
alignItems: 'center'
|
112
|
+
},
|
113
|
+
errorContainer: {
|
114
|
+
padding: 16
|
115
|
+
},
|
116
|
+
errorText: {
|
117
|
+
color: 'red'
|
118
|
+
},
|
119
|
+
noCampaignContainer: {
|
120
|
+
padding: 16
|
121
|
+
},
|
122
|
+
headerSpacer: {
|
123
|
+
height: 10
|
124
|
+
},
|
125
|
+
gameListSpacer: {
|
126
|
+
height: 10
|
127
|
+
}
|
128
|
+
});
|
129
|
+
export default TopOffers;
|
130
|
+
//# sourceMappingURL=top_offers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","View","Text","ActivityIndicator","StyleSheet","fetchCampaignsData","PremiumHeaderSection","CustomCard","MyGamesButton","PremiumOption1","PremiumOption2","PremiumOption3","PremiumOption4","jsx","_jsx","jsxs","_jsxs","TopOffers","showMore","showMyOffers","showMyOffersEmptyView","style","campaigns","setCampaigns","isLoading","setIsLoading","error","setError","premiumColor","setPremiumColor","styles","loadingContainer","children","size","color","errorContainer","errorText","length","noCampaignContainer","flex","headerSpacer","data","gameListSpacer","create","justifyContent","alignItems","padding","height"],"sourceRoot":"..\\..\\..\\..\\..\\src","sources":["acmo/modules/dashboard/top_offers.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACEC,IAAI,EACJC,IAAI,EACJC,iBAAiB,EACjBC,UAAU,QACL,cAAc;AACrB,SAASC,kBAAkB,QAAQ,iBAAc;AACjD,OAAOC,oBAAoB,MAAM,gCAA6B;AAC9D,OAAOC,UAAU,MAAM,6BAA0B;AACjD,OAAOC,aAAa,MAAM,iCAA8B;AACxD,OAAOC,cAAc,MAAM,kCAA+B;AAC1D,OAAOC,cAAc,MAAM,kCAA+B;AAC1D,OAAOC,cAAc,MAAM,kCAA+B;AAC1D,OAAOC,cAAc,MAAM,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAS3D,MAAMC,SAAmC,GAAGA,CAAC;EAC3CC,QAAQ;EACRC,YAAY,GAAG,KAAK;EACpBC,qBAAqB,GAAG,KAAK;EAC7BC,KAAK,GAAG;AACV,CAAC,KAAK;EACJ,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGxB,QAAQ,CAAwB,EAAE,CAAC;EACrE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AE;IACdW,OAAO,EAAE;EACX,CAAC;EACDV,SAAS,EAAE;IACTF,KAAK,EAAE;EACT,CAAC;EACDI,mBAAmB,EAAE;IACnBQ,OAAO,EAAE;EACX,CAAC;EACDN,YAAY,EAAE;IACZO,MAAM,EAAE;EACV,CAAC;EACDL,cAAc,EAAE;IACdK,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAe9B,SAAS","ignoreList":[]}
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,107 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import i18n from 'i18next';
|
4
|
+
import { initReactI18next } from 'react-i18next';
|
5
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
6
|
+
const resources = {
|
7
|
+
en: {
|
8
|
+
translation: {
|
9
|
+
"dashboard": {
|
10
|
+
"suggested_offers": "Suggested Offers",
|
11
|
+
"more_offers": "More Offers",
|
12
|
+
"my_games": "My Games",
|
13
|
+
"play_button": "Play Now",
|
14
|
+
"top_ranking": "Top {{number}}",
|
15
|
+
"rewards_one": "Reward",
|
16
|
+
"rewards_other": "Rewards"
|
17
|
+
}
|
18
|
+
}
|
19
|
+
},
|
20
|
+
es: {
|
21
|
+
translation: {
|
22
|
+
"dashboard": {
|
23
|
+
"suggested_offers": "Ofertas sugeridas",
|
24
|
+
"more_offers": "Más ofertas",
|
25
|
+
"my_games": "Mis juegos",
|
26
|
+
"play_button": "Jugar Ahora",
|
27
|
+
"top_ranking": "Los mejores {{number}}",
|
28
|
+
"rewards_one": "Recompensa",
|
29
|
+
"rewards_other": "Recompensas"
|
30
|
+
}
|
31
|
+
}
|
32
|
+
},
|
33
|
+
id: {
|
34
|
+
translation: {
|
35
|
+
"dashboard": {
|
36
|
+
"suggested_offers": "Penawaran yang Disarankan",
|
37
|
+
"more_offers": "Penawaran Lainnya",
|
38
|
+
"my_games": "Permainan Saya",
|
39
|
+
"play_button": "Mainkan Sekarang",
|
40
|
+
"top_ranking": "Top {{number}}",
|
41
|
+
"rewards_one": "Hadiah",
|
42
|
+
"rewards_other": "Hadiah"
|
43
|
+
}
|
44
|
+
}
|
45
|
+
},
|
46
|
+
in: {
|
47
|
+
translation: {
|
48
|
+
"dashboard": {
|
49
|
+
"suggested_offers": "Penawaran yang Disarankan",
|
50
|
+
"more_offers": "Penawaran Lainnya",
|
51
|
+
"my_games": "Permainan Saya",
|
52
|
+
"play_button": "Mainkan Sekarang",
|
53
|
+
"top_ranking": "Top {{number}}",
|
54
|
+
"rewards_one": "Hadiah",
|
55
|
+
"rewards_other": "Hadiah"
|
56
|
+
}
|
57
|
+
}
|
58
|
+
},
|
59
|
+
ja: {
|
60
|
+
translation: {
|
61
|
+
"dashboard": {
|
62
|
+
"suggested_offers": "おすすめのオファー",
|
63
|
+
"more_offers": "その他のオファー",
|
64
|
+
"my_games": "マイゲーム",
|
65
|
+
"play_button": "プレイ する",
|
66
|
+
"top_ranking": "トップ {{number}}",
|
67
|
+
"rewards_one": "報酬",
|
68
|
+
"rewards_other": "報酬"
|
69
|
+
}
|
70
|
+
}
|
71
|
+
},
|
72
|
+
ko: {
|
73
|
+
translation: {
|
74
|
+
"dashboard": {
|
75
|
+
"suggested_offers": "추천 제안",
|
76
|
+
"more_offers": "더 많은 제안",
|
77
|
+
"my_games": "내 게임",
|
78
|
+
"play_button": "플레이 하고",
|
79
|
+
"top_ranking": "상위 {{number}}",
|
80
|
+
"rewards_one": "보상",
|
81
|
+
"rewards_other": "보상들"
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
};
|
86
|
+
const initializeI18n = async () => {
|
87
|
+
try {
|
88
|
+
const language = await AsyncStorage.getItem('language');
|
89
|
+
const storedLanguage = JSON.parse(language);
|
90
|
+
console.log('storedLanguage', storedLanguage);
|
91
|
+
const initialLanguage = storedLanguage;
|
92
|
+
await i18n.use(initReactI18next).init({
|
93
|
+
resources,
|
94
|
+
fallbackLng: 'en',
|
95
|
+
lng: initialLanguage,
|
96
|
+
debug: __DEV__,
|
97
|
+
interpolation: {
|
98
|
+
escapeValue: false
|
99
|
+
}
|
100
|
+
});
|
101
|
+
} catch (error) {
|
102
|
+
console.error('Error initializing i18n:', error);
|
103
|
+
}
|
104
|
+
};
|
105
|
+
initializeI18n();
|
106
|
+
export default i18n;
|
107
|
+
//# sourceMappingURL=i18n.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["i18n","initReactI18next","AsyncStorage","resources","en","translation","es","id","in","ja","ko","initializeI18n","language","getItem","storedLanguage","JSON","parse","console","log","initialLanguage","use","init","fallbackLng","lng","debug","__DEV__","interpolation","escapeValue","error"],"sourceRoot":"..\\..\\src","sources":["i18n.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;AAC1B,SAASC,gBAAgB,QAAQ,eAAe;AAChD,OAAOC,YAAY,MAAM,2CAA2C;AAGpE,MAAMC,SAAS,GAAG;EAChBC,EAAE,EAAE;IACFC,WAAW,EAAE;MACX,WAAW,EAAE;QACX,kBAAkB,EAAE,kBAAkB;QACtC,aAAa,EAAE,aAAa;QAC5B,UAAU,EAAE,UAAU;QACtB,aAAa,EAAE,UAAU;QACzB,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,QAAQ;QACvB,eAAe,EAAE;MACnB;IAGF;EACF,CAAC;EACDC,EAAE,EAAE;IACFD,WAAW,EAAE;MACX,WAAW,EAAE;QACX,kBAAkB,EAAE,mBAAmB;QACvC,aAAa,EAAE,aAAa;QAC5B,UAAU,EAAE,YAAY;QACxB,aAAa,EAAE,aAAa;QAC5B,aAAa,EAAE,wBAAwB;QACvC,aAAa,EAAE,YAAY;QAC3B,eAAe,EAAE;MACnB;IAEF;EACF,CAAC;EACDE,EAAE,EAAE;IACFF,WAAW,EAAE;MACX,WAAW,EAAE;QACX,kBAAkB,EAAE,2BAA2B;QAC/C,aAAa,EAAE,mBAAmB;QAClC,UAAU,EAAE,gBAAgB;QAC5B,aAAa,EAAE,kBAAkB;QACjC,aAAa,EAAE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,EAAEJ,eAAe;MACpBK,KAAK,EAAEC,OAAO;MACdC,aAAa,EAAE;QACbC,WAAW,EAAE;MACf;IACF,CAAC,CAAC;EACN,CAAC,CAAC,OAAOC,KAAK,EAAE;IACdX,OAAO,CAACW,KAAK,CAAC,0BAA0B,EAAEA,KAAK,CAAC;EAClD;AACF,CAAC;AAEDjB,cAAc,CAAC,CAAC;AAEhB,eAAeX,IAAI","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
@@ -1,14 +1,71 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
import { NativeModules, Platform } from 'react-native';
|
3
|
+
import { NativeModules, Platform, View } from 'react-native';
|
4
|
+
import TopOffers from "./acmo/modules/dashboard/top_offers.js";
|
5
|
+
import { saveData } from "./acmo/core/storage/storage.js";
|
6
|
+
import { I18nextProvider } from 'react-i18next';
|
7
|
+
import i18n from "./i18n.js";
|
8
|
+
|
9
|
+
// const TyradsSdkComposeView = requireNativeComponent('TyradsSdkComposeView');
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
4
11
|
const LINKING_ERROR = `The package 'tyrads-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
5
12
|
ios: "- You have run 'pod install'\n",
|
6
13
|
default: ''
|
7
14
|
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
8
|
-
const
|
15
|
+
const TyradsSdk = NativeModules.TyradsSdk ? NativeModules.TyradsSdk : new Proxy({}, {
|
9
16
|
get() {
|
10
17
|
throw new Error(LINKING_ERROR);
|
11
18
|
}
|
12
19
|
});
|
20
|
+
const Tyrads = {
|
21
|
+
init: (apiKey, apiSecret) => {
|
22
|
+
return TyradsSdk.init(apiKey, apiSecret);
|
23
|
+
},
|
24
|
+
loginUser: async userId => {
|
25
|
+
try {
|
26
|
+
var data = await TyradsSdk.loginUser(userId);
|
27
|
+
console.log("data from login: ", data);
|
28
|
+
await saveData('apiHeaders', data);
|
29
|
+
await saveData('language', JSON.parse(data).languageCode);
|
30
|
+
} catch (err) {
|
31
|
+
console.log(err);
|
32
|
+
}
|
33
|
+
return TyradsSdk.loginUser(userId);
|
34
|
+
},
|
35
|
+
showOffers: ({
|
36
|
+
launchMode = 3,
|
37
|
+
route,
|
38
|
+
campaignID = 0
|
39
|
+
} = {}) => {
|
40
|
+
if (Platform.OS === 'ios') {
|
41
|
+
return TyradsSdk.showOffers(launchMode, route, campaignID);
|
42
|
+
} else {
|
43
|
+
return TyradsSdk.showOffers(route, campaignID);
|
44
|
+
}
|
45
|
+
},
|
46
|
+
topPremiumOffers: ({
|
47
|
+
showMore = true,
|
48
|
+
showMyOffers = true,
|
49
|
+
showMyOffersEmptyView = false,
|
50
|
+
viewStyle = 1
|
51
|
+
} = {}) => {
|
52
|
+
return /*#__PURE__*/_jsx(I18nextProvider, {
|
53
|
+
i18n: i18n,
|
54
|
+
children: /*#__PURE__*/_jsx(View, {
|
55
|
+
style: {
|
56
|
+
flex: 1,
|
57
|
+
justifyContent: 'center',
|
58
|
+
alignItems: 'center'
|
59
|
+
},
|
60
|
+
children: /*#__PURE__*/_jsx(TopOffers, {
|
61
|
+
showMore: showMore,
|
62
|
+
showMyOffers: showMyOffers,
|
63
|
+
showMyOffersEmptyView: showMyOffersEmptyView,
|
64
|
+
style: viewStyle
|
65
|
+
})
|
66
|
+
})
|
67
|
+
});
|
68
|
+
}
|
69
|
+
};
|
13
70
|
export default Tyrads;
|
14
71
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","LINKING_ERROR","select","ios","default","
|
1
|
+
{"version":3,"names":["NativeModules","Platform","View","TopOffers","saveData","I18nextProvider","i18n","jsx","_jsx","LINKING_ERROR","select","ios","default","TyradsSdk","Proxy","get","Error","Tyrads","init","apiKey","apiSecret","loginUser","userId","data","console","log","JSON","parse","languageCode","err","showOffers","launchMode","route","campaignID","OS","topPremiumOffers","showMore","showMyOffers","showMyOffersEmptyView","viewStyle","children","style","flex","justifyContent","alignItems"],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,EAAEC,IAAI,QAAQ,cAAc;AAE5D,OAAOC,SAAS,MAAM,wCAAqC;AAC3D,SAASC,QAAQ,QAAQ,gCAA6B;AACtD,SAASC,eAAe,QAAQ,eAAe;AAC/C,OAAOC,IAAI,MAAM,WAAQ;;AAEzB;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGA,MAAMC,aAAa,GACjB,qEAAqE,GACrER,QAAQ,CAACS,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,SAAS,GAAGb,aAAa,CAACa,SAAS,GACrCb,aAAa,CAACa,SAAS,GACvB,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMQ,MAAM,GAAG;EACbC,IAAI,EAAEA,CAACC,MAAc,EAAEC,SAAiB,KAAK;IAC3C,OAAOP,SAAS,CAACK,IAAI,CAACC,MAAM,EAAEC,SAAS,CAAC;EAC1C,CAAC;EACDC,SAAS,EAAE,MAAOC,MAAc,IAAI;IAClC,IAAG;MACD,IAAIC,IAAI,GAAG,MAAMV,SAAS,CAACQ,SAAS,CAACC,MAAM,CAAC;MAC5CE,OAAO,CAACC,GAAG,CAAC,mBAAmB,EAACF,IAAI,CAAC;MAErC,MAAMnB,QAAQ,CAAC,YAAY,EAAEmB,IAAI,CAAC;MAClC,MAAMnB,QAAQ,CAAC,UAAU,EAAEsB,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC,CAACK,YAAY,CAAC;IAC3D,CAAC,QAAOC,GAAG,EAAC;MACVL,OAAO,CAACC,GAAG,CAACI,GAAG,CAAC;IAClB;IACA,OAAOhB,SAAS,CAACQ,SAAS,CAACC,MAAM,CAAC;EACpC,CAAC;EACDQ,UAAU,EAAEA,CAAC;IACXC,UAAU,GAAG,CAAC;IACdC,KAAK;IACLC,UAAU,GAAG;EAC+C,CAAC,GAAG,CAAC,CAAC,KAAK;IACvE,IAAIhC,QAAQ,CAACiC,EAAE,KAAK,KAAK,EAAE;MACzB,OAAOrB,SAAS,CAACiB,UAAU,CAACC,UAAU,EAAEC,KAAK,EAAEC,UAAU,CAAC;IAC5D,CAAC,MAAM;MACL,OAAOpB,SAAS,CAACiB,UAAU,CAACE,KAAK,EAAEC,UAAU,CAAC;IAChD;EACF,CAAC;EACDE,gBAAgB,EAAEA,CAAC;IACjBC,QAAQ,GAAG,IAAI;IACfC,YAAY,GAAG,IAAI;IACnBC,qBAAqB,GAAG,KAAK;IAC7BC,SAAS,GAAG;EAMd,CAAC,GAAG,CAAC,CAAC,KAAK;IACT,oBACE/B,IAAA,CAACH,eAAe;MAACC,IAAI,EAAEA,IAAK;MAAAkC,QAAA,eAC1BhC,IAAA,CAACN,IAAI;QAACuC,KAAK,EAAE;UAAEC,IAAI,EAAE,CAAC;UAAEC,cAAc,EAAE,QAAQ;UAAEC,UAAU,EAAE;QAAS,CAAE;QAAAJ,QAAA,eACvEhC,IAAA,CAACL,SAAS;UACRiC,QAAQ,EAAEA,QAAS;UACnBC,YAAY,EAAEA,YAAa;UAC3BC,qBAAqB,EAAEA,qBAAsB;UAC7CG,KAAK,EAAEF;QAAU,CAClB;MAAC,CACE;IAAC,CACQ,CAAC;EAEtB;AACF,CAAC;AAED,eAAetB,MAAM","ignoreList":[]}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { type TextStyle } from 'react-native';
|
3
|
+
interface MarqueeTextProps {
|
4
|
+
text: string;
|
5
|
+
speed?: number;
|
6
|
+
repeat?: number;
|
7
|
+
style?: TextStyle;
|
8
|
+
}
|
9
|
+
declare const MarqueeText: React.FC<MarqueeTextProps>;
|
10
|
+
export default MarqueeText;
|
11
|
+
//# sourceMappingURL=marquee.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"marquee.d.ts","sourceRoot":"","sources":["../../../../../../src/acmo/core/marquee.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAA0C,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtF,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsC3C,CAAC;AAaF,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAe,MAAM,UAAU,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface AutoScrollPagerWithIndicatorsProps {
|
3
|
+
totalPages: number;
|
4
|
+
delayInMillis?: number;
|
5
|
+
premiumColor?: string;
|
6
|
+
content: (index: number) => React.ReactNode;
|
7
|
+
}
|
8
|
+
declare const AutoScrollPagerWithIndicators: React.FC<AutoScrollPagerWithIndicatorsProps>;
|
9
|
+
export default AutoScrollPagerWithIndicators;
|
10
|
+
//# sourceMappingURL=auto_scroller.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auto_scroller.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/auto_scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,kCAAkC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CAC7C;AAED,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,kCAAkC,CAsD/E,CAAC;AAkBF,eAAe,6BAA6B,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
2
|
+
import { type ViewStyle } from 'react-native';
|
3
|
+
interface CustomCardProps {
|
4
|
+
children: ReactNode;
|
5
|
+
style?: ViewStyle;
|
6
|
+
}
|
7
|
+
declare const CustomCard: React.FC<CustomCardProps>;
|
8
|
+
export default CustomCard;
|
9
|
+
//# sourceMappingURL=custom_card.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAoBF,eAAe,UAAU,CAAC"}
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"my_games_button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/my_games_button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,kBAAkB;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAU/C,CAAC;AAoBF,eAAe,aAAa,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { type ViewStyle } from "react-native";
|
3
|
+
interface OfferInfoSectionProps {
|
4
|
+
details: TransformedCampaign;
|
5
|
+
premiumColor?: string;
|
6
|
+
style?: ViewStyle;
|
7
|
+
}
|
8
|
+
declare const OfferInfoSection: React.FC<OfferInfoSectionProps>;
|
9
|
+
export default OfferInfoSection;
|
10
|
+
//# sourceMappingURL=offer_info_section.d.ts.map
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"offer_info_section.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_info_section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA+D,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAQ3G,UAAU,qBAAqB;IAC7B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+DrD,CAAC;AAiEF,eAAe,gBAAgB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface PremiumHeaderSectionProps {
|
3
|
+
showMore?: boolean;
|
4
|
+
premiumColor?: string;
|
5
|
+
}
|
6
|
+
declare const PremiumHeaderSection: React.FC<PremiumHeaderSectionProps>;
|
7
|
+
export default PremiumHeaderSection;
|
8
|
+
//# sourceMappingURL=premium_header.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"premium_header.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,yBAAyB;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA4B7D,CAAC;AA0CF,eAAe,oBAAoB,CAAC"}
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"premium_option_1.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_option_1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,UAAU,mBAAmB;IAC3B,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkEjD,CAAC;AA4EF,eAAe,cAAc,CAAC"}
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"premium_option_2.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_option_2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,UAAU,mBAAmB;IAC3B,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0BjD,CAAC;AAyDF,eAAe,cAAc,CAAC"}
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"premium_option_3.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_option_3.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,mBAAmB;IAC3B,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgCjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"premium_option_4.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_option_4.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,UAAU,mBAAmB;IAC3B,IAAI,EAAE,mBAAmB,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgBjD,CAAC;AAkJF,eAAe,cAAc,CAAC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export declare const fetchCampaignsData: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: TransformedCampaign[]) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
|
2
|
+
//# sourceMappingURL=repository.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB,oBAEZ,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBAC1B,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,IAAI,YAC9C,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBACnB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CAwDd,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface TopOffersProps {
|
3
|
+
showMore?: boolean;
|
4
|
+
showMyOffers?: boolean;
|
5
|
+
showMyOffersEmptyView?: boolean;
|
6
|
+
style?: number;
|
7
|
+
}
|
8
|
+
declare const TopOffers: React.FC<TopOffersProps>;
|
9
|
+
export default TopOffers;
|
10
|
+
//# sourceMappingURL=top_offers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkFvC,CAAC;AAyBF,eAAe,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,SAAS,CAAC;AAkH3B,eAAe,IAAI,CAAC"}
|
@@ -1,3 +1,17 @@
|
|
1
|
-
declare const Tyrads:
|
1
|
+
declare const Tyrads: {
|
2
|
+
init: (apiKey: string, apiSecret: string) => any;
|
3
|
+
loginUser: (userId: string) => Promise<any>;
|
4
|
+
showOffers: ({ launchMode, route, campaignID, }?: {
|
5
|
+
launchMode?: number;
|
6
|
+
route?: string;
|
7
|
+
campaignID?: number;
|
8
|
+
}) => any;
|
9
|
+
topPremiumOffers: ({ showMore, showMyOffers, showMyOffersEmptyView, viewStyle, }?: {
|
10
|
+
showMore?: boolean;
|
11
|
+
showMyOffers?: boolean;
|
12
|
+
showMyOffersEmptyView?: boolean;
|
13
|
+
viewStyle?: number;
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
15
|
+
};
|
2
16
|
export default Tyrads;
|
3
17
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,MAAM;mBACK,MAAM,aAAa,MAAM;wBAGd,MAAM;sDAgB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;uFAY5D;QACD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CAcF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { type TextStyle } from 'react-native';
|
3
|
+
interface MarqueeTextProps {
|
4
|
+
text: string;
|
5
|
+
speed?: number;
|
6
|
+
repeat?: number;
|
7
|
+
style?: TextStyle;
|
8
|
+
}
|
9
|
+
declare const MarqueeText: React.FC<MarqueeTextProps>;
|
10
|
+
export default MarqueeText;
|
11
|
+
//# sourceMappingURL=marquee.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"marquee.d.ts","sourceRoot":"","sources":["../../../../../../src/acmo/core/marquee.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAA0C,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEtF,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsC3C,CAAC;AAaF,eAAe,WAAW,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAe,MAAM,UAAU,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
interface AutoScrollPagerWithIndicatorsProps {
|
3
|
+
totalPages: number;
|
4
|
+
delayInMillis?: number;
|
5
|
+
premiumColor?: string;
|
6
|
+
content: (index: number) => React.ReactNode;
|
7
|
+
}
|
8
|
+
declare const AutoScrollPagerWithIndicators: React.FC<AutoScrollPagerWithIndicatorsProps>;
|
9
|
+
export default AutoScrollPagerWithIndicators;
|
10
|
+
//# sourceMappingURL=auto_scroller.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auto_scroller.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/auto_scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,UAAU,kCAAkC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;CAC7C;AAED,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,kCAAkC,CAsD/E,CAAC;AAkBF,eAAe,6BAA6B,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
2
|
+
import { type ViewStyle } from 'react-native';
|
3
|
+
interface CustomCardProps {
|
4
|
+
children: ReactNode;
|
5
|
+
style?: ViewStyle;
|
6
|
+
}
|
7
|
+
declare const CustomCard: React.FC<CustomCardProps>;
|
8
|
+
export default CustomCard;
|
9
|
+
//# sourceMappingURL=custom_card.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAoBF,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"my_games_button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/my_games_button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,kBAAkB;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAU/C,CAAC;AAoBF,eAAe,aAAa,CAAC"}
|