@customerglu/react-native-customerglu 1.0.0
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/LICENSE +15 -0
- package/README.md +74 -0
- package/android/build.gradle +71 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +0 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/src/main/AndroidManifest.xml +11 -0
- package/android/src/main/java/com/reactnativerncustomerglu/Bannerwidget/Bannerwidget/BannerWidgetViewGroupManager.java +40 -0
- package/android/src/main/java/com/reactnativerncustomerglu/Bannerwidget/Bannerwidget/bannerWidget.java +44 -0
- package/android/src/main/java/com/reactnativerncustomerglu/Bannerwidget/wrapperview/WrapperView.java +61 -0
- package/android/src/main/java/com/reactnativerncustomerglu/RncustomergluModule.java +528 -0
- package/android/src/main/java/com/reactnativerncustomerglu/RncustomergluPackage.java +31 -0
- package/android/src/main/res/drawable/bottom_sheet_edges.xml +7 -0
- package/android/src/main/res/drawable/floating_close_layout.xml +10 -0
- package/android/src/main/res/drawable/ic_arrow_back.xml +5 -0
- package/android/src/main/res/drawable/ic_back.xml +10 -0
- package/android/src/main/res/drawable/ic_delete_bin.xml +5 -0
- package/android/src/main/res/drawable/ic_delete_bin_red.xml +5 -0
- package/android/src/main/res/drawable/ij.png +0 -0
- package/android/src/main/res/drawable/notification.png +0 -0
- package/android/src/main/res/drawable/progress_bg.xml +33 -0
- package/android/src/main/res/layout/activity_reward.xml +66 -0
- package/android/src/main/res/layout/banner_adapter.xml +44 -0
- package/android/src/main/res/layout/bannner.xml +14 -0
- package/android/src/main/res/layout/bottom_dialog.xml +37 -0
- package/android/src/main/res/layout/bottomsheet.xml +8 -0
- package/android/src/main/res/layout/customerbannermsg.xml +37 -0
- package/android/src/main/res/layout/detail_alert.xml +21 -0
- package/android/src/main/res/layout/floating_banner.xml +11 -0
- package/android/src/main/res/layout/floating_draggable_button.xml +17 -0
- package/android/src/main/res/layout/fragment_bottom_sheet_dialog.xml +21 -0
- package/android/src/main/res/layout/image_banner.xml +10 -0
- package/android/src/main/res/layout/middle_dialog.xml +42 -0
- package/android/src/main/res/layout/rewards.xml +31 -0
- package/android/src/main/res/layout/web_activity.xml +43 -0
- package/android/src/main/res/values/colors.xml +13 -0
- package/android/src/main/res/values/themes.xml +16 -0
- package/android/src/main/res/xml/provider_path.xml +4 -0
- package/ios/CustomPlayer.m +25 -0
- package/ios/Rncustomerglu-Bridging-Header.h +4 -0
- package/ios/Rncustomerglu.m +50 -0
- package/ios/Rncustomerglu.swift +341 -0
- package/ios/Rncustomerglu.xcodeproj/project.pbxproj +293 -0
- package/ios/Rncustomerglu.xcodeproj/project.xcworkspace/contents.xcworkspacedata +4 -0
- package/lib/commonjs/index.js +184 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/index.js +117 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/index.d.ts +35 -0
- package/package.json +157 -0
- package/react-native-rncustomerglu.podspec +24 -0
- package/src/index.tsx +146 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout
|
|
3
|
+
android:id="@+id/main"
|
|
4
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:background="@color/white"
|
|
7
|
+
android:layout_height="match_parent">
|
|
8
|
+
|
|
9
|
+
<androidx.appcompat.widget.Toolbar
|
|
10
|
+
android:id="@+id/toolbar"
|
|
11
|
+
android:layout_width="match_parent"
|
|
12
|
+
android:layout_height="50dp"
|
|
13
|
+
android:layout_marginTop="10dp"
|
|
14
|
+
>
|
|
15
|
+
<RelativeLayout
|
|
16
|
+
|
|
17
|
+
android:layout_width="match_parent"
|
|
18
|
+
android:layout_height="wrap_content">
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<ImageView
|
|
22
|
+
android:id="@+id/back"
|
|
23
|
+
android:layout_width="35dp"
|
|
24
|
+
android:layout_height="35dp"
|
|
25
|
+
android:layout_centerVertical="true"
|
|
26
|
+
|
|
27
|
+
android:paddingRight="10dp"
|
|
28
|
+
android:src="@drawable/ic_back" />
|
|
29
|
+
|
|
30
|
+
<TextView
|
|
31
|
+
android:layout_width="match_parent"
|
|
32
|
+
android:layout_height="wrap_content"
|
|
33
|
+
android:layout_toRightOf="@+id/back"
|
|
34
|
+
android:paddingLeft="5dp"
|
|
35
|
+
android:text="Campaigns"
|
|
36
|
+
android:textColor="@color/glu_black"
|
|
37
|
+
android:textSize="24sp" />
|
|
38
|
+
|
|
39
|
+
</RelativeLayout>
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
</androidx.appcompat.widget.Toolbar>
|
|
43
|
+
<ProgressBar
|
|
44
|
+
android:id="@+id/pg"
|
|
45
|
+
android:layout_width="70dp"
|
|
46
|
+
android:layout_height="70dp"
|
|
47
|
+
android:layout_centerInParent="true"/>
|
|
48
|
+
|
|
49
|
+
<TextView
|
|
50
|
+
android:id="@+id/label"
|
|
51
|
+
android:visibility="gone"
|
|
52
|
+
android:layout_width="match_parent"
|
|
53
|
+
android:layout_height="wrap_content"
|
|
54
|
+
android:layout_centerInParent="true"
|
|
55
|
+
android:gravity="center"
|
|
56
|
+
android:textColor="@color/glu_black"
|
|
57
|
+
android:textSize="20dp"
|
|
58
|
+
android:text="No Campaigns runnings"/>
|
|
59
|
+
|
|
60
|
+
<androidx.recyclerview.widget.RecyclerView
|
|
61
|
+
android:id="@+id/rewards"
|
|
62
|
+
android:layout_width="match_parent"
|
|
63
|
+
android:layout_height="wrap_content"
|
|
64
|
+
android:layout_below="@id/toolbar" />
|
|
65
|
+
|
|
66
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
|
|
3
|
+
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
5
|
+
android:id="@+id/card"
|
|
6
|
+
android:layout_width="match_parent"
|
|
7
|
+
android:layout_height="match_parent"
|
|
8
|
+
android:layout_marginEnd="10dp"
|
|
9
|
+
android:background="@color/white"
|
|
10
|
+
app:cardCornerRadius="5dp">
|
|
11
|
+
|
|
12
|
+
<RelativeLayout
|
|
13
|
+
android:layout_width="match_parent"
|
|
14
|
+
android:layout_height="match_parent">
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
<ImageView
|
|
18
|
+
android:id="@+id/img"
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="match_parent"
|
|
21
|
+
android:scaleType="fitXY">
|
|
22
|
+
|
|
23
|
+
</ImageView>
|
|
24
|
+
|
|
25
|
+
<WebView
|
|
26
|
+
android:id="@+id/web"
|
|
27
|
+
android:layout_width="match_parent"
|
|
28
|
+
android:layout_height="match_parent"
|
|
29
|
+
android:visibility="gone">
|
|
30
|
+
|
|
31
|
+
<Button
|
|
32
|
+
android:visibility="gone"
|
|
33
|
+
android:layout_width="match_parent"
|
|
34
|
+
android:layout_height="wrap_content"
|
|
35
|
+
android:id="@+id/my_button"
|
|
36
|
+
android:background="@android:color/transparent" />
|
|
37
|
+
|
|
38
|
+
</WebView>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
</RelativeLayout>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</androidx.cardview.widget.CardView>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
android:layout_width="120dp"
|
|
5
|
+
android:layout_height="100dp">
|
|
6
|
+
|
|
7
|
+
<ImageView
|
|
8
|
+
android:layout_width="match_parent"
|
|
9
|
+
android:layout_height="match_parent"
|
|
10
|
+
android:scaleType="fitXY"
|
|
11
|
+
android:id="@+id/baner"
|
|
12
|
+
android:contentDescription="TODO" />
|
|
13
|
+
|
|
14
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout android:id="@+id/main"
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
android:background="@color/glu_black"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent"
|
|
7
|
+
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
8
|
+
|
|
9
|
+
<androidx.cardview.widget.CardView
|
|
10
|
+
android:id="@+id/card"
|
|
11
|
+
android:layout_width="match_parent"
|
|
12
|
+
android:layout_height="200dp"
|
|
13
|
+
android:layout_alignParentBottom="true"
|
|
14
|
+
app:cardCornerRadius="15dp"
|
|
15
|
+
>
|
|
16
|
+
<RelativeLayout
|
|
17
|
+
android:layout_width="match_parent"
|
|
18
|
+
android:layout_height="match_parent">
|
|
19
|
+
|
|
20
|
+
<WebView
|
|
21
|
+
android:id="@+id/web_notification"
|
|
22
|
+
android:layout_width="match_parent"
|
|
23
|
+
android:layout_height="match_parent" />
|
|
24
|
+
|
|
25
|
+
<ProgressBar
|
|
26
|
+
android:id="@+id/pg"
|
|
27
|
+
android:layout_width="70dp"
|
|
28
|
+
android:layout_height="70dp"
|
|
29
|
+
android:indeterminateDrawable="@drawable/progress_bg"
|
|
30
|
+
android:layout_centerInParent="true"/>
|
|
31
|
+
|
|
32
|
+
</RelativeLayout>
|
|
33
|
+
</androidx.cardview.widget.CardView>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout
|
|
3
|
+
android:id="@+id/main"
|
|
4
|
+
android:background="@color/glu_black"
|
|
5
|
+
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="match_parent">
|
|
7
|
+
|
|
8
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
|
|
3
|
+
<!--<androidx.cardview.widget.CardView-->
|
|
4
|
+
<!-- xmlns:android="http://schemas.android.com/apk/res/android"-->
|
|
5
|
+
<!-- android:layout_width="wrap_content"-->
|
|
6
|
+
<!-- android:layout_height="wrap_content"-->
|
|
7
|
+
<!-- android:id="@+id/card"-->
|
|
8
|
+
<!-- xmlns:app="http://schemas.android.com/apk/res-auto"-->
|
|
9
|
+
<!-- android:background="@color/transparent"-->
|
|
10
|
+
<!-- app:cardCornerRadius="10dp"-->
|
|
11
|
+
<!-- android:layout_margin="5dp"-->
|
|
12
|
+
<!-- >-->
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<RelativeLayout
|
|
17
|
+
android:id="@+id/main"
|
|
18
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
19
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
20
|
+
android:layout_width="match_parent"
|
|
21
|
+
android:layout_height="120dp"
|
|
22
|
+
android:background="@color/transparent"
|
|
23
|
+
android:layout_marginHorizontal="5dp"
|
|
24
|
+
>
|
|
25
|
+
|
|
26
|
+
<androidx.recyclerview.widget.RecyclerView
|
|
27
|
+
android:id="@+id/recycler"
|
|
28
|
+
android:layout_width="match_parent"
|
|
29
|
+
android:layout_height="match_parent" />
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
</RelativeLayout>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<!--</androidx.cardview.widget.CardView>-->
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:layout_width="match_parent"
|
|
4
|
+
android:layout_height="300dp"
|
|
5
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
6
|
+
app:cardCornerRadius="10dp">
|
|
7
|
+
|
|
8
|
+
<WebView
|
|
9
|
+
android:layout_width="match_parent"
|
|
10
|
+
android:layout_height="match_parent"
|
|
11
|
+
android:id="@+id/notification_web"/>
|
|
12
|
+
|
|
13
|
+
<ProgressBar
|
|
14
|
+
android:id="@+id/pg"
|
|
15
|
+
android:layout_width="70dp"
|
|
16
|
+
android:layout_height="70dp"
|
|
17
|
+
android:indeterminateDrawable="@drawable/progress_bg"
|
|
18
|
+
android:layout_centerInParent="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
</androidx.cardview.widget.CardView>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:layout_width="70dp"
|
|
4
|
+
android:layout_height="70dp"
|
|
5
|
+
android:focusableInTouchMode="true">
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<ImageView
|
|
10
|
+
android:id="@+id/floating_img"
|
|
11
|
+
android:layout_width="150dp"
|
|
12
|
+
android:layout_height="50dp"
|
|
13
|
+
android:src="@drawable/ij"
|
|
14
|
+
android:scaleType="fitXY"
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout
|
|
3
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="200dp">
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
<WebView
|
|
9
|
+
android:id="@+id/web"
|
|
10
|
+
android:layout_width="match_parent"
|
|
11
|
+
android:layout_height="match_parent" />
|
|
12
|
+
|
|
13
|
+
<ProgressBar
|
|
14
|
+
android:id="@+id/pg"
|
|
15
|
+
android:layout_width="70dp"
|
|
16
|
+
android:layout_height="70dp"
|
|
17
|
+
android:indeterminateDrawable="@drawable/progress_bg"
|
|
18
|
+
android:layout_centerInParent="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<merge xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
|
|
3
|
+
<androidx.recyclerview.widget.RecyclerView
|
|
4
|
+
android:id="@+id/recycler"
|
|
5
|
+
android:layout_width="wrap_content"
|
|
6
|
+
android:layout_height="wrap_content"
|
|
7
|
+
android:layout_margin="5dp" />
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
</merge>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
<RelativeLayout android:id="@+id/main"
|
|
5
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
6
|
+
android:background="@color/glu_black"
|
|
7
|
+
android:layout_width="match_parent"
|
|
8
|
+
android:layout_height="match_parent"
|
|
9
|
+
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<androidx.cardview.widget.CardView
|
|
13
|
+
android:id="@+id/card"
|
|
14
|
+
android:layout_width="match_parent"
|
|
15
|
+
android:layout_height="match_parent"
|
|
16
|
+
android:elevation="10dp"
|
|
17
|
+
app:cardCornerRadius="20dp">
|
|
18
|
+
<RelativeLayout
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="match_parent">
|
|
21
|
+
|
|
22
|
+
<WebView
|
|
23
|
+
android:id="@+id/web_notification"
|
|
24
|
+
android:layout_width="match_parent"
|
|
25
|
+
android:layout_height="match_parent" />
|
|
26
|
+
<ProgressBar
|
|
27
|
+
android:id="@+id/pg"
|
|
28
|
+
android:layout_width="70dp"
|
|
29
|
+
android:layout_height="70dp"
|
|
30
|
+
android:layout_centerInParent="true"
|
|
31
|
+
android:indeterminateDrawable="@drawable/progress_bg" />
|
|
32
|
+
|
|
33
|
+
</RelativeLayout>
|
|
34
|
+
</androidx.cardview.widget.CardView>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
|
|
3
|
+
<androidx.cardview.widget.CardView
|
|
4
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="150dp"
|
|
7
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
8
|
+
android:background="@color/white"
|
|
9
|
+
app:cardCornerRadius="10dp"
|
|
10
|
+
android:layout_margin="10dp">
|
|
11
|
+
|
|
12
|
+
<RelativeLayout
|
|
13
|
+
android:layout_width="match_parent"
|
|
14
|
+
android:layout_height="match_parent">
|
|
15
|
+
|
|
16
|
+
<ImageView
|
|
17
|
+
android:id="@+id/img"
|
|
18
|
+
android:layout_width="match_parent"
|
|
19
|
+
android:layout_height="match_parent"
|
|
20
|
+
android:contentDescription="TODO"
|
|
21
|
+
android:scaleType="fitXY"
|
|
22
|
+
>
|
|
23
|
+
|
|
24
|
+
</ImageView>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</RelativeLayout>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</androidx.cardview.widget.CardView>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:layout_width="match_parent"
|
|
4
|
+
android:layout_height="match_parent"
|
|
5
|
+
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
6
|
+
|
|
7
|
+
<WebView
|
|
8
|
+
android:id="@+id/web"
|
|
9
|
+
android:layout_width="match_parent"
|
|
10
|
+
android:layout_height="match_parent" />
|
|
11
|
+
|
|
12
|
+
<!-- <androidx.appcompat.widget.Toolbar-->
|
|
13
|
+
<!-- android:id="@+id/toolbar"-->
|
|
14
|
+
<!-- android:layout_width="match_parent"-->
|
|
15
|
+
<!-- android:layout_height="50dp">-->
|
|
16
|
+
<!-- <RelativeLayout-->
|
|
17
|
+
<!-- android:background="@color/white"-->
|
|
18
|
+
<!-- android:layout_width="match_parent"-->
|
|
19
|
+
<!-- android:layout_height="wrap_content">-->
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<!-- <ImageView-->
|
|
23
|
+
<!-- android:id="@+id/back"-->
|
|
24
|
+
<!-- android:layout_width="35dp"-->
|
|
25
|
+
<!-- android:layout_height="35dp"-->
|
|
26
|
+
<!-- android:layout_centerVertical="true"-->
|
|
27
|
+
|
|
28
|
+
<!-- android:src="@drawable/ic_back" />-->
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
<!-- </RelativeLayout>-->
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
<!-- </androidx.appcompat.widget.Toolbar>-->
|
|
35
|
+
|
|
36
|
+
<ProgressBar
|
|
37
|
+
android:id="@+id/pg"
|
|
38
|
+
android:layout_width="70dp"
|
|
39
|
+
android:layout_height="70dp"
|
|
40
|
+
android:layout_centerInParent="true"/>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources>
|
|
3
|
+
<color name="purple_200">#FFBB86FC</color>
|
|
4
|
+
<color name="purple_500">#FF6200EE</color>
|
|
5
|
+
<color name="purple_700">#FF3700B3</color>
|
|
6
|
+
<color name="teal_200">#FF03DAC5</color>
|
|
7
|
+
<color name="teal_700">#FF018786</color>
|
|
8
|
+
<color name="glu_black">#ff010101</color>
|
|
9
|
+
<color name="blue">#4A4EF9</color>
|
|
10
|
+
<color name="transparent">#00050505</color>
|
|
11
|
+
<color name="full_transparent">#80101010</color>
|
|
12
|
+
<color name="white">#FFFFFFFF</color>
|
|
13
|
+
</resources>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
3
|
+
|
|
4
|
+
<style name="Theme.Transparent" parent="Theme.AppCompat.Light.NoActionBar">
|
|
5
|
+
<item name="android:windowIsTranslucent">true</item>
|
|
6
|
+
<item name="android:windowBackground">@android:color/transparent</item>
|
|
7
|
+
<item name="android:windowContentOverlay">@null</item>
|
|
8
|
+
<item name="android:windowNoTitle">true</item>
|
|
9
|
+
<item name="android:windowIsFloating">false</item>
|
|
10
|
+
<item name="android:backgroundDimEnabled">false</item>
|
|
11
|
+
<item name="android:statusBarColor" tools:targetApi="l">@color/transparent</item>
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
</style>
|
|
15
|
+
|
|
16
|
+
</resources>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// CustomPlayer.m
|
|
3
|
+
// CustomerRN_App
|
|
4
|
+
//
|
|
5
|
+
// Created by kapil on 01/07/22.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
#import "React/RCTViewManager.h"
|
|
10
|
+
#import "UIView+React.h"
|
|
11
|
+
|
|
12
|
+
@interface RCT_EXTERN_MODULE(BannerWidget, RCTViewManager)
|
|
13
|
+
RCT_EXPORT_VIEW_PROPERTY(bannerId, NSString)
|
|
14
|
+
// RCT_CUSTOM_VIEW_PROPERTY(name, NSString, BannerWidget)
|
|
15
|
+
// {
|
|
16
|
+
// NSLog(@"%@", json);
|
|
17
|
+
// }
|
|
18
|
+
//RCT_CUSTOM_VIEW_PROPERTY(src, NSString, NSObject) {
|
|
19
|
+
//// [self performSelector:@selector(setSrc:) withObject:@{@"view":view, @"json":json}];
|
|
20
|
+
// [self setValue:@"testets" forKey:@"setSrc"];
|
|
21
|
+
//}
|
|
22
|
+
|
|
23
|
+
//RCT_EXPORT_VIEW_PROPERTY(bannerId, NSString)
|
|
24
|
+
|
|
25
|
+
@end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
#import <React/RCTBridgeModule.h>
|
|
2
|
+
#import <Foundation/Foundation.h>
|
|
3
|
+
#import <React/RCTBridgeModule.h>
|
|
4
|
+
#import <React/RCTBridgeMethod.h>
|
|
5
|
+
#import <React/RCTEventEmitter.h>
|
|
6
|
+
#import <Foundation/NSString.h>
|
|
7
|
+
#import <Rncustomerglu-Bridging-Header.h>
|
|
8
|
+
#import <React/RCTDefines.h>
|
|
9
|
+
#import "React/RCTViewManager.h"
|
|
10
|
+
#import <React/RCTUIManager.h>
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@interface RCT_EXTERN_MODULE(Rncustomerglu, RCTEventEmitter)
|
|
14
|
+
RCT_EXTERN_METHOD(supportedEvents)
|
|
15
|
+
RCT_EXTERN_METHOD(registerDevice:(NSDictionary *)userdata resolver:(RCTPromiseResolveBlock)resolve
|
|
16
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
17
|
+
RCT_EXTERN_METHOD(dataClear)
|
|
18
|
+
RCT_EXTERN_METHOD(sendData:(NSDictionary *)property)
|
|
19
|
+
RCT_EXTERN_METHOD(openWallet:(BOOL *)bool)
|
|
20
|
+
RCT_EXTERN_METHOD(loadCampaignIdBy:(NSString *)id auto_close_webview:(BOOL *)bool)
|
|
21
|
+
RCT_EXTERN_METHOD(enableAnalytic:(BOOL *)bool)
|
|
22
|
+
RCT_EXTERN_METHOD(disableGluSdk:(BOOL *)bool)
|
|
23
|
+
RCT_EXTERN_METHOD(configureLoaderColour:(NSString *)colr)
|
|
24
|
+
RCT_EXTERN_METHOD(enablePrecaching)
|
|
25
|
+
RCT_EXTERN_METHOD(gluSDKDebuggingMode:(BOOL *)bool)
|
|
26
|
+
RCT_EXTERN_METHOD(enableEntryPoints:(BOOL *)bool)
|
|
27
|
+
RCT_EXTERN_METHOD(closeWebView:(BOOL *)bool (RCTResponseSenderBlock)callback)
|
|
28
|
+
RCT_EXTERN_METHOD(isFcmApn:(NSString *)fcm)
|
|
29
|
+
RCT_EXTERN_METHOD(configureSafeArea:(NSDictionary *)safe)
|
|
30
|
+
RCT_EXTERN_METHOD(SetDefaultBannerImage:(NSString *)url)
|
|
31
|
+
RCT_EXTERN_METHOD(UpdateProfile:(NSDictionary *)userdata resolver:(RCTPromiseResolveBlock)resolve
|
|
32
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
33
|
+
RCT_EXTERN_METHOD(DisplayCustomerGluNotification)
|
|
34
|
+
RCT_EXTERN_METHOD(CGApplication:(NSDictionary *)userInfo)
|
|
35
|
+
RCT_EXTERN_METHOD(DisplayBackGroundNotification:(NSDictionary *)obj auto_close_webview:(BOOL *)bool)
|
|
36
|
+
RCT_EXTERN_METHOD(GetRefferalId:(NSURL *)url resolver:(RCTPromiseResolveBlock)resolve
|
|
37
|
+
rejecter:(RCTPromiseRejectBlock)reject)
|
|
38
|
+
RCT_EXTERN_METHOD(LoadAllCampagins)
|
|
39
|
+
RCT_EXTERN_METHOD(LoadCampaginsByFilter:(NSDictionary *)obj)
|
|
40
|
+
RCT_EXTERN_METHOD(SetCurrentClassName:(NSString *)clName)
|
|
41
|
+
RCT_EXTERN_METHOD(OpenWalletWithUrl:(NSString *)url)
|
|
42
|
+
RCT_EXTERN_METHOD(configureWhiteListedDomains:(NSArray *)domain)
|
|
43
|
+
RCT_EXTERN_METHOD(configureDomainCodeMsg:(NSDictionary *)codemsg)
|
|
44
|
+
RCT_EXTERN_METHOD(catchAnalyticsNotification:(NSDictionary *)notification (RCTResponseSenderBlock)callback)
|
|
45
|
+
RCT_EXTERN_METHOD(setApnFcmToken:(NSString *)apn fcmToken:(NSString *)fcm)
|
|
46
|
+
RCT_EXTERN_METHOD(getBannerHeight)
|
|
47
|
+
|
|
48
|
+
@end
|
|
49
|
+
|
|
50
|
+
|