react-native-flyy 1.3.1 → 1.4.3
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/.gradle/6.3/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/6.3/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/6.3/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/6.3/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/caches/build_file_checksums.ser +0 -0
- package/android/.idea/libraries/Gradle__com_github_roid_software_flyy_sdk_1_4_29_jar.xml +9 -0
- package/android/.idea/libraries/{Gradle__com_github_roid_software_flyy_sdk_flyy_1_4_11_aar.xml → Gradle__com_github_roid_software_flyy_sdk_flyy_1_4_29_aar.xml} +4 -4
- package/android/.idea/libraries/{Gradle__com_github_roid_software_flyy_sdk_scratchoff_1_4_11_aar.xml → Gradle__com_github_roid_software_flyy_sdk_scratchoff_1_4_29_aar.xml} +4 -4
- package/android/.idea/modules/android.iml +29 -54
- package/android/.idea/workspace.xml +1 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/reactnativeflyy/FlyyModule.kt +45 -2
- package/ios/ReactNativeFlyy.h +0 -1
- package/ios/ReactNativeFlyy.m +279 -77
- package/package.json +1 -1
- package/react-native-flyy.podspec +1 -2
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_0_0_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_2_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_1_0_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0_jar.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_github_roid_software_flyy_sdk_1_4_11_jar.xml +0 -9
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_3_50_jar.xml +0 -13
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_3_50_jar.xml +0 -13
- package/ios/WebViewController.h +0 -22
- package/ios/WebViewController.m +0 -152
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.annotation:annotation:1.0.0@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.0.0/45599f2cd5965ac05a1488fa2a5c0cdd7c499ead/annotation-1.0.0.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC>
|
|
7
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.0.0/3ad9d83e5da3918fd93775080f401222f2d4d26a/annotation-1.0.0-javadoc.jar!/" />
|
|
8
|
-
</JAVADOC>
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.0.0/c5897dbbda33e66ca6f3224a2534891bbfcbda5a/annotation-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.appcompat:appcompat:1.0.2@aar">
|
|
3
|
-
<ANNOTATIONS>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/b5308e61f35d493e278e1d7b7182e276/appcompat-1.0.2/annotations.zip!/" />
|
|
5
|
-
</ANNOTATIONS>
|
|
6
|
-
<CLASSES>
|
|
7
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/b5308e61f35d493e278e1d7b7182e276/appcompat-1.0.2/AndroidManifest.xml" />
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/b5308e61f35d493e278e1d7b7182e276/appcompat-1.0.2/jars/classes.jar!/" />
|
|
9
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/b5308e61f35d493e278e1d7b7182e276/appcompat-1.0.2/res" />
|
|
10
|
-
</CLASSES>
|
|
11
|
-
<JAVADOC />
|
|
12
|
-
<SOURCES>
|
|
13
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.appcompat/appcompat/1.0.2/e38e7c85994112b70d4548176128c72b8477c110/appcompat-1.0.2-sources.jar!/" />
|
|
14
|
-
</SOURCES>
|
|
15
|
-
</library>
|
|
16
|
-
</component>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.arch.core:core-common:2.0.0@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.arch.core/core-common/2.0.0/bb21b9a11761451b51624ac428d1f1bb5deeac38/core-common-2.0.0.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC />
|
|
7
|
-
<SOURCES>
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.arch.core/core-common/2.0.0/645b95386a07be66eef0bfe7007535e3f95ec642/core-common-2.0.0-sources.jar!/" />
|
|
9
|
-
</SOURCES>
|
|
10
|
-
</library>
|
|
11
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.arch.core:core-runtime:2.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/f3fabf340354dd4436e944308c32ec69/core-runtime-2.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/f3fabf340354dd4436e944308c32ec69/core-runtime-2.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/f3fabf340354dd4436e944308c32ec69/core-runtime-2.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.arch.core/core-runtime/2.0.0/bc41b287c95bc50a3cd27cb1b7cfb301805ba7f1/core-runtime-2.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.asynclayoutinflater:asynclayoutinflater:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/816d7b61bc3a78aaf2c74118acff70e3/asynclayoutinflater-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/816d7b61bc3a78aaf2c74118acff70e3/asynclayoutinflater-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/816d7b61bc3a78aaf2c74118acff70e3/asynclayoutinflater-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.asynclayoutinflater/asynclayoutinflater/1.0.0/ac4d50701fce5c88dcc514f58e695cd32f05134c/asynclayoutinflater-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.collection:collection:1.0.0@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.collection/collection/1.0.0/42858b26cafdaa69b6149f45dfc2894007bc2c7a/collection-1.0.0.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC />
|
|
7
|
-
<SOURCES>
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.collection/collection/1.0.0/b08973c283f1a0b29fce8b45a1e31e16a36611e9/collection-1.0.0-sources.jar!/" />
|
|
9
|
-
</SOURCES>
|
|
10
|
-
</library>
|
|
11
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.coordinatorlayout:coordinatorlayout:1.0.0@aar">
|
|
3
|
-
<ANNOTATIONS>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5adc7449ca24c339ffc0a52721956171/coordinatorlayout-1.0.0/annotations.zip!/" />
|
|
5
|
-
</ANNOTATIONS>
|
|
6
|
-
<CLASSES>
|
|
7
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5adc7449ca24c339ffc0a52721956171/coordinatorlayout-1.0.0/AndroidManifest.xml" />
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5adc7449ca24c339ffc0a52721956171/coordinatorlayout-1.0.0/jars/classes.jar!/" />
|
|
9
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5adc7449ca24c339ffc0a52721956171/coordinatorlayout-1.0.0/res" />
|
|
10
|
-
</CLASSES>
|
|
11
|
-
<JAVADOC />
|
|
12
|
-
<SOURCES>
|
|
13
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.coordinatorlayout/coordinatorlayout/1.0.0/4325b3c4422ad58201ed8dc15ae56bda9accedf2/coordinatorlayout-1.0.0-sources.jar!/" />
|
|
14
|
-
</SOURCES>
|
|
15
|
-
</library>
|
|
16
|
-
</component>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.core:core:1.0.1@aar">
|
|
3
|
-
<ANNOTATIONS>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/8b936130d71559c8a05276d7c65faa2b/core-1.0.1/annotations.zip!/" />
|
|
5
|
-
</ANNOTATIONS>
|
|
6
|
-
<CLASSES>
|
|
7
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/8b936130d71559c8a05276d7c65faa2b/core-1.0.1/AndroidManifest.xml" />
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/8b936130d71559c8a05276d7c65faa2b/core-1.0.1/jars/classes.jar!/" />
|
|
9
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/8b936130d71559c8a05276d7c65faa2b/core-1.0.1/res" />
|
|
10
|
-
</CLASSES>
|
|
11
|
-
<JAVADOC />
|
|
12
|
-
<SOURCES>
|
|
13
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.core/core/1.0.1/ae10d2e1965b944830c2c2aaf154765ceb32e0bc/core-1.0.1-sources.jar!/" />
|
|
14
|
-
</SOURCES>
|
|
15
|
-
</library>
|
|
16
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.documentfile:documentfile:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c496be557f2ace15c8a02cb886c899b5/documentfile-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c496be557f2ace15c8a02cb886c899b5/documentfile-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c496be557f2ace15c8a02cb886c899b5/documentfile-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.documentfile/documentfile/1.0.0/a1bed5cf96db96bd06a2feade98fe55653811dc8/documentfile-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.fragment:fragment:1.0.0@aar">
|
|
3
|
-
<ANNOTATIONS>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/418e4a12f5da4e6b0a4c778a4506a3c4/fragment-1.0.0/annotations.zip!/" />
|
|
5
|
-
</ANNOTATIONS>
|
|
6
|
-
<CLASSES>
|
|
7
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/418e4a12f5da4e6b0a4c778a4506a3c4/fragment-1.0.0/AndroidManifest.xml" />
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/418e4a12f5da4e6b0a4c778a4506a3c4/fragment-1.0.0/jars/classes.jar!/" />
|
|
9
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/418e4a12f5da4e6b0a4c778a4506a3c4/fragment-1.0.0/res" />
|
|
10
|
-
</CLASSES>
|
|
11
|
-
<JAVADOC />
|
|
12
|
-
<SOURCES>
|
|
13
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.fragment/fragment/1.0.0/bcd167792ec03e930d5c8345c99ae07b2627de84/fragment-1.0.0-sources.jar!/" />
|
|
14
|
-
</SOURCES>
|
|
15
|
-
</library>
|
|
16
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.legacy:legacy-support-core-ui:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5f0d1efd78ae531cfb3ee161b2af45e6/legacy-support-core-ui-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5f0d1efd78ae531cfb3ee161b2af45e6/legacy-support-core-ui-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/5f0d1efd78ae531cfb3ee161b2af45e6/legacy-support-core-ui-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.legacy/legacy-support-core-ui/1.0.0/f6044eaebe354c778f1f147ddb9e92a3f1e22fc7/legacy-support-core-ui-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.legacy:legacy-support-core-utils:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/4ca58d67fb2e2da353b82ff0345ea138/legacy-support-core-utils-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/4ca58d67fb2e2da353b82ff0345ea138/legacy-support-core-utils-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/4ca58d67fb2e2da353b82ff0345ea138/legacy-support-core-utils-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.legacy/legacy-support-core-utils/1.0.0/46c37f178088153618cfb0afef08ec96c48f93cb/legacy-support-core-utils-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.lifecycle:lifecycle-common:2.0.0@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.0.0/e070ffae07452331bc5684734fce6831d531785c/lifecycle-common-2.0.0.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC />
|
|
7
|
-
<SOURCES>
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.0.0/cb4562c8927ab69f2a8ef49267b90753207df0c3/lifecycle-common-2.0.0-sources.jar!/" />
|
|
9
|
-
</SOURCES>
|
|
10
|
-
</library>
|
|
11
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.lifecycle:lifecycle-livedata:2.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/e72007dfcc4c6f2950d203cfc6939007/lifecycle-livedata-2.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/e72007dfcc4c6f2950d203cfc6939007/lifecycle-livedata-2.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/e72007dfcc4c6f2950d203cfc6939007/lifecycle-livedata-2.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-livedata/2.0.0/740ce61935bd789380c01178bd8ce402402ebd2f/lifecycle-livedata-2.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.lifecycle:lifecycle-livedata-core:2.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/dcf652da71795d8b764f983d284179e4/lifecycle-livedata-core-2.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/dcf652da71795d8b764f983d284179e4/lifecycle-livedata-core-2.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/dcf652da71795d8b764f983d284179e4/lifecycle-livedata-core-2.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-livedata-core/2.0.0/c158207594782b42f3a2e08a5a029eb3319e4404/lifecycle-livedata-core-2.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.lifecycle:lifecycle-runtime:2.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/e72e402d7bbef031d2b0cc5f1b051dfd/lifecycle-runtime-2.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/e72e402d7bbef031d2b0cc5f1b051dfd/lifecycle-runtime-2.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/e72e402d7bbef031d2b0cc5f1b051dfd/lifecycle-runtime-2.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-runtime/2.0.0/94562933879240f04fc2dea3f1841171b164c748/lifecycle-runtime-2.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.lifecycle:lifecycle-viewmodel:2.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/544f526d5e9707460fbd7b4a0925fbaf/lifecycle-viewmodel-2.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/544f526d5e9707460fbd7b4a0925fbaf/lifecycle-viewmodel-2.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/544f526d5e9707460fbd7b4a0925fbaf/lifecycle-viewmodel-2.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-viewmodel/2.0.0/41b56105d14b1151a963444875cab191271f43db/lifecycle-viewmodel-2.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.localbroadcastmanager:localbroadcastmanager:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c4cf6fa8982d2941d50a0f86462467c5/localbroadcastmanager-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c4cf6fa8982d2941d50a0f86462467c5/localbroadcastmanager-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/c4cf6fa8982d2941d50a0f86462467c5/localbroadcastmanager-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.localbroadcastmanager/localbroadcastmanager/1.0.0/3930e99159fd6b7f1d2e7d5fe9af0924ca1faf9/localbroadcastmanager-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.print:print:1.0.0@aar">
|
|
3
|
-
<ANNOTATIONS>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/0af9721eb4455081be02771534e3ad62/print-1.0.0/annotations.zip!/" />
|
|
5
|
-
</ANNOTATIONS>
|
|
6
|
-
<CLASSES>
|
|
7
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/0af9721eb4455081be02771534e3ad62/print-1.0.0/AndroidManifest.xml" />
|
|
8
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/0af9721eb4455081be02771534e3ad62/print-1.0.0/jars/classes.jar!/" />
|
|
9
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/0af9721eb4455081be02771534e3ad62/print-1.0.0/res" />
|
|
10
|
-
</CLASSES>
|
|
11
|
-
<JAVADOC />
|
|
12
|
-
<SOURCES>
|
|
13
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.print/print/1.0.0/71fc2d9acf7cce6b96230c5af263268b1664914a/print-1.0.0-sources.jar!/" />
|
|
14
|
-
</SOURCES>
|
|
15
|
-
</library>
|
|
16
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.slidingpanelayout:slidingpanelayout:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/d5080e575e9670332f82cf854051d27e/slidingpanelayout-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/d5080e575e9670332f82cf854051d27e/slidingpanelayout-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/d5080e575e9670332f82cf854051d27e/slidingpanelayout-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.slidingpanelayout/slidingpanelayout/1.0.0/f3f2e4fded24d5969a86e1974ad7e96975d970a0/slidingpanelayout-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.vectordrawable:vectordrawable:1.0.1@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/abe60b975bb0c628ba46245e9619e7c7/vectordrawable-1.0.1/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/abe60b975bb0c628ba46245e9619e7c7/vectordrawable-1.0.1/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/abe60b975bb0c628ba46245e9619e7c7/vectordrawable-1.0.1/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.vectordrawable/vectordrawable/1.0.1/583e25ffe77f2e89c6f3218a46657a500938b83f/vectordrawable-1.0.1-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.vectordrawable:vectordrawable-animated:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/64d80603489db6ce877bcbd63501ec69/vectordrawable-animated-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/64d80603489db6ce877bcbd63501ec69/vectordrawable-animated-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/64d80603489db6ce877bcbd63501ec69/vectordrawable-animated-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.vectordrawable/vectordrawable-animated/1.0.0/24f92bcc89d979cd8b99ae40def4e395850a6466/vectordrawable-animated-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: androidx.versionedparcelable:versionedparcelable:1.0.0@aar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/50749100cc81cd38a57902c6c0405eb8/versionedparcelable-1.0.0/AndroidManifest.xml" />
|
|
5
|
-
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/50749100cc81cd38a57902c6c0405eb8/versionedparcelable-1.0.0/jars/classes.jar!/" />
|
|
6
|
-
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/50749100cc81cd38a57902c6c0405eb8/versionedparcelable-1.0.0/res" />
|
|
7
|
-
</CLASSES>
|
|
8
|
-
<JAVADOC />
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/androidx.versionedparcelable/versionedparcelable/1.0.0/df4c3c5d517f6a49017612e6b4dfdd007e7cc9b8/versionedparcelable-1.0.0-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: com.github.roid-software:flyy-sdk:1.4.11@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/com.github.roid-software/flyy-sdk/1.4.11/8d1831f97f65afbe0b552dc17e94f7a9567b84ea/flyy-sdk-1.4.11.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC />
|
|
7
|
-
<SOURCES />
|
|
8
|
-
</library>
|
|
9
|
-
</component>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: org.jetbrains.kotlin:kotlin-stdlib:1.3.50@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.50/b529d1738c7e98bbfa36a4134039528f2ce78ebf/kotlin-stdlib-1.3.50.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC>
|
|
7
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.50/acd7ffcfdebdbf05b2edba3615968b33241063ea/kotlin-stdlib-1.3.50-javadoc.jar!/" />
|
|
8
|
-
</JAVADOC>
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.50/bc0c767786c4a3c042a364e69d3f3dd5ff5253a5/kotlin-stdlib-1.3.50-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_3_50_jar.xml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<component name="libraryTable">
|
|
2
|
-
<library name="Gradle: org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50@jar">
|
|
3
|
-
<CLASSES>
|
|
4
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.50/3d9cd3e1bc7b92e95f43d45be3bfbcf38e36ab87/kotlin-stdlib-common-1.3.50.jar!/" />
|
|
5
|
-
</CLASSES>
|
|
6
|
-
<JAVADOC>
|
|
7
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.50/acd7ffcfdebdbf05b2edba3615968b33241063ea/kotlin-stdlib-common-1.3.50-javadoc.jar!/" />
|
|
8
|
-
</JAVADOC>
|
|
9
|
-
<SOURCES>
|
|
10
|
-
<root url="jar://$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.50/8ac406cf33e942265c4abb33ee0acdee79292dd6/kotlin-stdlib-common-1.3.50-sources.jar!/" />
|
|
11
|
-
</SOURCES>
|
|
12
|
-
</library>
|
|
13
|
-
</component>
|
package/ios/WebViewController.h
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// WebViewController.h
|
|
3
|
-
// Flyy
|
|
4
|
-
//
|
|
5
|
-
// Created by Pooja Deshpande on 08/01/21.
|
|
6
|
-
// Copyright © 2021 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <UIKit/UIKit.h>
|
|
10
|
-
|
|
11
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
-
|
|
13
|
-
@interface WebViewController : UIViewController
|
|
14
|
-
|
|
15
|
-
@property (strong,nonatomic) NSString *pageLoadingTitle;
|
|
16
|
-
@property (strong,nonatomic) NSString *pageUrl;
|
|
17
|
-
@property (strong, nonatomic) NSString *segmentId;
|
|
18
|
-
@property (strong, nonatomic) NSString *themeColor;
|
|
19
|
-
|
|
20
|
-
@end
|
|
21
|
-
|
|
22
|
-
NS_ASSUME_NONNULL_END
|
package/ios/WebViewController.m
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// WebViewController.m
|
|
3
|
-
// Flyy
|
|
4
|
-
//
|
|
5
|
-
// Created by Pooja Deshpande on 08/01/21.
|
|
6
|
-
// Copyright © 2021 Facebook. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "WebViewController.h"
|
|
10
|
-
#import <WebKit/WebKit.h>
|
|
11
|
-
#import "FlyyFramework/FlyyFramework.h"
|
|
12
|
-
|
|
13
|
-
@interface WebViewController ()<WKUIDelegate,WKNavigationDelegate,WKScriptMessageHandler>
|
|
14
|
-
|
|
15
|
-
@property (strong,nonatomic) WKWebView *wkWebView;
|
|
16
|
-
@property (strong,nonatomic) UILabel *loadingOffer;
|
|
17
|
-
|
|
18
|
-
@end
|
|
19
|
-
|
|
20
|
-
@implementation WebViewController
|
|
21
|
-
|
|
22
|
-
- (void)viewDidLoad
|
|
23
|
-
{
|
|
24
|
-
[super viewDidLoad];
|
|
25
|
-
|
|
26
|
-
//TODO VISHAL
|
|
27
|
-
//self.view.backgroundColor = [self colorFromHexString: self.themeColor];
|
|
28
|
-
// self.title = @"Offer screen";
|
|
29
|
-
self.navigationController.navigationBarHidden = YES;
|
|
30
|
-
// self.navigationController.navigationBar.barTintColor = [self colorFromHexString: self.themeColor];
|
|
31
|
-
// self.navigationItem.hidesBackButton = YES;
|
|
32
|
-
|
|
33
|
-
// Add and load URL in Webview
|
|
34
|
-
|
|
35
|
-
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
|
|
36
|
-
self.wkWebView = [[WKWebView alloc] initWithFrame:self.view.frame configuration:configuration];
|
|
37
|
-
self.wkWebView.navigationDelegate = self;
|
|
38
|
-
|
|
39
|
-
if (@available(iOS 11.0, *)) {
|
|
40
|
-
self.wkWebView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
NSURL *nsurl=[NSURL URLWithString:self.pageUrl];
|
|
44
|
-
NSURLRequest *nsrequest=[NSURLRequest requestWithURL:nsurl];
|
|
45
|
-
[self.wkWebView loadRequest:nsrequest];
|
|
46
|
-
|
|
47
|
-
NSString *scriptSource = [NSString stringWithFormat:@"%@ %@ %s %@ %@",@"var meta = document.createElement('meta');",@"meta.name = 'viewport';","meta.content = 'width=device-width, initial-scale=1.0, maximum- scale=1.0, user-scalable=no';",@"var head = document.getElementsByTagName('head')[0];",@"head.appendChild(meta);"];
|
|
48
|
-
WKUserScript *userScript = [[WKUserScript alloc] initWithSource:scriptSource
|
|
49
|
-
injectionTime:WKUserScriptInjectionTimeAtDocumentEnd
|
|
50
|
-
forMainFrameOnly:YES];
|
|
51
|
-
[self.wkWebView.configuration.userContentController addUserScript:userScript];
|
|
52
|
-
[self.wkWebView.configuration.userContentController addScriptMessageHandler:self name:@"handleMessage"];
|
|
53
|
-
[self.view addSubview:self.wkWebView];
|
|
54
|
-
|
|
55
|
-
// Add label to show message
|
|
56
|
-
|
|
57
|
-
self.loadingOffer = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 200, 30)];
|
|
58
|
-
self.loadingOffer.text = self.pageLoadingTitle;
|
|
59
|
-
self.loadingOffer.font = [UIFont fontWithName:@"Helvetica" size:18.0];
|
|
60
|
-
self.loadingOffer.backgroundColor = [UIColor clearColor];
|
|
61
|
-
self.loadingOffer.textColor = [UIColor blackColor];
|
|
62
|
-
self.loadingOffer.textAlignment = NSTextAlignmentCenter;
|
|
63
|
-
[self.view addSubview:self.loadingOffer];
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
-(void) viewDidLayoutSubviews
|
|
68
|
-
{
|
|
69
|
-
self.loadingOffer.center = self.view.center;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
-(void)webView:(WKWebView *)webView didFailNavigation:(WKNavigation *)navigation withError:(NSError *)error
|
|
73
|
-
{
|
|
74
|
-
self.loadingOffer.text = @"";
|
|
75
|
-
self.loadingOffer.hidden = YES;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
-(void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
|
|
79
|
-
{
|
|
80
|
-
[self sendDataToJS];
|
|
81
|
-
self.loadingOffer.text = @"";
|
|
82
|
-
self.loadingOffer.hidden = YES;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
- (void)userContentController:(WKUserContentController *)userContentController didReceiveScriptMessage:(WKScriptMessage *)message
|
|
86
|
-
{
|
|
87
|
-
NSLog(@"userContentController:didReceiveScriptMessage: message=%@", message);
|
|
88
|
-
if ([message.name isEqualToString:@"handleMessage"])
|
|
89
|
-
{
|
|
90
|
-
if ([message.body isKindOfClass:[NSDictionary class]])
|
|
91
|
-
{
|
|
92
|
-
NSDictionary *body = message.body;
|
|
93
|
-
NSString *param = body[@"action"];
|
|
94
|
-
if ([param isEqualToString:@"go-back"])
|
|
95
|
-
{
|
|
96
|
-
if(self.wkWebView.canGoBack)
|
|
97
|
-
{
|
|
98
|
-
[self.wkWebView goBack];
|
|
99
|
-
}
|
|
100
|
-
else
|
|
101
|
-
{
|
|
102
|
-
[self.navigationController popViewControllerAnimated:YES];
|
|
103
|
-
}
|
|
104
|
-
} else if ([param isEqualToString:@"quiz-list"])
|
|
105
|
-
{
|
|
106
|
-
Flyy *flyyInstance = [[Flyy alloc] init];
|
|
107
|
-
[flyyInstance openFlyyQuizListViewControllerWithNavigationController:self.navigationController];
|
|
108
|
-
} else if ([param isEqualToString:@"quiz-details"])
|
|
109
|
-
{
|
|
110
|
-
Flyy *flyyInstance = [[Flyy alloc] init];
|
|
111
|
-
[flyyInstance openFlyyQuizViewControllerWithNavigationController:self.navigationController];
|
|
112
|
-
}
|
|
113
|
-
else if ([param isEqualToString:@"share"])
|
|
114
|
-
{
|
|
115
|
-
NSString *shareUrl = body[@"share_url"];
|
|
116
|
-
NSString *shareMessage = body[@"message"];
|
|
117
|
-
NSString *shareWith = body[@"share_from"];
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
NSString * title =[NSString stringWithFormat:shareMessage,shareUrl];
|
|
121
|
-
NSArray* dataToShare = @[title];
|
|
122
|
-
UIActivityViewController* activityViewController =[[UIActivityViewController alloc] initWithActivityItems:dataToShare applicationActivities:nil];
|
|
123
|
-
activityViewController.excludedActivityTypes = @[UIActivityTypeAirDrop];
|
|
124
|
-
[self presentViewController:activityViewController animated:YES completion:^{}];
|
|
125
|
-
}
|
|
126
|
-
else
|
|
127
|
-
{
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
-(void) sendDataToJS
|
|
135
|
-
{
|
|
136
|
-
Flyy *flyyInstance = [[Flyy alloc] init];
|
|
137
|
-
|
|
138
|
-
NSString *jsData = [NSString stringWithFormat:@"handleSDKMessage('%@')",[flyyInstance getHeadersDataForWebViewWithSegmentId:self.segmentId]];
|
|
139
|
-
[self.wkWebView evaluateJavaScript:jsData completionHandler:^(NSString *result, NSError * _Nullable error) {
|
|
140
|
-
NSLog(@"%@",result);
|
|
141
|
-
}];
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
- (UIColor *)colorFromHexString:(NSString *)hexString {
|
|
145
|
-
unsigned rgbValue = 0;
|
|
146
|
-
NSScanner *scanner = [NSScanner scannerWithString:hexString];
|
|
147
|
-
[scanner setScanLocation:1]; // bypass '#' character
|
|
148
|
-
[scanner scanHexInt:&rgbValue];
|
|
149
|
-
return [UIColor colorWithRed:((rgbValue & 0xFF0000) >> 16)/255.0 green:((rgbValue & 0xFF00) >> 8)/255.0 blue:(rgbValue & 0xFF)/255.0 alpha:1.0];
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
@end
|