react-native-unit-components 1.0.0 → 1.0.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/src/main/java/com/unitreactnativecomponents/UnitAddToWalletButtonViewManager.kt +27 -0
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsEvent.kt +21 -0
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsPackage.kt +2 -1
- package/android/src/main/java/com/unitreactnativecomponents/visapresentation/UNGooglePayView.kt +197 -0
- package/android/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/android/src/main/res/drawable/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable/un_black_googlepay_button_background.xml +6 -0
- package/android/src/main/res/drawable/un_black_googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/drawable/un_black_googlepay_button_content.xml +48 -0
- package/android/src/main/res/drawable/un_black_googlepay_button_no_shadow_background.xml +6 -0
- package/android/src/main/res/drawable/un_black_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/drawable/un_black_googlepay_button_overlay.xml +12 -0
- package/android/src/main/res/drawable/un_border.xml +6 -0
- package/android/src/main/res/drawable/un_condensed_googlepay.xml +27 -0
- package/android/src/main/res/drawable/un_googlepay_button_background.xml +18 -0
- package/android/src/main/res/drawable/un_googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/drawable/un_googlepay_button_background_image_focused.9.png +0 -0
- package/android/src/main/res/drawable/un_googlepay_button_background_image_pressed.9.png +0 -0
- package/android/src/main/res/drawable/un_googlepay_button_content.xml +48 -0
- package/android/src/main/res/drawable/un_googlepay_button_no_shadow_background.xml +18 -0
- package/android/src/main/res/drawable/un_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/drawable/un_googlepay_button_no_shadow_background_image_focused.9.png +0 -0
- package/android/src/main/res/drawable/un_googlepay_button_no_shadow_background_image_pressed.9.png +0 -0
- package/android/src/main/res/drawable/un_googlepay_button_overlay.xml +11 -0
- package/android/src/main/res/drawable/un_ic_launcher_foreground.xml +30 -0
- package/android/src/main/res/drawable/un_ic_unit_logo.xml +25 -0
- package/android/src/main/res/drawable/un_ic_visa.xml +13 -0
- package/android/src/main/res/drawable-bg/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-bg/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ca/un_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-ca/un_black_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-cs/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-cs/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-da/un_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-da/un_black_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-de/un_add_to_googlepay_button_content.xml +60 -0
- package/android/src/main/res/drawable-de/un_black_add_to_googlepay_button_content.xml +60 -0
- package/android/src/main/res/drawable-el/un_add_to_googlepay_button_content.xml +67 -0
- package/android/src/main/res/drawable-el/un_black_add_to_googlepay_button_content.xml +67 -0
- package/android/src/main/res/drawable-es/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-es/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-et/un_add_to_googlepay_button_content.xml +64 -0
- package/android/src/main/res/drawable-et/un_black_add_to_googlepay_button_content.xml +64 -0
- package/android/src/main/res/drawable-fi/un_add_to_googlepay_button_content.xml +39 -0
- package/android/src/main/res/drawable-fi/un_black_add_to_googlepay_button_content.xml +39 -0
- package/android/src/main/res/drawable-fr/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-fr/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-hr/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-hr/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-hu/un_add_to_googlepay_button_content.xml +64 -0
- package/android/src/main/res/drawable-hu/un_black_add_to_googlepay_button_content.xml +64 -0
- package/android/src/main/res/drawable-in/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-in/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-it/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-it/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-iw/un_add_to_googlepay_button_content.xml +41 -0
- package/android/src/main/res/drawable-iw/un_black_add_to_googlepay_button_content.xml +41 -0
- package/android/src/main/res/drawable-ja/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ja/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ko/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ko/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-lt/un_add_to_googlepay_button_content.xml +70 -0
- package/android/src/main/res/drawable-lt/un_black_add_to_googlepay_button_content.xml +70 -0
- package/android/src/main/res/drawable-lv/un_add_to_googlepay_button_content.xml +61 -0
- package/android/src/main/res/drawable-lv/un_black_add_to_googlepay_button_content.xml +61 -0
- package/android/src/main/res/drawable-ms/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ms/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-nb/un_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-nb/un_black_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-nl/un_add_to_googlepay_button_content.xml +58 -0
- package/android/src/main/res/drawable-nl/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-pl/un_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-pl/un_black_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-pt/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-pt/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ro/un_add_to_googlepay_button_content.xml +58 -0
- package/android/src/main/res/drawable-ro/un_black_add_to_googlepay_button_content.xml +58 -0
- package/android/src/main/res/drawable-ru/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-ru/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sk/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sk/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sl/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sl/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sr/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sr/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-sv/un_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-sv/un_black_add_to_googlepay_button_content.xml +30 -0
- package/android/src/main/res/drawable-th/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-th/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-tr/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-tr/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-uk/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-uk/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-v21/un_black_googlepay_button_background.xml +7 -0
- package/android/src/main/res/drawable-v21/un_black_googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/drawable-v21/un_black_googlepay_button_no_shadow_background.xml +7 -0
- package/android/src/main/res/drawable-v21/un_black_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/drawable-v24/ic_launcher_background.xml +170 -0
- package/android/src/main/res/drawable-v24/un_border.xml +6 -0
- package/android/src/main/res/drawable-v24/un_ic_launcher_foreground.xml +30 -0
- package/android/src/main/res/drawable-v24/un_ic_unit_logo.xml +25 -0
- package/android/src/main/res/drawable-v24/un_ic_visa.xml +13 -0
- package/android/src/main/res/drawable-zh/un_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/drawable-zh/un_black_add_to_googlepay_button_content.xml +54 -0
- package/android/src/main/res/layout/un_black_add_to_googlepay_button.xml +32 -0
- package/android/src/main/res/layout/un_view_google_push_provisioning.xml +45 -0
- package/android/src/main/res/layout/un_white_add_to_googlepay_button.xml +31 -0
- package/android/src/main/res/layout/un_white_add_to_googlepay_button_no_shadow.xml +31 -0
- package/android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/android/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-xhdpi/black_googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/black_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/googlepay_button_background_image_focused.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/googlepay_button_background_image_pressed.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/googlepay_button_no_shadow_background_image_focused.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/googlepay_button_no_shadow_background_image_pressed.9.png +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-xhdpi/white_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/black_googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/black_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/googlepay_button_background_image_focused.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/googlepay_button_background_image_pressed.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/googlepay_button_no_shadow_background_image_focused.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/googlepay_button_no_shadow_background_image_pressed.9.png +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/black_googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/black_googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/googlepay_button_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/googlepay_button_background_image_focused.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/googlepay_button_background_image_pressed.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/googlepay_button_no_shadow_background_image.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/googlepay_button_no_shadow_background_image_focused.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/googlepay_button_no_shadow_background_image_pressed.9.png +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/android/src/main/res/values/colors.xml +14 -0
- package/android/src/main/res/values/googlepay_strings.xml +7 -0
- package/android/src/main/res/values/strings.xml +4 -0
- package/android/src/main/res/values/themes.xml +16 -0
- package/android/src/main/res/values-night/themes.xml +16 -0
- package/ios/UnitReactNativeComponents.xcodeproj/project.pbxproj +8 -8
- package/ios/UnitReactNativeComponentsViewManager.m +3 -2
- package/ios/UnitReactNativeComponentsViewManager.swift +39 -25
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +1 -1
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js +39 -6
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js +7 -6
- package/lib/commonjs/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/commonjs/messages/webMessages/pageMessage.js.map +1 -1
- package/lib/commonjs/nativeComponent/UNNativeAddToWalletButton.js +13 -0
- package/lib/commonjs/nativeComponent/UNNativeAddToWalletButton.js.map +1 -0
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/commonjs/webComponent/WebComponent.js +14 -2
- package/lib/commonjs/webComponent/WebComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +1 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +1 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js +37 -5
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.js +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/helpers/BottomSheet/BottomSheet.js +7 -6
- package/lib/module/helpers/BottomSheet/BottomSheet.js.map +1 -1
- package/lib/module/messages/webMessages/pageMessage.js.map +1 -1
- package/lib/module/nativeComponent/UNNativeAddToWalletButton.js +4 -0
- package/lib/module/nativeComponent/UNNativeAddToWalletButton.js.map +1 -0
- package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/module/webComponent/WebComponent.js +14 -2
- package/lib/module/webComponent/WebComponent.js.map +1 -1
- package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +6 -0
- package/lib/typescript/helpers/BottomSheet/BottomSheet.d.ts +2 -0
- package/lib/typescript/nativeComponent/UNNativeAddToWalletButton.d.ts +6 -0
- package/lib/typescript/unitSdkManager/UnitSdkManager.d.ts +1 -1
- package/lib/typescript/webComponent/WebComponent.d.ts +3 -2
- package/package.json +1 -1
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +1 -1
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +1 -1
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +35 -4
- package/src/components/UNCardComponent/UNCardComponent.tsx +1 -1
- package/src/helpers/BottomSheet/BottomSheet.tsx +7 -5
- package/src/messages/webMessages/pageMessage.ts +1 -1
- package/src/nativeComponent/UNNativeAddToWalletButton.tsx +12 -0
- package/src/unitSdkManager/UnitSdkManager.ts +1 -1
- package/src/webComponent/WebComponent.tsx +16 -4
- package/android/src/main/java/com/unitreactnativecomponents/UnitReactNativeComponentsViewManager.kt +0 -19
- package/lib/commonjs/nativeComponenet/NativeComponentExample.js +0 -19
- package/lib/commonjs/nativeComponenet/NativeComponentExample.js.map +0 -1
- package/lib/module/nativeComponenet/NativeComponentExample.js +0 -10
- package/lib/module/nativeComponenet/NativeComponentExample.js.map +0 -1
- package/lib/typescript/nativeComponenet/NativeComponentExample.d.ts +0 -7
- package/src/nativeComponenet/NativeComponentExample.tsx +0 -26
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="89dp"
|
|
3
|
+
android:height="17dp"
|
|
4
|
+
android:viewportWidth="89"
|
|
5
|
+
android:viewportHeight="17">
|
|
6
|
+
<path
|
|
7
|
+
android:pathData="M3.892,3.816L6.944,3.816C6.944,3.816 6.944,4.278 6.93,4.446C6.818,10.494 6.72,12.566 6.286,13.196C6.006,13.602 5.74,13.742 5.292,13.812C4.9,13.868 4.284,13.868 3.64,13.84C3.626,13.448 3.486,12.888 3.262,12.538C3.878,12.566 4.438,12.58 4.676,12.58C4.9,12.58 5.026,12.552 5.152,12.342C5.446,11.964 5.558,10.13 5.67,5.09L3.85,5.09C3.724,8.828 3.248,12.062 1.4,14.106C1.19,13.812 0.742,13.378 0.434,13.182C2.086,11.362 2.478,8.478 2.576,5.09L0.798,5.09L0.798,3.816L2.604,3.816C2.618,3.046 2.618,2.262 2.618,1.45L3.906,1.45C3.906,2.248 3.906,3.046 3.892,3.816ZM9.17,11.614L11.466,11.614L11.466,4.18L9.17,4.18L9.17,11.614ZM7.924,2.92L12.782,2.92L12.782,13.756L11.466,13.756L11.466,12.86L9.17,12.86L9.17,13.868L7.924,13.868L7.924,2.92ZM27.422,7.554L21.542,7.554L21.542,8.954L21.808,8.52C23.278,8.926 25.392,9.64 26.484,10.158L25.798,11.334C24.846,10.844 23.012,10.144 21.542,9.668L21.542,14.092L20.17,14.092L20.17,7.554L14.92,7.554L14.92,6.266L20.17,6.266L20.17,1.254L21.542,1.254L21.542,3.116L25.91,3.116L25.91,4.362L21.542,4.362L21.542,6.266L27.422,6.266L27.422,7.554ZM33.228,11.908L36.14,11.544L36.182,12.748C33.634,13.112 30.932,13.476 29.07,13.728L28.874,12.426C29.714,12.342 30.778,12.216 31.94,12.076L31.94,9.906L29.448,9.906L29.448,8.744L31.94,8.744L31.94,7.204L33.228,7.204L33.228,8.744L35.692,8.744L35.692,9.906L33.228,9.906L33.228,11.908ZM33.34,4.348L34.306,3.83C35.118,4.782 36.056,6.07 36.434,6.924L35.412,7.526C35.314,7.288 35.174,7.022 35.006,6.728C32.864,6.868 30.666,6.98 29.084,7.05L28.986,5.818L30.246,5.776C30.568,5.02 30.876,4.096 31.1,3.312L29.028,3.312L29.028,2.15L36.126,2.15L36.126,3.312L32.57,3.312C32.248,4.11 31.898,4.992 31.548,5.734C32.416,5.706 33.354,5.678 34.306,5.636C33.998,5.188 33.662,4.74 33.34,4.348ZM37.918,2.934L37.918,10.662L36.672,10.662L36.672,2.934L37.918,2.934ZM39.892,1.632L41.166,1.632L41.166,12.454C41.166,13.252 40.998,13.644 40.494,13.868C40.004,14.064 39.136,14.106 37.988,14.106C37.932,13.742 37.736,13.14 37.554,12.762C38.436,12.79 39.29,12.79 39.57,12.79C39.808,12.776 39.892,12.706 39.892,12.454L39.892,1.632Z"
|
|
8
|
+
android:strokeWidth="1"
|
|
9
|
+
android:fillColor="#3C4043"
|
|
10
|
+
android:fillType="evenOdd"
|
|
11
|
+
android:strokeColor="#00000000"/>
|
|
12
|
+
<path
|
|
13
|
+
android:pathData="M67.526,2.6348L67.526,6.7179L70.0439,6.7179C70.6438,6.7179 71.1398,6.5163 71.5322,6.1131C71.9348,5.7109 72.1367,5.2312 72.1367,4.6759C72.1367,4.1318 71.9348,3.6577 71.5322,3.2545C71.1398,2.841 70.6438,2.6339 70.0439,2.6339L67.526,2.6339L67.526,2.6348ZM67.526,8.1551L67.526,12.8914L66.0218,12.8914L66.0218,1.1976L70.0112,1.1976C71.0249,1.1976 71.8854,1.5354 72.5945,2.2102C73.3139,2.8849 73.6736,3.7071 73.6736,4.6759C73.6736,5.667 73.3139,6.4948 72.5945,7.1584C71.8965,7.8228 71.0351,8.1542 70.0112,8.1542L67.526,8.1542L67.526,8.1551Z"
|
|
14
|
+
android:strokeWidth="1"
|
|
15
|
+
android:fillColor="#5F6368"
|
|
16
|
+
android:fillType="evenOdd"
|
|
17
|
+
android:strokeColor="#00000000"/>
|
|
18
|
+
<path
|
|
19
|
+
android:pathData="M75.1936,10.4416C75.1936,10.8336 75.3599,11.1602 75.6926,11.4215C76.0251,11.6828 76.4147,11.8135 76.8614,11.8135C77.4938,11.8135 78.0572,11.5792 78.5533,11.1117C79.0495,10.6432 79.297,10.0935 79.297,9.4626C78.828,9.0921 78.174,8.9073 77.335,8.9073C76.7241,8.9073 76.2149,9.0547 75.8066,9.3487C75.3982,9.6426 75.1936,10.0058 75.1936,10.4416M77.1397,4.6273C78.2515,4.6273 79.1288,4.9241 79.7726,5.5177C80.4154,6.1112 80.7367,6.925 80.7367,7.9591L80.7367,12.8914L79.298,12.8914L79.298,11.7808L79.2325,11.7808C78.6112,12.6953 77.7825,13.1527 76.7474,13.1527C75.8645,13.1527 75.1255,12.8914 74.5321,12.3688C73.938,11.8462 73.6409,11.1929 73.6409,10.4089C73.6409,9.5811 73.9538,8.9231 74.5807,8.4332C75.2076,7.9432 76.0439,7.6978 77.0903,7.6978C77.9834,7.6978 78.7196,7.8611 79.297,8.1877L79.297,7.8443C79.297,7.3217 79.0896,6.8784 78.6758,6.5135C78.2609,6.1485 77.7769,5.9666 77.221,5.9666C76.3811,5.9666 75.7169,6.3203 75.2264,7.0286L73.9015,6.1952C74.6321,5.1499 75.7112,4.6273 77.1397,4.6273"
|
|
20
|
+
android:strokeWidth="1"
|
|
21
|
+
android:fillColor="#5F6368"
|
|
22
|
+
android:fillType="evenOdd"
|
|
23
|
+
android:strokeColor="#00000000"/>
|
|
24
|
+
<path
|
|
25
|
+
android:pathData="M88.993,4.8886l-5.0198,11.5305l-1.5529,0l1.864,-4.0345l-3.3028,-7.496l1.635,0l2.3871,5.7489l0.0327,0l2.3217,-5.7489z"
|
|
26
|
+
android:strokeWidth="1"
|
|
27
|
+
android:fillColor="#5F6368"
|
|
28
|
+
android:fillType="evenOdd"
|
|
29
|
+
android:strokeColor="#00000000"/>
|
|
30
|
+
<path
|
|
31
|
+
android:pathData="M61.448,7.1341C61.448,6.6609 61.4078,6.2045 61.3321,5.7678L54.9883,5.7678L54.9883,8.3557L58.6218,8.3557C58.4657,9.1993 57.9939,9.9171 57.2783,10.3977L57.2783,12.0785L59.4468,12.0785C60.7164,10.9082 61.448,9.1789 61.448,7.1341"
|
|
32
|
+
android:strokeWidth="1"
|
|
33
|
+
android:fillColor="#4285F4"
|
|
34
|
+
android:fillType="evenOdd"
|
|
35
|
+
android:strokeColor="#00000000"/>
|
|
36
|
+
<path
|
|
37
|
+
android:pathData="M54.9883,13.7006C56.8036,13.7006 58.3321,13.1051 59.4467,12.0785L57.2783,10.3977C56.6747,10.8037 55.8974,11.0407 54.9883,11.0407C53.2337,11.0407 51.7445,9.8592 51.2119,8.2671L48.9781,8.2671L48.9781,9.9983C50.0852,12.1933 52.3602,13.7006 54.9883,13.7006"
|
|
38
|
+
android:strokeWidth="1"
|
|
39
|
+
android:fillColor="#34A853"
|
|
40
|
+
android:fillType="evenOdd"
|
|
41
|
+
android:strokeColor="#00000000"/>
|
|
42
|
+
<path
|
|
43
|
+
android:pathData="M51.212,8.267C51.0756,7.8611 51.0008,7.428 51.0008,6.981C51.0008,6.534 51.0756,6.1009 51.212,5.695L51.212,3.9637L48.9781,3.9637C48.5203,4.8709 48.2615,5.8956 48.2615,6.981C48.2615,8.0664 48.5203,9.0912 48.9781,9.9983L51.212,8.267Z"
|
|
44
|
+
android:strokeWidth="1"
|
|
45
|
+
android:fillColor="#FABB05"
|
|
46
|
+
android:fillType="evenOdd"
|
|
47
|
+
android:strokeColor="#00000000"/>
|
|
48
|
+
<path
|
|
49
|
+
android:pathData="M54.9883,2.9213C55.9796,2.9213 56.8681,3.2619 57.5688,3.9292L57.5688,3.9302L59.4888,2.0123C58.3228,0.9278 56.8027,0.2615 54.9883,0.2615C52.3602,0.2615 50.0852,1.7687 48.9781,3.9638L51.2119,5.695C51.7445,4.1028 53.2337,2.9213 54.9883,2.9213"
|
|
50
|
+
android:strokeWidth="1"
|
|
51
|
+
android:fillColor="#E94235"
|
|
52
|
+
android:fillType="evenOdd"
|
|
53
|
+
android:strokeColor="#00000000"/>
|
|
54
|
+
</vector>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
+
android:width="89dp"
|
|
3
|
+
android:height="17dp"
|
|
4
|
+
android:viewportWidth="89"
|
|
5
|
+
android:viewportHeight="17">
|
|
6
|
+
<path
|
|
7
|
+
android:pathData="M3.892,3.816L6.944,3.816C6.944,3.816 6.944,4.278 6.93,4.446C6.818,10.494 6.72,12.566 6.286,13.196C6.006,13.602 5.74,13.742 5.292,13.812C4.9,13.868 4.284,13.868 3.64,13.84C3.626,13.448 3.486,12.888 3.262,12.538C3.878,12.566 4.438,12.58 4.676,12.58C4.9,12.58 5.026,12.552 5.152,12.342C5.446,11.964 5.558,10.13 5.67,5.09L3.85,5.09C3.724,8.828 3.248,12.062 1.4,14.106C1.19,13.812 0.742,13.378 0.434,13.182C2.086,11.362 2.478,8.478 2.576,5.09L0.798,5.09L0.798,3.816L2.604,3.816C2.618,3.046 2.618,2.262 2.618,1.45L3.906,1.45C3.906,2.248 3.906,3.046 3.892,3.816ZM9.17,11.614L11.466,11.614L11.466,4.18L9.17,4.18L9.17,11.614ZM7.924,2.92L12.782,2.92L12.782,13.756L11.466,13.756L11.466,12.86L9.17,12.86L9.17,13.868L7.924,13.868L7.924,2.92ZM27.422,7.554L21.542,7.554L21.542,8.954L21.808,8.52C23.278,8.926 25.392,9.64 26.484,10.158L25.798,11.334C24.846,10.844 23.012,10.144 21.542,9.668L21.542,14.092L20.17,14.092L20.17,7.554L14.92,7.554L14.92,6.266L20.17,6.266L20.17,1.254L21.542,1.254L21.542,3.116L25.91,3.116L25.91,4.362L21.542,4.362L21.542,6.266L27.422,6.266L27.422,7.554ZM33.228,11.908L36.14,11.544L36.182,12.748C33.634,13.112 30.932,13.476 29.07,13.728L28.874,12.426C29.714,12.342 30.778,12.216 31.94,12.076L31.94,9.906L29.448,9.906L29.448,8.744L31.94,8.744L31.94,7.204L33.228,7.204L33.228,8.744L35.692,8.744L35.692,9.906L33.228,9.906L33.228,11.908ZM33.34,4.348L34.306,3.83C35.118,4.782 36.056,6.07 36.434,6.924L35.412,7.526C35.314,7.288 35.174,7.022 35.006,6.728C32.864,6.868 30.666,6.98 29.084,7.05L28.986,5.818L30.246,5.776C30.568,5.02 30.876,4.096 31.1,3.312L29.028,3.312L29.028,2.15L36.126,2.15L36.126,3.312L32.57,3.312C32.248,4.11 31.898,4.992 31.548,5.734C32.416,5.706 33.354,5.678 34.306,5.636C33.998,5.188 33.662,4.74 33.34,4.348ZM37.918,2.934L37.918,10.662L36.672,10.662L36.672,2.934L37.918,2.934ZM39.892,1.632L41.166,1.632L41.166,12.454C41.166,13.252 40.998,13.644 40.494,13.868C40.004,14.064 39.136,14.106 37.988,14.106C37.932,13.742 37.736,13.14 37.554,12.762C38.436,12.79 39.29,12.79 39.57,12.79C39.808,12.776 39.892,12.706 39.892,12.454L39.892,1.632Z"
|
|
8
|
+
android:strokeWidth="1"
|
|
9
|
+
android:fillColor="#FFFFFF"
|
|
10
|
+
android:fillType="evenOdd"
|
|
11
|
+
android:strokeColor="#00000000"/>
|
|
12
|
+
<path
|
|
13
|
+
android:pathData="M67.526,2.6348L67.526,6.7179L70.0439,6.7179C70.6438,6.7179 71.1398,6.5163 71.5322,6.1131C71.9348,5.7109 72.1367,5.2312 72.1367,4.6759C72.1367,4.1318 71.9348,3.6577 71.5322,3.2545C71.1398,2.841 70.6438,2.6339 70.0439,2.6339L67.526,2.6339L67.526,2.6348ZM67.526,8.1551L67.526,12.8914L66.0218,12.8914L66.0218,1.1976L70.0112,1.1976C71.0249,1.1976 71.8854,1.5354 72.5945,2.2102C73.3139,2.8849 73.6736,3.7071 73.6736,4.6759C73.6736,5.667 73.3139,6.4948 72.5945,7.1584C71.8965,7.8228 71.0351,8.1542 70.0112,8.1542L67.526,8.1542L67.526,8.1551Z"
|
|
14
|
+
android:strokeWidth="1"
|
|
15
|
+
android:fillColor="#FFFFFF"
|
|
16
|
+
android:fillType="evenOdd"
|
|
17
|
+
android:strokeColor="#00000000"/>
|
|
18
|
+
<path
|
|
19
|
+
android:pathData="M75.1936,10.4416C75.1936,10.8336 75.3599,11.1602 75.6926,11.4215C76.0251,11.6828 76.4147,11.8135 76.8614,11.8135C77.4938,11.8135 78.0572,11.5792 78.5533,11.1117C79.0495,10.6432 79.297,10.0935 79.297,9.4626C78.828,9.0921 78.174,8.9073 77.335,8.9073C76.7241,8.9073 76.2149,9.0547 75.8066,9.3487C75.3982,9.6426 75.1936,10.0058 75.1936,10.4416M77.1397,4.6273C78.2515,4.6273 79.1288,4.9241 79.7726,5.5177C80.4154,6.1112 80.7367,6.925 80.7367,7.9591L80.7367,12.8914L79.298,12.8914L79.298,11.7808L79.2325,11.7808C78.6112,12.6953 77.7825,13.1527 76.7474,13.1527C75.8645,13.1527 75.1255,12.8914 74.5321,12.3688C73.938,11.8462 73.6409,11.1929 73.6409,10.4089C73.6409,9.5811 73.9538,8.9231 74.5807,8.4332C75.2076,7.9432 76.0439,7.6978 77.0903,7.6978C77.9834,7.6978 78.7196,7.8611 79.297,8.1877L79.297,7.8443C79.297,7.3217 79.0896,6.8784 78.6758,6.5135C78.2609,6.1485 77.7769,5.9666 77.221,5.9666C76.3811,5.9666 75.7169,6.3203 75.2264,7.0286L73.9015,6.1952C74.6321,5.1499 75.7112,4.6273 77.1397,4.6273"
|
|
20
|
+
android:strokeWidth="1"
|
|
21
|
+
android:fillColor="#FFFFFF"
|
|
22
|
+
android:fillType="evenOdd"
|
|
23
|
+
android:strokeColor="#00000000"/>
|
|
24
|
+
<path
|
|
25
|
+
android:pathData="M88.993,4.8886l-5.0198,11.5305l-1.5529,0l1.864,-4.0345l-3.3028,-7.496l1.635,0l2.3871,5.7489l0.0327,0l2.3217,-5.7489z"
|
|
26
|
+
android:strokeWidth="1"
|
|
27
|
+
android:fillColor="#FFFFFF"
|
|
28
|
+
android:fillType="evenOdd"
|
|
29
|
+
android:strokeColor="#00000000"/>
|
|
30
|
+
<path
|
|
31
|
+
android:pathData="M61.448,7.1341C61.448,6.6609 61.4078,6.2045 61.3321,5.7678L54.9883,5.7678L54.9883,8.3557L58.6218,8.3557C58.4657,9.1993 57.9939,9.9171 57.2783,10.3977L57.2783,12.0785L59.4468,12.0785C60.7164,10.9082 61.448,9.1789 61.448,7.1341"
|
|
32
|
+
android:strokeWidth="1"
|
|
33
|
+
android:fillColor="#4285F4"
|
|
34
|
+
android:fillType="evenOdd"
|
|
35
|
+
android:strokeColor="#00000000"/>
|
|
36
|
+
<path
|
|
37
|
+
android:pathData="M54.9883,13.7006C56.8036,13.7006 58.3321,13.1051 59.4467,12.0785L57.2783,10.3977C56.6747,10.8037 55.8974,11.0407 54.9883,11.0407C53.2337,11.0407 51.7445,9.8592 51.2119,8.2671L48.9781,8.2671L48.9781,9.9983C50.0852,12.1933 52.3602,13.7006 54.9883,13.7006"
|
|
38
|
+
android:strokeWidth="1"
|
|
39
|
+
android:fillColor="#34A853"
|
|
40
|
+
android:fillType="evenOdd"
|
|
41
|
+
android:strokeColor="#00000000"/>
|
|
42
|
+
<path
|
|
43
|
+
android:pathData="M51.212,8.267C51.0756,7.8611 51.0008,7.428 51.0008,6.981C51.0008,6.534 51.0756,6.1009 51.212,5.695L51.212,3.9637L48.9781,3.9637C48.5203,4.8709 48.2615,5.8956 48.2615,6.981C48.2615,8.0664 48.5203,9.0912 48.9781,9.9983L51.212,8.267Z"
|
|
44
|
+
android:strokeWidth="1"
|
|
45
|
+
android:fillColor="#FABB05"
|
|
46
|
+
android:fillType="evenOdd"
|
|
47
|
+
android:strokeColor="#00000000"/>
|
|
48
|
+
<path
|
|
49
|
+
android:pathData="M54.9883,2.9213C55.9796,2.9213 56.8681,3.2619 57.5688,3.9292L57.5688,3.9302L59.4888,2.0123C58.3228,0.9278 56.8027,0.2615 54.9883,0.2615C52.3602,0.2615 50.0852,1.7687 48.9781,3.9638L51.2119,5.695C51.7445,4.1028 53.2337,2.9213 54.9883,2.9213"
|
|
50
|
+
android:strokeWidth="1"
|
|
51
|
+
android:fillColor="#E94235"
|
|
52
|
+
android:fillType="evenOdd"
|
|
53
|
+
android:strokeColor="#00000000"/>
|
|
54
|
+
</vector>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:clickable="true"
|
|
4
|
+
android:focusable="true"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="48sp"
|
|
7
|
+
android:background="@drawable/un_black_googlepay_button_no_shadow_background"
|
|
8
|
+
android:padding="2sp"
|
|
9
|
+
android:contentDescription="@string/add_to_googlepay_button_content_description">
|
|
10
|
+
<LinearLayout
|
|
11
|
+
android:duplicateParentState="true"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="match_parent"
|
|
14
|
+
android:weightSum="2"
|
|
15
|
+
android:gravity="center_vertical"
|
|
16
|
+
android:orientation="vertical">
|
|
17
|
+
<ImageView
|
|
18
|
+
android:layout_weight="1"
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="0dp"
|
|
21
|
+
android:scaleType="fitCenter"
|
|
22
|
+
android:duplicateParentState="true"
|
|
23
|
+
android:src="@drawable/un_black_add_to_googlepay_button_content"/>
|
|
24
|
+
</LinearLayout>
|
|
25
|
+
|
|
26
|
+
<ImageView
|
|
27
|
+
android:layout_width="match_parent"
|
|
28
|
+
android:layout_height="match_parent"
|
|
29
|
+
android:duplicateParentState="true"
|
|
30
|
+
android:scaleType="fitXY"
|
|
31
|
+
android:src="@drawable/un_black_googlepay_button_overlay" />
|
|
32
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<merge xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
xmlns:tools="http://schemas.android.com/tools"
|
|
4
|
+
android:layout_width="match_parent"
|
|
5
|
+
android:layout_height="match_parent">
|
|
6
|
+
|
|
7
|
+
<RelativeLayout
|
|
8
|
+
android:id="@+id/google_view_push_provisioning_layout"
|
|
9
|
+
android:layout_width="match_parent"
|
|
10
|
+
android:layout_height="match_parent"
|
|
11
|
+
android:layout_margin="10dp"
|
|
12
|
+
tools:layout_editor_absoluteX="149dp"
|
|
13
|
+
tools:layout_editor_absoluteY="-120dp"
|
|
14
|
+
>
|
|
15
|
+
|
|
16
|
+
<include
|
|
17
|
+
android:id="@+id/white_add_to_googlepay_button_no_shadow"
|
|
18
|
+
layout="@layout/un_white_add_to_googlepay_button_no_shadow"
|
|
19
|
+
android:layout_width="200dp"
|
|
20
|
+
android:layout_height="52dp"
|
|
21
|
+
android:layout_centerHorizontal="true"
|
|
22
|
+
android:visibility="invisible"
|
|
23
|
+
/>
|
|
24
|
+
|
|
25
|
+
<include
|
|
26
|
+
android:id="@+id/black_add_to_googlepay_button"
|
|
27
|
+
layout="@layout/un_black_add_to_googlepay_button"
|
|
28
|
+
android:layout_width="200dp"
|
|
29
|
+
android:layout_height="52dp"
|
|
30
|
+
android:layout_centerHorizontal="true"
|
|
31
|
+
android:visibility="invisible"
|
|
32
|
+
/>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
<include
|
|
36
|
+
android:id="@+id/white_add_to_googlepay_button"
|
|
37
|
+
layout="@layout/un_white_add_to_googlepay_button"
|
|
38
|
+
android:layout_width="200dp"
|
|
39
|
+
android:layout_height="52dp"
|
|
40
|
+
android:layout_centerHorizontal="true"
|
|
41
|
+
android:visibility="invisible" />
|
|
42
|
+
|
|
43
|
+
</RelativeLayout>
|
|
44
|
+
|
|
45
|
+
</merge>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:clickable="true"
|
|
4
|
+
android:focusable="true"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="48sp"
|
|
7
|
+
android:background="@drawable/un_googlepay_button_background"
|
|
8
|
+
android:padding="4sp"
|
|
9
|
+
android:contentDescription="@string/add_to_googlepay_button_content_description">
|
|
10
|
+
<LinearLayout
|
|
11
|
+
android:duplicateParentState="true"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="match_parent"
|
|
14
|
+
android:weightSum="2"
|
|
15
|
+
android:gravity="center_vertical"
|
|
16
|
+
android:orientation="vertical">
|
|
17
|
+
<ImageView
|
|
18
|
+
android:layout_weight="1"
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="0dp"
|
|
21
|
+
android:scaleType="fitCenter"
|
|
22
|
+
android:duplicateParentState="true"
|
|
23
|
+
android:src="@drawable/un_add_to_googlepay_button_content"/>
|
|
24
|
+
</LinearLayout>
|
|
25
|
+
<ImageView
|
|
26
|
+
android:layout_width="match_parent"
|
|
27
|
+
android:layout_height="match_parent"
|
|
28
|
+
android:scaleType="fitXY"
|
|
29
|
+
android:duplicateParentState="true"
|
|
30
|
+
android:src="@drawable/un_googlepay_button_overlay"/>
|
|
31
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
android:clickable="true"
|
|
4
|
+
android:focusable="true"
|
|
5
|
+
android:layout_width="match_parent"
|
|
6
|
+
android:layout_height="48sp"
|
|
7
|
+
android:background="@drawable/un_googlepay_button_no_shadow_background"
|
|
8
|
+
android:padding="2sp"
|
|
9
|
+
android:contentDescription="@string/add_to_googlepay_button_content_description">
|
|
10
|
+
<LinearLayout
|
|
11
|
+
android:duplicateParentState="true"
|
|
12
|
+
android:layout_width="match_parent"
|
|
13
|
+
android:layout_height="match_parent"
|
|
14
|
+
android:weightSum="2"
|
|
15
|
+
android:gravity="center_vertical"
|
|
16
|
+
android:orientation="vertical">
|
|
17
|
+
<ImageView
|
|
18
|
+
android:layout_weight="1"
|
|
19
|
+
android:layout_width="match_parent"
|
|
20
|
+
android:layout_height="0dp"
|
|
21
|
+
android:scaleType="fitCenter"
|
|
22
|
+
android:duplicateParentState="true"
|
|
23
|
+
android:src="@drawable/un_add_to_googlepay_button_content"/>
|
|
24
|
+
</LinearLayout>
|
|
25
|
+
<ImageView
|
|
26
|
+
android:layout_width="match_parent"
|
|
27
|
+
android:layout_height="match_parent"
|
|
28
|
+
android:scaleType="fitXY"
|
|
29
|
+
android:duplicateParentState="true"
|
|
30
|
+
android:src="@drawable/un_googlepay_button_overlay"/>
|
|
31
|
+
</RelativeLayout>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<background android:drawable="@drawable/ic_launcher_background" />
|
|
4
|
+
<foreground android:drawable="@drawable/un_ic_launcher_foreground" />
|
|
5
|
+
</adaptive-icon>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
|
3
|
+
<background android:drawable="@drawable/ic_launcher_background" />
|
|
4
|
+
<foreground android:drawable="@drawable/un_ic_launcher_foreground" />
|
|
5
|
+
</adaptive-icon>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/src/main/res/mipmap-xhdpi/black_googlepay_button_no_shadow_background_image.9.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/src/main/res/mipmap-xhdpi/googlepay_button_no_shadow_background_image_focused.9.png
ADDED
|
Binary file
|
package/android/src/main/res/mipmap-xhdpi/googlepay_button_no_shadow_background_image_pressed.9.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/src/main/res/mipmap-xhdpi/white_googlepay_button_no_shadow_background_image.9.png
ADDED
|
Binary file
|
|
Binary file
|
package/android/src/main/res/mipmap-xxhdpi/black_googlepay_button_no_shadow_background_image.9.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/src/main/res/mipmap-xxhdpi/googlepay_button_no_shadow_background_image_focused.9.png
ADDED
|
Binary file
|
package/android/src/main/res/mipmap-xxhdpi/googlepay_button_no_shadow_background_image_pressed.9.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/android/src/main/res/mipmap-xxxhdpi/black_googlepay_button_no_shadow_background_image.9.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
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="black">#FF000000</color>
|
|
9
|
+
<color name="white">#FFFFFFFF</color>
|
|
10
|
+
<color name="colorPrimary">#3F51B5</color>
|
|
11
|
+
<color name="colorPrimaryDark">#303F9F</color>
|
|
12
|
+
<color name="colorAccent">#FF4081</color>
|
|
13
|
+
|
|
14
|
+
</resources>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<resources>
|
|
3
|
+
<string name="googlepay_button_content_description">Google Pay</string>
|
|
4
|
+
<string name="add_to_googlepay_button_content_description">Add to Google Pay</string>
|
|
5
|
+
<string name="save_to_phone_button_content_description">Save to Phone</string>
|
|
6
|
+
<string name="buy_with_googlepay_button_content_description">Buy with Google Pay</string>
|
|
7
|
+
</resources>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
2
|
+
<!-- Base application theme. -->
|
|
3
|
+
<style name="Theme.UnitWalletDemo" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
|
4
|
+
<!-- Primary brand color. -->
|
|
5
|
+
<item name="colorPrimary">@color/purple_500</item>
|
|
6
|
+
<item name="colorPrimaryVariant">@color/purple_700</item>
|
|
7
|
+
<item name="colorOnPrimary">@color/white</item>
|
|
8
|
+
<!-- Secondary brand color. -->
|
|
9
|
+
<item name="colorSecondary">@color/teal_200</item>
|
|
10
|
+
<item name="colorSecondaryVariant">@color/teal_700</item>
|
|
11
|
+
<item name="colorOnSecondary">@color/black</item>
|
|
12
|
+
<!-- Status bar color. -->
|
|
13
|
+
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
|
14
|
+
<!-- Customize your theme here. -->
|
|
15
|
+
</style>
|
|
16
|
+
</resources>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
2
|
+
<!-- Base application theme. -->
|
|
3
|
+
<style name="Theme.UnitWalletDemo" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
|
4
|
+
<!-- Primary brand color. -->
|
|
5
|
+
<item name="colorPrimary">@color/purple_200</item>
|
|
6
|
+
<item name="colorPrimaryVariant">@color/purple_700</item>
|
|
7
|
+
<item name="colorOnPrimary">@color/black</item>
|
|
8
|
+
<!-- Secondary brand color. -->
|
|
9
|
+
<item name="colorSecondary">@color/teal_200</item>
|
|
10
|
+
<item name="colorSecondaryVariant">@color/teal_200</item>
|
|
11
|
+
<item name="colorOnSecondary">@color/black</item>
|
|
12
|
+
<!-- Status bar color. -->
|
|
13
|
+
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
|
14
|
+
<!-- Customize your theme here. -->
|
|
15
|
+
</style>
|
|
16
|
+
</resources>
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
-
|
|
11
|
-
F4FF95D7245B92E800C19C63 /* UnitReactNativeComponents.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4FF95D6245B92E800C19C63 /* UnitReactNativeComponents.swift */; };
|
|
10
|
+
68F74B8B296C7B87000C55BB /* libUnitReactNativeComponents.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 134814201AA4EA6300B7C361 /* libUnitReactNativeComponents.a */; };
|
|
12
11
|
/* End PBXBuildFile section */
|
|
13
12
|
|
|
14
13
|
/* Begin PBXCopyFilesBuildPhase section */
|
|
@@ -25,9 +24,9 @@
|
|
|
25
24
|
|
|
26
25
|
/* Begin PBXFileReference section */
|
|
27
26
|
134814201AA4EA6300B7C361 /* libUnitReactNativeComponents.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libUnitReactNativeComponents.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
28
|
-
|
|
27
|
+
68B53569296C600600A54592 /* UnitReactNativeComponentsViewManager.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = UnitReactNativeComponentsViewManager.m; sourceTree = "<group>"; };
|
|
28
|
+
68B5356A296C600600A54592 /* UnitReactNativeComponentsViewManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnitReactNativeComponentsViewManager.swift; sourceTree = "<group>"; };
|
|
29
29
|
F4FF95D5245B92E700C19C63 /* UnitReactNativeComponents-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UnitReactNativeComponents-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
30
|
-
F4FF95D6245B92E800C19C63 /* UnitReactNativeComponents.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnitReactNativeComponents.swift; sourceTree = "<group>"; };
|
|
31
30
|
/* End PBXFileReference section */
|
|
32
31
|
|
|
33
32
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -35,6 +34,7 @@
|
|
|
35
34
|
isa = PBXFrameworksBuildPhase;
|
|
36
35
|
buildActionMask = 2147483647;
|
|
37
36
|
files = (
|
|
37
|
+
68F74B8B296C7B87000C55BB /* libUnitReactNativeComponents.a in Frameworks */,
|
|
38
38
|
);
|
|
39
39
|
runOnlyForDeploymentPostprocessing = 0;
|
|
40
40
|
};
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
58B511D21A9E6C8500147676 = {
|
|
53
53
|
isa = PBXGroup;
|
|
54
54
|
children = (
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
68B53569296C600600A54592 /* UnitReactNativeComponentsViewManager.m */,
|
|
56
|
+
68B5356A296C600600A54592 /* UnitReactNativeComponentsViewManager.swift */,
|
|
57
57
|
F4FF95D5245B92E700C19C63 /* UnitReactNativeComponents-Bridging-Header.h */,
|
|
58
58
|
134814211AA4EA7D00B7C361 /* Products */,
|
|
59
59
|
);
|
|
@@ -116,8 +116,6 @@
|
|
|
116
116
|
isa = PBXSourcesBuildPhase;
|
|
117
117
|
buildActionMask = 2147483647;
|
|
118
118
|
files = (
|
|
119
|
-
F4FF95D7245B92E800C19C63 /* UnitReactNativeComponents.swift in Sources */,
|
|
120
|
-
B3E7B58A1CC2AC0600A0062D /* UnitReactNativeComponents.m in Sources */,
|
|
121
119
|
);
|
|
122
120
|
runOnlyForDeploymentPostprocessing = 0;
|
|
123
121
|
};
|
|
@@ -228,6 +226,7 @@
|
|
|
228
226
|
"$(SRCROOT)/../../../React/**",
|
|
229
227
|
"$(SRCROOT)/../../react-native/React/**",
|
|
230
228
|
);
|
|
229
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
231
230
|
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
232
231
|
OTHER_LDFLAGS = "-ObjC";
|
|
233
232
|
PRODUCT_NAME = UnitReactNativeComponents;
|
|
@@ -247,6 +246,7 @@
|
|
|
247
246
|
"$(SRCROOT)/../../../React/**",
|
|
248
247
|
"$(SRCROOT)/../../react-native/React/**",
|
|
249
248
|
);
|
|
249
|
+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
|
|
250
250
|
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
251
251
|
OTHER_LDFLAGS = "-ObjC";
|
|
252
252
|
PRODUCT_NAME = UnitReactNativeComponents;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#import <React/RCTViewManager.h>
|
|
2
2
|
|
|
3
|
-
@interface RCT_EXTERN_MODULE(
|
|
3
|
+
@interface RCT_EXTERN_MODULE(UnitAddToWalletButtonViewManager, RCTViewManager)
|
|
4
|
+
|
|
5
|
+
RCT_EXPORT_VIEW_PROPERTY(onAddToWalletClicked, RCTDirectEventBlock)
|
|
4
6
|
|
|
5
|
-
RCT_EXPORT_VIEW_PROPERTY(color, NSString)
|
|
6
7
|
|
|
7
8
|
@end
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import UIKit
|
|
2
|
+
import PassKit
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
@objc(UnitAddToWalletButtonViewManager)
|
|
5
|
+
class UnitAddToWalletButtonViewManager: RCTViewManager {
|
|
6
|
+
|
|
7
|
+
override func view() -> UIView {
|
|
8
|
+
return UnitAddToWalletButtonView()
|
|
6
9
|
}
|
|
7
10
|
|
|
8
11
|
@objc override static func requiresMainQueueSetup() -> Bool {
|
|
@@ -10,27 +13,38 @@ class UnitReactNativeComponentsViewManager: RCTViewManager {
|
|
|
10
13
|
}
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
class
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
class UnitAddToWalletButtonView : UIView {
|
|
17
|
+
@objc var onAddToWalletClicked: RCTDirectEventBlock?
|
|
18
|
+
|
|
19
|
+
override init(frame: CGRect) {
|
|
20
|
+
super.init(frame: frame)
|
|
21
|
+
self.addSubview(addPassButton)
|
|
22
|
+
center(addPassButton: addPassButton)
|
|
18
23
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
|
|
25
|
+
required init?(coder: NSCoder) {
|
|
26
|
+
super.init(coder: coder)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
lazy var addPassButton: PKAddPassButton = {
|
|
30
|
+
let button = PKAddPassButton(addPassButtonStyle: PKAddPassButtonStyle.black)
|
|
31
|
+
button.addTarget(
|
|
32
|
+
self,
|
|
33
|
+
action: #selector(sendUpdate),
|
|
34
|
+
for: .touchUpInside)
|
|
35
|
+
|
|
36
|
+
return button
|
|
37
|
+
}()
|
|
38
|
+
|
|
39
|
+
func center(addPassButton: PKAddPassButton) {
|
|
40
|
+
addPassButton.translatesAutoresizingMaskIntoConstraints = false
|
|
41
|
+
addPassButton.centerXAnchor.constraint(equalTo: self.centerXAnchor).isActive = true
|
|
42
|
+
addPassButton.centerYAnchor.constraint(equalTo: self.centerYAnchor).isActive = true
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
@objc func sendUpdate(_ sender: UITapGestureRecognizer? = nil) {
|
|
48
|
+
self.onAddToWalletClicked?(nil)
|
|
26
49
|
}
|
|
27
|
-
var color: UInt32 = 0
|
|
28
|
-
stringScanner.scanHexInt32(&color)
|
|
29
|
-
|
|
30
|
-
let r = CGFloat(Int(color >> 16) & 0x000000FF)
|
|
31
|
-
let g = CGFloat(Int(color >> 8) & 0x000000FF)
|
|
32
|
-
let b = CGFloat(Int(color) & 0x000000FF)
|
|
33
|
-
|
|
34
|
-
return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1)
|
|
35
|
-
}
|
|
36
50
|
}
|
|
@@ -20,7 +20,7 @@ const UNActivityComponent = props => {
|
|
|
20
20
|
type: _WebComponent.WebComponentType.activity,
|
|
21
21
|
presentationMode: _bodyHtml.PresentationMode.Inherit,
|
|
22
22
|
params: (0, _UNActivityComponent.getActivityParams)(props),
|
|
23
|
-
|
|
23
|
+
isScrollable: false
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["UNActivityComponent","props","WebComponentType","activity","PresentationMode","Inherit","getActivityParams"],"sources":["UNActivityComponent.tsx"],"sourcesContent":["import React from 'react';\nimport { PresentationMode } from '../../scripts/html/bodyHtml';\nimport { WebComponent, WebComponentType } from '../../webComponent/WebComponent';\nimport { getActivityParams } from './UNActivityComponent.utils';\n\nexport interface UNActivityComponentProps {\n accountId: string;\n customerToken: string;\n theme?: string;\n}\n\nexport const UNActivityComponent = (props: UNActivityComponentProps) => {\n return (\n <WebComponent\n type={WebComponentType.activity}\n presentationMode={PresentationMode.Inherit}\n params={getActivityParams(props)}\n
|
|
1
|
+
{"version":3,"names":["UNActivityComponent","props","WebComponentType","activity","PresentationMode","Inherit","getActivityParams"],"sources":["UNActivityComponent.tsx"],"sourcesContent":["import React from 'react';\nimport { PresentationMode } from '../../scripts/html/bodyHtml';\nimport { WebComponent, WebComponentType } from '../../webComponent/WebComponent';\nimport { getActivityParams } from './UNActivityComponent.utils';\n\nexport interface UNActivityComponentProps {\n accountId: string;\n customerToken: string;\n theme?: string;\n}\n\nexport const UNActivityComponent = (props: UNActivityComponentProps) => {\n return (\n <WebComponent\n type={WebComponentType.activity}\n presentationMode={PresentationMode.Inherit}\n params={getActivityParams(props)}\n isScrollable={false}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;AAQO,MAAMA,mBAAmB,GAAIC,KAAD,IAAqC;EACtE,oBACE,6BAAC,0BAAD;IACE,IAAI,EAAEC,8BAAA,CAAiBC,QADzB;IAEE,gBAAgB,EAAEC,0BAAA,CAAiBC,OAFrC;IAGE,MAAM,EAAE,IAAAC,sCAAA,EAAkBL,KAAlB,CAHV;IAIE,YAAY,EAAE;EAJhB,EADF;AAQD,CATM"}
|
|
@@ -31,7 +31,7 @@ const UNBookPaymentComponent = props => {
|
|
|
31
31
|
params: (0, _UNBookPaymentComponent.getBookPaymentParams)(props),
|
|
32
32
|
script: (0, _UNBookPaymentComponent.getBookPaymentScript)(),
|
|
33
33
|
onMessage: message => handleWebViewMessage(message),
|
|
34
|
-
|
|
34
|
+
isScrollable: false
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|