react-native-unit-components 1.8.0 → 1.9.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/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js +4 -2
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +1 -0
- package/lib/commonjs/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHCreditComponent/index.js +21 -0
- package/lib/commonjs/components/UNACHCreditComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js +4 -2
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +1 -0
- package/lib/commonjs/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNACHDebitComponent/index.js +21 -0
- package/lib/commonjs/components/UNACHDebitComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js +10 -8
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js +1 -1
- package/lib/commonjs/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNAccountComponent/index.js +27 -0
- package/lib/commonjs/components/UNAccountComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js +4 -2
- package/lib/commonjs/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/commonjs/components/UNActivityComponent/index.js +21 -0
- package/lib/commonjs/components/UNActivityComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js +4 -2
- package/lib/commonjs/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/commonjs/components/UNBookPaymentComponent/index.js +21 -0
- package/lib/commonjs/components/UNBookPaymentComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js +9 -6
- package/lib/commonjs/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/commonjs/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.js → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js} +10 -10
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +17 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/index.js +17 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/index.js.map +1 -0
- package/lib/commonjs/components/UNBottomSheetComponent/index.js +14 -0
- package/lib/commonjs/components/UNBottomSheetComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js +25 -3
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js +9 -1
- package/lib/commonjs/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/commonjs/components/UNCardComponent/index.js +27 -0
- package/lib/commonjs/components/UNCardComponent/index.js.map +1 -0
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js +4 -2
- package/lib/commonjs/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/commonjs/components/UNCheckDepositComponent/index.js +21 -0
- package/lib/commonjs/components/UNCheckDepositComponent/index.js.map +1 -0
- package/lib/commonjs/components/index.js +8 -8
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js +18 -2
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useLaunchInitialize.js +33 -0
- package/lib/commonjs/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -0
- package/lib/commonjs/helpers/store/helpers.js +29 -0
- package/lib/commonjs/helpers/store/helpers.js.map +1 -0
- package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js +3 -3
- package/lib/commonjs/networking/requests/UNWalletPayloadRequest.js.map +1 -1
- package/lib/commonjs/scripts/html/bodyScript.js +13 -1
- package/lib/commonjs/scripts/html/bodyScript.js.map +1 -1
- package/lib/commonjs/slices/pushProvisioningSlice.js +28 -0
- package/lib/commonjs/slices/pushProvisioningSlice.js.map +1 -0
- package/lib/commonjs/store/index.js +17 -0
- package/lib/commonjs/store/index.js.map +1 -0
- package/lib/commonjs/store/store.js +16 -0
- package/lib/commonjs/store/store.js.map +1 -0
- package/lib/commonjs/types/shared/index.js +11 -0
- package/lib/commonjs/types/shared/index.js.map +1 -1
- package/lib/commonjs/types/shared/versioning.types.js +14 -0
- package/lib/commonjs/types/shared/versioning.types.js.map +1 -0
- package/lib/commonjs/unitSdkManager/UnitSdk.api.js +3 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.api.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js +17 -0
- package/lib/commonjs/unitSdkManager/UnitSdk.constants.js.map +1 -0
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js +18 -9
- package/lib/commonjs/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js +19 -0
- package/lib/commonjs/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -0
- package/lib/commonjs/utils/webVersioningStrategy.utils.js +58 -0
- package/lib/commonjs/utils/webVersioningStrategy.utils.js.map +1 -0
- package/lib/commonjs/webComponent/html.js +4 -0
- package/lib/commonjs/webComponent/html.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js +3 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js +1 -0
- package/lib/module/components/UNACHCreditComponent/UNACHCreditComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHCreditComponent/index.js +2 -0
- package/lib/module/components/UNACHCreditComponent/index.js.map +1 -0
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js +3 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js +1 -0
- package/lib/module/components/UNACHDebitComponent/UNACHDebitComponent.utils.js.map +1 -1
- package/lib/module/components/UNACHDebitComponent/index.js +2 -0
- package/lib/module/components/UNACHDebitComponent/index.js.map +1 -0
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js +8 -6
- package/lib/module/components/UNAccountComponent/UNAccountComponent.js.map +1 -1
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js +2 -2
- package/lib/module/components/UNAccountComponent/UNAccountComponent.utils.js.map +1 -1
- package/lib/module/components/UNAccountComponent/index.js +2 -0
- package/lib/module/components/UNAccountComponent/index.js.map +1 -0
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js +3 -1
- package/lib/module/components/UNActivityComponent/UNActivityComponent.js.map +1 -1
- package/lib/module/components/UNActivityComponent/index.js +2 -0
- package/lib/module/components/UNActivityComponent/index.js.map +1 -0
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js +3 -1
- package/lib/module/components/UNBookPaymentComponent/UNBookPaymentComponent.js.map +1 -1
- package/lib/module/components/UNBookPaymentComponent/index.js +2 -0
- package/lib/module/components/UNBookPaymentComponent/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js +9 -6
- package/lib/module/components/UNBottomSheetComponent/UNBottomSheetComponent.js.map +1 -1
- package/lib/module/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.js → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js} +10 -10
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/components/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/components/index.js.map +1 -0
- package/lib/module/components/UNBottomSheetComponent/index.js +2 -0
- package/lib/module/components/UNBottomSheetComponent/index.js.map +1 -0
- package/lib/module/components/UNCardComponent/UNCardComponent.js +25 -3
- package/lib/module/components/UNCardComponent/UNCardComponent.js.map +1 -1
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js +6 -0
- package/lib/module/components/UNCardComponent/UNCardComponent.utils.js.map +1 -1
- package/lib/module/components/UNCardComponent/index.js +2 -0
- package/lib/module/components/UNCardComponent/index.js.map +1 -0
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js +3 -1
- package/lib/module/components/UNCheckDepositComponent/UNCheckDepositComponent.js.map +1 -1
- package/lib/module/components/UNCheckDepositComponent/index.js +2 -0
- package/lib/module/components/UNCheckDepositComponent/index.js.map +1 -0
- package/lib/module/components/index.js +8 -8
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js +18 -2
- package/lib/module/helpers/pushProvisioningService/hooks/useCardWallet.js.map +1 -1
- package/lib/module/helpers/pushProvisioningService/hooks/useLaunchInitialize.js +26 -0
- package/lib/module/helpers/pushProvisioningService/hooks/useLaunchInitialize.js.map +1 -0
- package/lib/module/helpers/store/helpers.js +20 -0
- package/lib/module/helpers/store/helpers.js.map +1 -0
- package/lib/module/networking/requests/UNWalletPayloadRequest.js +3 -4
- package/lib/module/networking/requests/UNWalletPayloadRequest.js.map +1 -1
- package/lib/module/scripts/html/bodyScript.js +10 -0
- package/lib/module/scripts/html/bodyScript.js.map +1 -1
- package/lib/module/slices/pushProvisioningSlice.js +19 -0
- package/lib/module/slices/pushProvisioningSlice.js.map +1 -0
- package/lib/module/store/index.js +2 -0
- package/lib/module/store/index.js.map +1 -0
- package/lib/module/store/store.js +8 -0
- package/lib/module/store/store.js.map +1 -0
- package/lib/module/types/shared/index.js +1 -0
- package/lib/module/types/shared/index.js.map +1 -1
- package/lib/module/types/shared/versioning.types.js +7 -0
- package/lib/module/types/shared/versioning.types.js.map +1 -0
- package/lib/module/unitSdkManager/UnitSdk.api.js +4 -2
- package/lib/module/unitSdkManager/UnitSdk.api.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdk.constants.js +10 -0
- package/lib/module/unitSdkManager/UnitSdk.constants.js.map +1 -0
- package/lib/module/unitSdkManager/UnitSdkManager.js +17 -7
- package/lib/module/unitSdkManager/UnitSdkManager.js.map +1 -1
- package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js +12 -0
- package/lib/module/unitSdkManager/UnitSdkManager.utils.internal.js.map +1 -0
- package/lib/module/utils/webVersioningStrategy.utils.js +48 -0
- package/lib/module/utils/webVersioningStrategy.utils.js.map +1 -0
- package/lib/module/webComponent/html.js +5 -1
- package/lib/module/webComponent/html.js.map +1 -1
- package/lib/typescript/components/UNACHCreditComponent/UNACHCreditComponent.d.ts +3 -1
- package/lib/typescript/components/UNACHCreditComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNACHDebitComponent/UNACHDebitComponent.d.ts +3 -1
- package/lib/typescript/components/UNACHDebitComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNAccountComponent/UNAccountComponent.d.ts +3 -2
- package/lib/typescript/components/UNAccountComponent/UNAccountComponent.utils.d.ts +2 -2
- package/lib/typescript/components/UNAccountComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNActivityComponent/UNActivityComponent.d.ts +2 -1
- package/lib/typescript/components/UNActivityComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNBookPaymentComponent/UNBookPaymentComponent.d.ts +2 -1
- package/lib/typescript/components/UNBookPaymentComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNBottomSheetComponent/UNBottomSheetComponent.d.ts +2 -1
- package/lib/typescript/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.d.ts → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.d.ts} +2 -2
- package/lib/typescript/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.d.ts +1 -0
- package/lib/typescript/components/UNBottomSheetComponent/components/index.d.ts +1 -0
- package/lib/typescript/components/UNBottomSheetComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNCardComponent/UNCardComponent.d.ts +4 -1
- package/lib/typescript/components/UNCardComponent/UNCardComponent.utils.d.ts +2 -0
- package/lib/typescript/components/UNCardComponent/index.d.ts +1 -0
- package/lib/typescript/components/UNCheckDepositComponent/UNCheckDepositComponent.d.ts +2 -1
- package/lib/typescript/components/UNCheckDepositComponent/index.d.ts +1 -0
- package/lib/typescript/components/index.d.ts +8 -8
- package/lib/typescript/helpers/pushProvisioningService/hooks/useLaunchInitialize.d.ts +3 -0
- package/lib/typescript/helpers/store/helpers.d.ts +3 -0
- package/lib/typescript/networking/requests/UNWalletPayloadRequest.d.ts +2 -2
- package/lib/typescript/scripts/html/bodyScript.d.ts +2 -0
- package/lib/typescript/slices/pushProvisioningSlice.d.ts +8 -0
- package/lib/typescript/store/index.d.ts +1 -0
- package/lib/typescript/store/store.d.ts +6 -0
- package/lib/typescript/types/shared/index.d.ts +1 -0
- package/lib/typescript/types/shared/versioning.types.d.ts +22 -0
- package/lib/typescript/unitSdkManager/UnitSdk.constants.d.ts +8 -0
- package/lib/typescript/unitSdkManager/UnitSdkManager.d.ts +11 -6
- package/lib/typescript/unitSdkManager/UnitSdkManager.utils.internal.d.ts +3 -0
- package/lib/typescript/utils/webVersioningStrategy.utils.d.ts +5 -0
- package/package.json +7 -24
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.tsx +5 -1
- package/src/components/UNACHCreditComponent/UNACHCreditComponent.utils.ts +1 -0
- package/src/components/UNACHCreditComponent/index.ts +1 -0
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.tsx +5 -1
- package/src/components/UNACHDebitComponent/UNACHDebitComponent.utils.ts +1 -0
- package/src/components/UNACHDebitComponent/index.ts +1 -0
- package/src/components/UNAccountComponent/UNAccountComponent.tsx +5 -2
- package/src/components/UNAccountComponent/UNAccountComponent.utils.ts +2 -2
- package/src/components/UNAccountComponent/index.ts +1 -0
- package/src/components/UNActivityComponent/UNActivityComponent.tsx +4 -1
- package/src/components/UNActivityComponent/index.ts +1 -0
- package/src/components/UNBookPaymentComponent/UNBookPaymentComponent.tsx +4 -1
- package/src/components/UNBookPaymentComponent/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/UNBottomSheetComponent.tsx +25 -23
- package/src/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.tsx → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.tsx} +12 -12
- package/src/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/components/index.ts +1 -0
- package/src/components/UNBottomSheetComponent/index.ts +1 -0
- package/src/components/UNCardComponent/UNCardComponent.tsx +45 -9
- package/src/components/UNCardComponent/UNCardComponent.utils.ts +7 -0
- package/src/components/UNCardComponent/index.ts +1 -0
- package/src/components/UNCheckDepositComponent/UNCheckDepositComponent.tsx +4 -1
- package/src/components/UNCheckDepositComponent/index.ts +1 -0
- package/src/components/index.ts +8 -8
- package/src/helpers/pushProvisioningService/hooks/useCardWallet.ts +13 -3
- package/src/helpers/pushProvisioningService/hooks/useLaunchInitialize.ts +29 -0
- package/src/helpers/store/helpers.tsx +22 -0
- package/src/networking/requests/UNWalletPayloadRequest.ts +5 -3
- package/src/scripts/html/bodyScript.ts +13 -1
- package/src/slices/pushProvisioningSlice.ts +24 -0
- package/src/store/index.ts +1 -0
- package/src/store/store.ts +10 -0
- package/src/types/shared/index.ts +1 -0
- package/src/types/shared/versioning.types.ts +28 -0
- package/src/unitSdkManager/UnitSdk.api.ts +5 -2
- package/src/unitSdkManager/UnitSdk.constants.ts +11 -0
- package/src/unitSdkManager/UnitSdkManager.ts +19 -10
- package/src/unitSdkManager/UnitSdkManager.utils.internal.ts +13 -0
- package/src/utils/webVersioningStrategy.utils.ts +52 -0
- package/src/webComponent/html.ts +16 -2
- package/android/src/main/res/drawable/ic_launcher_background.xml +0 -170
- package/android/src/main/res/drawable/un_ic_launcher_foreground.xml +0 -30
- package/android/src/main/res/drawable-v24/ic_launcher_background.xml +0 -170
- package/android/src/main/res/drawable-v24/un_ic_launcher_foreground.xml +0 -30
- package/android/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
- package/android/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
- 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/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +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/ic_launcher.webp +0 -0
- package/android/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
- package/lib/commonjs/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.js.map +0 -1
- package/lib/module/components/UNBottomSheetComponent/components/UNAddToWalletBottomSheetItem.js.map +0 -1
- /package/lib/commonjs/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.styles.js → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js} +0 -0
- /package/lib/commonjs/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.styles.js.map → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map} +0 -0
- /package/lib/module/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.styles.js → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js} +0 -0
- /package/lib/module/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.styles.js.map → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.js.map} +0 -0
- /package/lib/typescript/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.styles.d.ts → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.d.ts} +0 -0
- /package/src/components/UNBottomSheetComponent/components/{UNAddToWalletBottomSheetItem.styles.ts → UNAddToWalletBottomSheetItem/UNAddToWalletBottomSheetItem.styles.ts} +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UnitSDK } from '../../../unitSdkManager/UnitSdkManager';
|
|
2
|
+
import { useDispatch } from 'react-redux';
|
|
3
|
+
import { setSignedNonce } from '../../../slices/pushProvisioningSlice';
|
|
4
|
+
|
|
5
|
+
export const useLaunchInitialize = () => {
|
|
6
|
+
const dispatch = useDispatch();
|
|
7
|
+
|
|
8
|
+
const initializePushProvisioning = async () => {
|
|
9
|
+
const pushProvisioningModule = UnitSDK.getPushProvisionModule();
|
|
10
|
+
if (!pushProvisioningModule) {
|
|
11
|
+
console.error('Missing a PushProvisioningModule');
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
try {
|
|
15
|
+
const response = await pushProvisioningModule.launchInitialize();
|
|
16
|
+
console.log(`PushProvisioningModule.launchInitialize: Success \n\n signedNonce : ${response}`);
|
|
17
|
+
const signedNonce = JSON.parse(response).signedNonce;
|
|
18
|
+
dispatch(setSignedNonce(signedNonce));
|
|
19
|
+
} catch (error) {
|
|
20
|
+
// TODO - handle errors
|
|
21
|
+
console.error(error);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
initializePushProvisioning
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Provider } from 'react-redux';
|
|
3
|
+
import { store } from '../../store';
|
|
4
|
+
|
|
5
|
+
export const withReduxStore = <Props, >(Component: React.ComponentType<any>) => {
|
|
6
|
+
const Wrapper = (props: Props) => {
|
|
7
|
+
return (
|
|
8
|
+
<Provider store={store} >
|
|
9
|
+
<Component {...props} />
|
|
10
|
+
</Provider>
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
return Wrapper;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export const withReduxStoreAndRefForwarding = <Props, Ref>(Component: React.ComponentType<any>) => React.forwardRef<Ref, Props>((props, ref) => {
|
|
17
|
+
return (
|
|
18
|
+
<Provider store={store}>
|
|
19
|
+
<Component ref={ref} {...props} />
|
|
20
|
+
</Provider>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { APIHeaders, UNIT_SECURE_URL } from '../common/UNNetworkConstants';
|
|
3
|
-
import {
|
|
3
|
+
import type { UNEnvironment } from '../../unitSdkManager/UnitSdkManager';
|
|
4
4
|
|
|
5
5
|
// TODO: use apiClient class for handling requests.
|
|
6
6
|
|
|
7
|
-
export const getMobileWalletPayload = async (customerToken: string, cardId: string, env: UNEnvironment) => {
|
|
7
|
+
export const getMobileWalletPayload = async (customerToken: string, cardId: string, env: UNEnvironment, signedNonce: string) => {
|
|
8
|
+
if (!signedNonce) return;
|
|
9
|
+
|
|
8
10
|
const headers = {
|
|
9
11
|
'Content-Type': APIHeaders.CONTENT_TYPE,
|
|
10
12
|
'Authorization': `Bearer ${customerToken}`,
|
|
@@ -13,7 +15,7 @@ export const getMobileWalletPayload = async (customerToken: string, cardId: stri
|
|
|
13
15
|
const data = {
|
|
14
16
|
data: {
|
|
15
17
|
attributes: {
|
|
16
|
-
signedNonce:
|
|
18
|
+
signedNonce: signedNonce,
|
|
17
19
|
},
|
|
18
20
|
},
|
|
19
21
|
};
|
|
@@ -119,7 +119,7 @@ export const LISTENERS = {
|
|
|
119
119
|
window.addEventListener("${ActivityMessage.UNIT_ACTIVITY_FILTERS_CHANGED}", (e) => {
|
|
120
120
|
postMessageToSDK({ type: "${ActivityMessage.UNIT_ACTIVITY_FILTERS_CHANGED}", details: e.detail })
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
`,
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
export const DISPATCH_RENDERING_EVENT = `
|
|
@@ -162,6 +162,18 @@ export const DISPATCH_REQUEST_CARD_ACTION = `
|
|
|
162
162
|
}
|
|
163
163
|
`;
|
|
164
164
|
|
|
165
|
+
export const DISPATCH_REQUEST_HIDE_SENSITIVE_DATA = `
|
|
166
|
+
const dispatchRequestHideSensitiveData = (componentName) => {
|
|
167
|
+
document.querySelector(componentName).dispatchEvent(new CustomEvent("unitRequestHideSensitiveData"))
|
|
168
|
+
}
|
|
169
|
+
`;
|
|
170
|
+
|
|
171
|
+
export const DISPATCH_REQUEST_SHOW_SENSITIVE_DATA = `
|
|
172
|
+
const dispatchRequestShowSensitiveData = (componentName) => {
|
|
173
|
+
document.querySelector(componentName).dispatchEvent(new CustomEvent("unitRequestShowSensitiveData"))
|
|
174
|
+
}
|
|
175
|
+
`;
|
|
176
|
+
|
|
165
177
|
export const DISPATCH_REQUEST_ACCOUNT_ACTION = `
|
|
166
178
|
const dispatchRequestAccountAction = (action) => {
|
|
167
179
|
document.querySelector("unit-elements-account").dispatchEvent(new CustomEvent("unitRequestAccountAction", {detail: {action: action}}))
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createSlice, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { RootState } from '../store';
|
|
3
|
+
|
|
4
|
+
export interface PushProvisioningState {
|
|
5
|
+
signedNonce: string | null
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const initialState: PushProvisioningState = {
|
|
9
|
+
signedNonce: null
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const pushProvisioningSlice = createSlice({
|
|
13
|
+
name: 'wallet',
|
|
14
|
+
initialState: initialState,
|
|
15
|
+
reducers: {
|
|
16
|
+
setSignedNonce(state, action: PayloadAction<string | null>) {
|
|
17
|
+
state.signedNonce = action.payload;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
export const { setSignedNonce } = pushProvisioningSlice.actions;
|
|
23
|
+
export const selectWallet = (state: RootState) => state.wallet;
|
|
24
|
+
export default pushProvisioningSlice.reducer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export enum UNVersioningStrategyType {
|
|
2
|
+
exact = 'exact',
|
|
3
|
+
upToNextMinor = 'upToNextMinor',
|
|
4
|
+
upToNextMajor = 'upToNextMajor'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
type UNExactWebVersioningStrategy = {
|
|
8
|
+
type: UNVersioningStrategyType.exact;
|
|
9
|
+
major: number;
|
|
10
|
+
minor: number;
|
|
11
|
+
patch: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
type UNUpToNextMinorWebVersioningStrategy = {
|
|
15
|
+
type: UNVersioningStrategyType.upToNextMinor;
|
|
16
|
+
major: number;
|
|
17
|
+
minor: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type UNUpToNextMajorWebVersioningStrategy = {
|
|
21
|
+
type: UNVersioningStrategyType.upToNextMajor;
|
|
22
|
+
major: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type UNWebVersioningStrategy =
|
|
26
|
+
UNExactWebVersioningStrategy
|
|
27
|
+
| UNUpToNextMinorWebVersioningStrategy
|
|
28
|
+
| UNUpToNextMajorWebVersioningStrategy;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import EventBus from '../helpers/EventBus';
|
|
2
2
|
import { SDKMessage, SdkScriptFetched } from '../messages/nativeMessages/sdkMessage';
|
|
3
|
-
import { UnitSDK
|
|
3
|
+
import { UnitSDK } from './UnitSdkManager';
|
|
4
|
+
|
|
5
|
+
import { getUnitScriptUrl } from './UnitSdkManager.utils.internal';
|
|
4
6
|
|
|
5
7
|
let isLoadingScript = false;
|
|
6
8
|
|
|
@@ -9,13 +11,14 @@ export let globalUnitScript = '';
|
|
|
9
11
|
|
|
10
12
|
export const fetchUnitScript = async () => {
|
|
11
13
|
const env = UnitSDK.getEnv();
|
|
14
|
+
const webVersioningStrategy = UnitSDK.getWebVersioningStrategy();
|
|
12
15
|
if (isLoadingScript || globalUnitScript || !env) {
|
|
13
16
|
// init function is called and success OR in progress
|
|
14
17
|
return null;
|
|
15
18
|
}
|
|
16
19
|
isLoadingScript = true;
|
|
17
20
|
try {
|
|
18
|
-
const unitScriptRes = await fetch(
|
|
21
|
+
const unitScriptRes = await fetch(getUnitScriptUrl(env, webVersioningStrategy));
|
|
19
22
|
const unitScript = await unitScriptRes.text();
|
|
20
23
|
if (unitScript) {
|
|
21
24
|
const scriptFetchData: SdkScriptFetched = { unitScript };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UNVersioningStrategyType, UNWebVersioningStrategy } from '../types/shared';
|
|
2
|
+
|
|
3
|
+
const WEB_SDK_RECOMMENDED_STRATEGY: UNWebVersioningStrategy = {
|
|
4
|
+
type: UNVersioningStrategyType.upToNextMinor,
|
|
5
|
+
major: 1,
|
|
6
|
+
minor: 2,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const UNSDKConstants = {
|
|
10
|
+
webSDKRecommendedStrategy: WEB_SDK_RECOMMENDED_STRATEGY,
|
|
11
|
+
};
|
|
@@ -4,38 +4,36 @@ import { SDKMessage } from '../messages/nativeMessages/sdkMessage';
|
|
|
4
4
|
import { fetchUnitScript } from './UnitSdk.api';
|
|
5
5
|
import { UnitUiManager } from './unitUiManager/unitUiManager';
|
|
6
6
|
import type { UNFonts } from '../types/shared/fonts.types';
|
|
7
|
+
import { warnClientIfNeeded } from '../utils/webVersioningStrategy.utils';
|
|
8
|
+
import { UNSDKConstants } from './UnitSdk.constants';
|
|
9
|
+
import type { UNWebVersioningStrategy } from '../types/shared';
|
|
7
10
|
|
|
8
11
|
export enum UNEnvironment {
|
|
9
12
|
sandbox = 'sandbox',
|
|
10
13
|
production = 'production'
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
const UNIT_WEB_VERSION = '1';
|
|
14
|
-
|
|
15
|
-
export const UNIT_SCRIPT_URL = {
|
|
16
|
-
[UNEnvironment.sandbox]: `https://ui.s.unit.sh/release/${UNIT_WEB_VERSION}/components.js`,
|
|
17
|
-
[UNEnvironment.production]: `https://ui.unit.co/release/${UNIT_WEB_VERSION}/components.js`
|
|
18
|
-
};
|
|
19
16
|
export class UnitSDK {
|
|
17
|
+
public static ui: UnitUiManager;
|
|
20
18
|
protected static env?: UNEnvironment;
|
|
19
|
+
protected static webVersioningStrategy: UNWebVersioningStrategy;
|
|
21
20
|
protected static customerToken?: string;
|
|
22
21
|
protected static theme?: string;
|
|
23
22
|
protected static language?: string;
|
|
24
23
|
protected static fonts?: UNFonts;
|
|
25
|
-
|
|
26
24
|
protected static signedNonce?: string;
|
|
27
25
|
protected static pushProvisionModule?: typeof NativeModules;
|
|
28
26
|
|
|
29
|
-
public static
|
|
30
|
-
|
|
31
|
-
public static init = async (env: UNEnvironment, theme?: string, language?: string, fonts?: UNFonts) => {
|
|
27
|
+
public static init = async (env: UNEnvironment, theme?: string, language?: string, fonts?: UNFonts, webVersioningStrategy: UNWebVersioningStrategy = UNSDKConstants.webSDKRecommendedStrategy) => {
|
|
32
28
|
try {
|
|
33
29
|
this.env = env;
|
|
30
|
+
this.webVersioningStrategy = webVersioningStrategy;
|
|
34
31
|
this.theme = theme;
|
|
35
32
|
this.language = language;
|
|
36
33
|
this.fonts = fonts;
|
|
37
34
|
|
|
38
35
|
this.ui = new UnitUiManager();
|
|
36
|
+
warnClientIfNeeded(this.webVersioningStrategy);
|
|
39
37
|
await fetchUnitScript();
|
|
40
38
|
EventBus.Instance.event(SDKMessage.IS_SDK_INITIALIZED, {});
|
|
41
39
|
} catch (e) {
|
|
@@ -51,6 +49,9 @@ export class UnitSDK {
|
|
|
51
49
|
return this.pushProvisionModule;
|
|
52
50
|
};
|
|
53
51
|
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated - Unit SDK is managing the signedNonce, no need to provide it
|
|
54
|
+
*/
|
|
54
55
|
public static setSignedNonce = (signedNonce: string) => {
|
|
55
56
|
this.signedNonce = signedNonce;
|
|
56
57
|
};
|
|
@@ -59,6 +60,10 @@ export class UnitSDK {
|
|
|
59
60
|
return this.env;
|
|
60
61
|
};
|
|
61
62
|
|
|
63
|
+
public static getWebVersioningStrategy = () => {
|
|
64
|
+
return this.webVersioningStrategy;
|
|
65
|
+
};
|
|
66
|
+
|
|
62
67
|
public static getTheme = () => {
|
|
63
68
|
return this.theme;
|
|
64
69
|
};
|
|
@@ -71,6 +76,9 @@ export class UnitSDK {
|
|
|
71
76
|
return this.fonts;
|
|
72
77
|
};
|
|
73
78
|
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated - Unit SDK is managing the signedNonce, no need to provide it
|
|
81
|
+
*/
|
|
74
82
|
public static getSignedNonce = () => {
|
|
75
83
|
return this.signedNonce;
|
|
76
84
|
};
|
|
@@ -82,4 +90,5 @@ export class UnitSDK {
|
|
|
82
90
|
public static getCustomerToken = () => {
|
|
83
91
|
return this.customerToken;
|
|
84
92
|
};
|
|
93
|
+
|
|
85
94
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UNWebVersioningStrategy } from '../types/shared';
|
|
2
|
+
import { getWebSdkVersionString } from '../utils/webVersioningStrategy.utils';
|
|
3
|
+
import { UNEnvironment } from './UnitSdkManager';
|
|
4
|
+
|
|
5
|
+
export const getUnitScriptUrl = (env: UNEnvironment, webVersioningStrategy: UNWebVersioningStrategy) => {
|
|
6
|
+
const webSdkVersionString = getWebSdkVersionString(webVersioningStrategy);
|
|
7
|
+
switch (env) {
|
|
8
|
+
case UNEnvironment.sandbox:
|
|
9
|
+
return `https://ui.s.unit.sh/release/${webSdkVersionString}/components.js`;
|
|
10
|
+
case UNEnvironment.production:
|
|
11
|
+
return `https://ui.unit.co/release/${webSdkVersionString}/components.js`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { UNVersioningStrategyType, UNWebVersioningStrategy } from '../types/shared';
|
|
2
|
+
import { UNSDKConstants } from '../unitSdkManager/UnitSdk.constants';
|
|
3
|
+
|
|
4
|
+
export const getWebSdkVersionString = (webVersioningStrategy: UNWebVersioningStrategy) => {
|
|
5
|
+
switch (webVersioningStrategy.type) {
|
|
6
|
+
case UNVersioningStrategyType.exact:
|
|
7
|
+
return `${webVersioningStrategy.major}.${webVersioningStrategy.minor}.${webVersioningStrategy.patch}`;
|
|
8
|
+
case UNVersioningStrategyType.upToNextMinor:
|
|
9
|
+
return `${webVersioningStrategy.major}.${webVersioningStrategy.minor}`;
|
|
10
|
+
case UNVersioningStrategyType.upToNextMajor:
|
|
11
|
+
return `${webVersioningStrategy.major}`;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const getVersionArray = (webVersioningStrategy: UNWebVersioningStrategy) => {
|
|
16
|
+
switch (webVersioningStrategy.type) {
|
|
17
|
+
case UNVersioningStrategyType.exact:
|
|
18
|
+
return [webVersioningStrategy.major, webVersioningStrategy.minor, webVersioningStrategy.patch];
|
|
19
|
+
case UNVersioningStrategyType.upToNextMinor:
|
|
20
|
+
return [webVersioningStrategy.major, webVersioningStrategy.minor, null];
|
|
21
|
+
case UNVersioningStrategyType.upToNextMajor:
|
|
22
|
+
return [webVersioningStrategy.major, null, null];
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export const isBehindRecommendedStrategy = (currentWebVersioningStrategy: UNWebVersioningStrategy) => {
|
|
27
|
+
const recommendedWebVersionArray = getVersionArray(UNSDKConstants.webSDKRecommendedStrategy);
|
|
28
|
+
const currentWebVersionArray = getVersionArray(currentWebVersioningStrategy);
|
|
29
|
+
|
|
30
|
+
for (let i = 0; i < 3; i++) {
|
|
31
|
+
let currentVersion = currentWebVersionArray[i];
|
|
32
|
+
let recommendedVersion = recommendedWebVersionArray[i];
|
|
33
|
+
if (currentVersion === null || recommendedVersion === null) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
currentVersion = currentVersion as number;
|
|
37
|
+
recommendedVersion = recommendedVersion as number;
|
|
38
|
+
if (currentVersion !== recommendedVersion) {
|
|
39
|
+
return currentVersion < recommendedVersion;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export const warnClientIfNeeded = (currentWebVersioningStrategy: UNWebVersioningStrategy) => {
|
|
46
|
+
if (currentWebVersioningStrategy.major > UNSDKConstants.webSDKRecommendedStrategy.major) {
|
|
47
|
+
console.log(`The current web sdk version is ${getWebSdkVersionString(currentWebVersioningStrategy)} which is higher than the latest supported version ${getWebSdkVersionString(UNSDKConstants.webSDKRecommendedStrategy)}. Please update the latest version of the web sdk.`);
|
|
48
|
+
}
|
|
49
|
+
if (isBehindRecommendedStrategy(currentWebVersioningStrategy)) {
|
|
50
|
+
console.log(`The current web sdk version is ${getWebSdkVersionString(currentWebVersioningStrategy)} which is older than the latest supported version ${getWebSdkVersionString(UNSDKConstants.webSDKRecommendedStrategy)}. Please consider updating to the latest version of the web sdk.`);
|
|
51
|
+
}
|
|
52
|
+
};
|
package/src/webComponent/html.ts
CHANGED
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DISPATCH_RENDERING_EVENT,
|
|
4
|
+
LISTENERS,
|
|
5
|
+
POST_MESSAGE_TO_SDK,
|
|
6
|
+
POST_PAGE_HEIGHT,
|
|
7
|
+
DISPATCH_REQUEST_CARD_ACTION,
|
|
8
|
+
DISPATCH_OPEN_ACTIONS_MENU,
|
|
9
|
+
DISPATCH_REQUEST_ACCOUNT_ACTION,
|
|
10
|
+
DISPATCH_ACTIVITY_FILTER_CHANGED_EVENT,
|
|
11
|
+
DISPATCH_REQUEST_SHOW_SENSITIVE_DATA, DISPATCH_REQUEST_HIDE_SENSITIVE_DATA,
|
|
12
|
+
} from '../scripts/html/bodyScript';
|
|
3
13
|
|
|
4
14
|
export const HTML_PLACEHOLDER = {
|
|
5
15
|
SCRIPT_UNIT: '<SCRIPT_UNIT>',
|
|
6
16
|
BODY: '<BODY_HTML_CODE>',
|
|
7
17
|
SCRIPT_FROM_NATIVE: '<SCRIPT_FROM_NATIVE>',
|
|
8
18
|
WINDOW_PARAMS: '<WINDOW_PARAMS>',
|
|
9
|
-
FONT_FACES: '<FONT_FACES>'
|
|
19
|
+
FONT_FACES: '<FONT_FACES>',
|
|
10
20
|
};
|
|
11
21
|
|
|
12
22
|
const htmlText = `
|
|
@@ -68,6 +78,10 @@ const htmlText = `
|
|
|
68
78
|
|
|
69
79
|
${DISPATCH_OPEN_ACTIONS_MENU}
|
|
70
80
|
|
|
81
|
+
${DISPATCH_REQUEST_HIDE_SENSITIVE_DATA}
|
|
82
|
+
|
|
83
|
+
${DISPATCH_REQUEST_SHOW_SENSITIVE_DATA}
|
|
84
|
+
|
|
71
85
|
${DISPATCH_REQUEST_CARD_ACTION}
|
|
72
86
|
|
|
73
87
|
${DISPATCH_ACTIVITY_FILTER_CHANGED_EVENT}
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
-
android:width="108dp"
|
|
4
|
-
android:height="108dp"
|
|
5
|
-
android:viewportWidth="108"
|
|
6
|
-
android:viewportHeight="108">
|
|
7
|
-
<path
|
|
8
|
-
android:fillColor="#3DDC84"
|
|
9
|
-
android:pathData="M0,0h108v108h-108z" />
|
|
10
|
-
<path
|
|
11
|
-
android:fillColor="#00000000"
|
|
12
|
-
android:pathData="M9,0L9,108"
|
|
13
|
-
android:strokeWidth="0.8"
|
|
14
|
-
android:strokeColor="#33FFFFFF" />
|
|
15
|
-
<path
|
|
16
|
-
android:fillColor="#00000000"
|
|
17
|
-
android:pathData="M19,0L19,108"
|
|
18
|
-
android:strokeWidth="0.8"
|
|
19
|
-
android:strokeColor="#33FFFFFF" />
|
|
20
|
-
<path
|
|
21
|
-
android:fillColor="#00000000"
|
|
22
|
-
android:pathData="M29,0L29,108"
|
|
23
|
-
android:strokeWidth="0.8"
|
|
24
|
-
android:strokeColor="#33FFFFFF" />
|
|
25
|
-
<path
|
|
26
|
-
android:fillColor="#00000000"
|
|
27
|
-
android:pathData="M39,0L39,108"
|
|
28
|
-
android:strokeWidth="0.8"
|
|
29
|
-
android:strokeColor="#33FFFFFF" />
|
|
30
|
-
<path
|
|
31
|
-
android:fillColor="#00000000"
|
|
32
|
-
android:pathData="M49,0L49,108"
|
|
33
|
-
android:strokeWidth="0.8"
|
|
34
|
-
android:strokeColor="#33FFFFFF" />
|
|
35
|
-
<path
|
|
36
|
-
android:fillColor="#00000000"
|
|
37
|
-
android:pathData="M59,0L59,108"
|
|
38
|
-
android:strokeWidth="0.8"
|
|
39
|
-
android:strokeColor="#33FFFFFF" />
|
|
40
|
-
<path
|
|
41
|
-
android:fillColor="#00000000"
|
|
42
|
-
android:pathData="M69,0L69,108"
|
|
43
|
-
android:strokeWidth="0.8"
|
|
44
|
-
android:strokeColor="#33FFFFFF" />
|
|
45
|
-
<path
|
|
46
|
-
android:fillColor="#00000000"
|
|
47
|
-
android:pathData="M79,0L79,108"
|
|
48
|
-
android:strokeWidth="0.8"
|
|
49
|
-
android:strokeColor="#33FFFFFF" />
|
|
50
|
-
<path
|
|
51
|
-
android:fillColor="#00000000"
|
|
52
|
-
android:pathData="M89,0L89,108"
|
|
53
|
-
android:strokeWidth="0.8"
|
|
54
|
-
android:strokeColor="#33FFFFFF" />
|
|
55
|
-
<path
|
|
56
|
-
android:fillColor="#00000000"
|
|
57
|
-
android:pathData="M99,0L99,108"
|
|
58
|
-
android:strokeWidth="0.8"
|
|
59
|
-
android:strokeColor="#33FFFFFF" />
|
|
60
|
-
<path
|
|
61
|
-
android:fillColor="#00000000"
|
|
62
|
-
android:pathData="M0,9L108,9"
|
|
63
|
-
android:strokeWidth="0.8"
|
|
64
|
-
android:strokeColor="#33FFFFFF" />
|
|
65
|
-
<path
|
|
66
|
-
android:fillColor="#00000000"
|
|
67
|
-
android:pathData="M0,19L108,19"
|
|
68
|
-
android:strokeWidth="0.8"
|
|
69
|
-
android:strokeColor="#33FFFFFF" />
|
|
70
|
-
<path
|
|
71
|
-
android:fillColor="#00000000"
|
|
72
|
-
android:pathData="M0,29L108,29"
|
|
73
|
-
android:strokeWidth="0.8"
|
|
74
|
-
android:strokeColor="#33FFFFFF" />
|
|
75
|
-
<path
|
|
76
|
-
android:fillColor="#00000000"
|
|
77
|
-
android:pathData="M0,39L108,39"
|
|
78
|
-
android:strokeWidth="0.8"
|
|
79
|
-
android:strokeColor="#33FFFFFF" />
|
|
80
|
-
<path
|
|
81
|
-
android:fillColor="#00000000"
|
|
82
|
-
android:pathData="M0,49L108,49"
|
|
83
|
-
android:strokeWidth="0.8"
|
|
84
|
-
android:strokeColor="#33FFFFFF" />
|
|
85
|
-
<path
|
|
86
|
-
android:fillColor="#00000000"
|
|
87
|
-
android:pathData="M0,59L108,59"
|
|
88
|
-
android:strokeWidth="0.8"
|
|
89
|
-
android:strokeColor="#33FFFFFF" />
|
|
90
|
-
<path
|
|
91
|
-
android:fillColor="#00000000"
|
|
92
|
-
android:pathData="M0,69L108,69"
|
|
93
|
-
android:strokeWidth="0.8"
|
|
94
|
-
android:strokeColor="#33FFFFFF" />
|
|
95
|
-
<path
|
|
96
|
-
android:fillColor="#00000000"
|
|
97
|
-
android:pathData="M0,79L108,79"
|
|
98
|
-
android:strokeWidth="0.8"
|
|
99
|
-
android:strokeColor="#33FFFFFF" />
|
|
100
|
-
<path
|
|
101
|
-
android:fillColor="#00000000"
|
|
102
|
-
android:pathData="M0,89L108,89"
|
|
103
|
-
android:strokeWidth="0.8"
|
|
104
|
-
android:strokeColor="#33FFFFFF" />
|
|
105
|
-
<path
|
|
106
|
-
android:fillColor="#00000000"
|
|
107
|
-
android:pathData="M0,99L108,99"
|
|
108
|
-
android:strokeWidth="0.8"
|
|
109
|
-
android:strokeColor="#33FFFFFF" />
|
|
110
|
-
<path
|
|
111
|
-
android:fillColor="#00000000"
|
|
112
|
-
android:pathData="M19,29L89,29"
|
|
113
|
-
android:strokeWidth="0.8"
|
|
114
|
-
android:strokeColor="#33FFFFFF" />
|
|
115
|
-
<path
|
|
116
|
-
android:fillColor="#00000000"
|
|
117
|
-
android:pathData="M19,39L89,39"
|
|
118
|
-
android:strokeWidth="0.8"
|
|
119
|
-
android:strokeColor="#33FFFFFF" />
|
|
120
|
-
<path
|
|
121
|
-
android:fillColor="#00000000"
|
|
122
|
-
android:pathData="M19,49L89,49"
|
|
123
|
-
android:strokeWidth="0.8"
|
|
124
|
-
android:strokeColor="#33FFFFFF" />
|
|
125
|
-
<path
|
|
126
|
-
android:fillColor="#00000000"
|
|
127
|
-
android:pathData="M19,59L89,59"
|
|
128
|
-
android:strokeWidth="0.8"
|
|
129
|
-
android:strokeColor="#33FFFFFF" />
|
|
130
|
-
<path
|
|
131
|
-
android:fillColor="#00000000"
|
|
132
|
-
android:pathData="M19,69L89,69"
|
|
133
|
-
android:strokeWidth="0.8"
|
|
134
|
-
android:strokeColor="#33FFFFFF" />
|
|
135
|
-
<path
|
|
136
|
-
android:fillColor="#00000000"
|
|
137
|
-
android:pathData="M19,79L89,79"
|
|
138
|
-
android:strokeWidth="0.8"
|
|
139
|
-
android:strokeColor="#33FFFFFF" />
|
|
140
|
-
<path
|
|
141
|
-
android:fillColor="#00000000"
|
|
142
|
-
android:pathData="M29,19L29,89"
|
|
143
|
-
android:strokeWidth="0.8"
|
|
144
|
-
android:strokeColor="#33FFFFFF" />
|
|
145
|
-
<path
|
|
146
|
-
android:fillColor="#00000000"
|
|
147
|
-
android:pathData="M39,19L39,89"
|
|
148
|
-
android:strokeWidth="0.8"
|
|
149
|
-
android:strokeColor="#33FFFFFF" />
|
|
150
|
-
<path
|
|
151
|
-
android:fillColor="#00000000"
|
|
152
|
-
android:pathData="M49,19L49,89"
|
|
153
|
-
android:strokeWidth="0.8"
|
|
154
|
-
android:strokeColor="#33FFFFFF" />
|
|
155
|
-
<path
|
|
156
|
-
android:fillColor="#00000000"
|
|
157
|
-
android:pathData="M59,19L59,89"
|
|
158
|
-
android:strokeWidth="0.8"
|
|
159
|
-
android:strokeColor="#33FFFFFF" />
|
|
160
|
-
<path
|
|
161
|
-
android:fillColor="#00000000"
|
|
162
|
-
android:pathData="M69,19L69,89"
|
|
163
|
-
android:strokeWidth="0.8"
|
|
164
|
-
android:strokeColor="#33FFFFFF" />
|
|
165
|
-
<path
|
|
166
|
-
android:fillColor="#00000000"
|
|
167
|
-
android:pathData="M79,19L79,89"
|
|
168
|
-
android:strokeWidth="0.8"
|
|
169
|
-
android:strokeColor="#33FFFFFF" />
|
|
170
|
-
</vector>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
|
2
|
-
xmlns:aapt="http://schemas.android.com/aapt"
|
|
3
|
-
android:width="108dp"
|
|
4
|
-
android:height="108dp"
|
|
5
|
-
android:viewportWidth="108"
|
|
6
|
-
android:viewportHeight="108">
|
|
7
|
-
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
|
|
8
|
-
<aapt:attr name="android:fillColor">
|
|
9
|
-
<gradient
|
|
10
|
-
android:endX="85.84757"
|
|
11
|
-
android:endY="92.4963"
|
|
12
|
-
android:startX="42.9492"
|
|
13
|
-
android:startY="49.59793"
|
|
14
|
-
android:type="linear">
|
|
15
|
-
<item
|
|
16
|
-
android:color="#44000000"
|
|
17
|
-
android:offset="0.0" />
|
|
18
|
-
<item
|
|
19
|
-
android:color="#00000000"
|
|
20
|
-
android:offset="1.0" />
|
|
21
|
-
</gradient>
|
|
22
|
-
</aapt:attr>
|
|
23
|
-
</path>
|
|
24
|
-
<path
|
|
25
|
-
android:fillColor="#FFFFFF"
|
|
26
|
-
android:fillType="nonZero"
|
|
27
|
-
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
|
|
28
|
-
android:strokeWidth="1"
|
|
29
|
-
android:strokeColor="#00000000" />
|
|
30
|
-
</vector>
|