webtonative 1.0.75-beta.2 → 1.0.75-beta.4
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/index.d.ts +15 -65
- package/package.json +154 -36
- package/.editorconfig +0 -10
- package/.prettierrc.json +0 -7
- package/build/README.md +0 -33
- package/build/index.d.ts +0 -15
- package/build/package.json +0 -155
- package/buildScript.ts +0 -35
- package/client.ts +0 -106
- package/src/ATTConsent/index.ts +0 -51
- package/src/ATTConsent/types.ts +0 -17
- package/src/AdMob/index.ts +0 -113
- package/src/AdMob/types.ts +0 -37
- package/src/AppReview/index.ts +0 -19
- package/src/AppReview/types.ts +0 -12
- package/src/AppsFlyer/index.ts +0 -46
- package/src/AppsFlyer/types.ts +0 -10
- package/src/BackgroundLocation/index.ts +0 -78
- package/src/BackgroundLocation/types.ts +0 -34
- package/src/Beacon/index.ts +0 -28
- package/src/Beacon/types.ts +0 -22
- package/src/Biometric/index.ts +0 -126
- package/src/Biometric/types.ts +0 -27
- package/src/Bluetooth/index.ts +0 -71
- package/src/Bluetooth/types.ts +0 -40
- package/src/BottomNavigation/index.ts +0 -39
- package/src/BottomNavigation/types.ts +0 -9
- package/src/Clipboard/index.ts +0 -48
- package/src/Clipboard/types.ts +0 -30
- package/src/Facebook/events.ts +0 -45
- package/src/Facebook/index.ts +0 -3
- package/src/Facebook/types.ts +0 -24
- package/src/Firebase/Analytics/index.ts +0 -127
- package/src/Firebase/Messaging/index.ts +0 -73
- package/src/Firebase/index.ts +0 -4
- package/src/Firebase/types.ts +0 -74
- package/src/FirebaseAnalytics/index.ts +0 -3
- package/src/Haptics/index.ts +0 -17
- package/src/Haptics/types.ts +0 -8
- package/src/InAppPurchase/index.ts +0 -92
- package/src/InAppPurchase/types.ts +0 -35
- package/src/InAppUpdate/index.ts +0 -40
- package/src/InAppUpdate/types.ts +0 -17
- package/src/MediaPlayer/index.ts +0 -56
- package/src/MediaPlayer/types.ts +0 -15
- package/src/NativeContacts/index.ts +0 -50
- package/src/NativeContacts/types.ts +0 -16
- package/src/Notification/index.ts +0 -41
- package/src/Notification/types.ts +0 -16
- package/src/OneSignal/index.ts +0 -54
- package/src/OneSignal/types.ts +0 -15
- package/src/Printing/index.ts +0 -17
- package/src/Printing/types.ts +0 -9
- package/src/Screen/index.ts +0 -34
- package/src/Screen/types.ts +0 -8
- package/src/Siri/index.ts +0 -23
- package/src/Siri/types.ts +0 -14
- package/src/SocialLogin/apple.ts +0 -31
- package/src/SocialLogin/facebook.ts +0 -64
- package/src/SocialLogin/google.ts +0 -64
- package/src/SocialLogin/index.ts +0 -20
- package/src/SocialLogin/types.ts +0 -52
- package/src/Stripe/index.ts +0 -54
- package/src/Stripe/types.ts +0 -37
- package/src/VoiceSearch/index.ts +0 -37
- package/src/VoiceSearch/types.ts +0 -12
- package/src/barcode/barcode-scan.ts +0 -59
- package/src/barcode/barcode-types.ts +0 -22
- package/src/barcode/formats.ts +0 -19
- package/src/barcode/index.ts +0 -5
- package/src/barcode/types.ts +0 -18
- package/src/index.ts +0 -105
- package/src/types/index.ts +0 -71
- package/src/utills.ts +0 -110
- package/tsconfig.json +0 -27
- package/webpack.config.js +0 -57
- /package/{build/ATTConsent → ATTConsent}/index.d.ts +0 -0
- /package/{build/ATTConsent → ATTConsent}/index.d.ts.map +0 -0
- /package/{build/ATTConsent → ATTConsent}/index.js +0 -0
- /package/{build/ATTConsent → ATTConsent}/index.js.map +0 -0
- /package/{build/ATTConsent → ATTConsent}/types.d.ts +0 -0
- /package/{build/ATTConsent → ATTConsent}/types.d.ts.map +0 -0
- /package/{build/ATTConsent → ATTConsent}/types.js +0 -0
- /package/{build/ATTConsent → ATTConsent}/types.js.map +0 -0
- /package/{build/AdMob → AdMob}/index.d.ts +0 -0
- /package/{build/AdMob → AdMob}/index.d.ts.map +0 -0
- /package/{build/AdMob → AdMob}/index.js +0 -0
- /package/{build/AdMob → AdMob}/index.js.map +0 -0
- /package/{build/AdMob → AdMob}/types.d.ts +0 -0
- /package/{build/AdMob → AdMob}/types.d.ts.map +0 -0
- /package/{build/AdMob → AdMob}/types.js +0 -0
- /package/{build/AdMob → AdMob}/types.js.map +0 -0
- /package/{build/AppReview → AppReview}/index.d.ts +0 -0
- /package/{build/AppReview → AppReview}/index.d.ts.map +0 -0
- /package/{build/AppReview → AppReview}/index.js +0 -0
- /package/{build/AppReview → AppReview}/index.js.map +0 -0
- /package/{build/AppReview → AppReview}/types.d.ts +0 -0
- /package/{build/AppReview → AppReview}/types.d.ts.map +0 -0
- /package/{build/AppReview → AppReview}/types.js +0 -0
- /package/{build/AppReview → AppReview}/types.js.map +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/index.d.ts +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/index.d.ts.map +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/index.js +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/index.js.map +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/types.d.ts +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/types.d.ts.map +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/types.js +0 -0
- /package/{build/AppsFlyer → AppsFlyer}/types.js.map +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/index.d.ts +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/index.d.ts.map +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/index.js +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/index.js.map +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/types.d.ts +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/types.d.ts.map +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/types.js +0 -0
- /package/{build/BackgroundLocation → BackgroundLocation}/types.js.map +0 -0
- /package/{build/Beacon → Beacon}/index.d.ts +0 -0
- /package/{build/Beacon → Beacon}/index.d.ts.map +0 -0
- /package/{build/Beacon → Beacon}/index.js +0 -0
- /package/{build/Beacon → Beacon}/index.js.map +0 -0
- /package/{build/Beacon → Beacon}/types.d.ts +0 -0
- /package/{build/Beacon → Beacon}/types.d.ts.map +0 -0
- /package/{build/Beacon → Beacon}/types.js +0 -0
- /package/{build/Beacon → Beacon}/types.js.map +0 -0
- /package/{build/Biometric → Biometric}/index.d.ts +0 -0
- /package/{build/Biometric → Biometric}/index.d.ts.map +0 -0
- /package/{build/Biometric → Biometric}/index.js +0 -0
- /package/{build/Biometric → Biometric}/index.js.map +0 -0
- /package/{build/Biometric → Biometric}/types.d.ts +0 -0
- /package/{build/Biometric → Biometric}/types.d.ts.map +0 -0
- /package/{build/Biometric → Biometric}/types.js +0 -0
- /package/{build/Biometric → Biometric}/types.js.map +0 -0
- /package/{build/Bluetooth → Bluetooth}/index.d.ts +0 -0
- /package/{build/Bluetooth → Bluetooth}/index.d.ts.map +0 -0
- /package/{build/Bluetooth → Bluetooth}/index.js +0 -0
- /package/{build/Bluetooth → Bluetooth}/index.js.map +0 -0
- /package/{build/Bluetooth → Bluetooth}/types.d.ts +0 -0
- /package/{build/Bluetooth → Bluetooth}/types.d.ts.map +0 -0
- /package/{build/Bluetooth → Bluetooth}/types.js +0 -0
- /package/{build/Bluetooth → Bluetooth}/types.js.map +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/index.d.ts +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/index.d.ts.map +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/index.js +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/index.js.map +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/types.d.ts +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/types.d.ts.map +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/types.js +0 -0
- /package/{build/BottomNavigation → BottomNavigation}/types.js.map +0 -0
- /package/{build/Clipboard → Clipboard}/index.d.ts +0 -0
- /package/{build/Clipboard → Clipboard}/index.d.ts.map +0 -0
- /package/{build/Clipboard → Clipboard}/index.js +0 -0
- /package/{build/Clipboard → Clipboard}/index.js.map +0 -0
- /package/{build/Clipboard → Clipboard}/types.d.ts +0 -0
- /package/{build/Clipboard → Clipboard}/types.d.ts.map +0 -0
- /package/{build/Clipboard → Clipboard}/types.js +0 -0
- /package/{build/Clipboard → Clipboard}/types.js.map +0 -0
- /package/{build/Facebook → Facebook}/events.d.ts +0 -0
- /package/{build/Facebook → Facebook}/events.d.ts.map +0 -0
- /package/{build/Facebook → Facebook}/events.js +0 -0
- /package/{build/Facebook → Facebook}/events.js.map +0 -0
- /package/{build/Facebook → Facebook}/index.d.ts +0 -0
- /package/{build/Facebook → Facebook}/index.d.ts.map +0 -0
- /package/{build/Facebook → Facebook}/index.js +0 -0
- /package/{build/Facebook → Facebook}/index.js.map +0 -0
- /package/{build/Facebook → Facebook}/types.d.ts +0 -0
- /package/{build/Facebook → Facebook}/types.d.ts.map +0 -0
- /package/{build/Facebook → Facebook}/types.js +0 -0
- /package/{build/Facebook → Facebook}/types.js.map +0 -0
- /package/{build/Firebase → Firebase}/Analytics/index.d.ts +0 -0
- /package/{build/Firebase → Firebase}/Analytics/index.d.ts.map +0 -0
- /package/{build/Firebase → Firebase}/Analytics/index.js +0 -0
- /package/{build/Firebase → Firebase}/Analytics/index.js.map +0 -0
- /package/{build/Firebase → Firebase}/Messaging/index.d.ts +0 -0
- /package/{build/Firebase → Firebase}/Messaging/index.d.ts.map +0 -0
- /package/{build/Firebase → Firebase}/Messaging/index.js +0 -0
- /package/{build/Firebase → Firebase}/Messaging/index.js.map +0 -0
- /package/{build/Firebase → Firebase}/index.d.ts +0 -0
- /package/{build/Firebase → Firebase}/index.d.ts.map +0 -0
- /package/{build/Firebase → Firebase}/index.js +0 -0
- /package/{build/Firebase → Firebase}/index.js.map +0 -0
- /package/{build/Firebase → Firebase}/types.d.ts +0 -0
- /package/{build/Firebase → Firebase}/types.d.ts.map +0 -0
- /package/{build/Firebase → Firebase}/types.js +0 -0
- /package/{build/Firebase → Firebase}/types.js.map +0 -0
- /package/{build/FirebaseAnalytics → FirebaseAnalytics}/index.d.ts +0 -0
- /package/{build/FirebaseAnalytics → FirebaseAnalytics}/index.d.ts.map +0 -0
- /package/{build/FirebaseAnalytics → FirebaseAnalytics}/index.js +0 -0
- /package/{build/FirebaseAnalytics → FirebaseAnalytics}/index.js.map +0 -0
- /package/{build/Haptics → Haptics}/index.d.ts +0 -0
- /package/{build/Haptics → Haptics}/index.d.ts.map +0 -0
- /package/{build/Haptics → Haptics}/index.js +0 -0
- /package/{build/Haptics → Haptics}/index.js.map +0 -0
- /package/{build/Haptics → Haptics}/types.d.ts +0 -0
- /package/{build/Haptics → Haptics}/types.d.ts.map +0 -0
- /package/{build/Haptics → Haptics}/types.js +0 -0
- /package/{build/Haptics → Haptics}/types.js.map +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/index.d.ts +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/index.d.ts.map +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/index.js +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/index.js.map +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/types.d.ts +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/types.d.ts.map +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/types.js +0 -0
- /package/{build/InAppPurchase → InAppPurchase}/types.js.map +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/index.d.ts +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/index.d.ts.map +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/index.js +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/index.js.map +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/types.d.ts +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/types.d.ts.map +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/types.js +0 -0
- /package/{build/InAppUpdate → InAppUpdate}/types.js.map +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/index.d.ts +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/index.d.ts.map +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/index.js +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/index.js.map +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/types.d.ts +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/types.d.ts.map +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/types.js +0 -0
- /package/{build/MediaPlayer → MediaPlayer}/types.js.map +0 -0
- /package/{build/NativeContacts → NativeContacts}/index.d.ts +0 -0
- /package/{build/NativeContacts → NativeContacts}/index.d.ts.map +0 -0
- /package/{build/NativeContacts → NativeContacts}/index.js +0 -0
- /package/{build/NativeContacts → NativeContacts}/index.js.map +0 -0
- /package/{build/NativeContacts → NativeContacts}/types.d.ts +0 -0
- /package/{build/NativeContacts → NativeContacts}/types.d.ts.map +0 -0
- /package/{build/NativeContacts → NativeContacts}/types.js +0 -0
- /package/{build/NativeContacts → NativeContacts}/types.js.map +0 -0
- /package/{build/Notification → Notification}/index.d.ts +0 -0
- /package/{build/Notification → Notification}/index.d.ts.map +0 -0
- /package/{build/Notification → Notification}/index.js +0 -0
- /package/{build/Notification → Notification}/index.js.map +0 -0
- /package/{build/Notification → Notification}/types.d.ts +0 -0
- /package/{build/Notification → Notification}/types.d.ts.map +0 -0
- /package/{build/Notification → Notification}/types.js +0 -0
- /package/{build/Notification → Notification}/types.js.map +0 -0
- /package/{build/OneSignal → OneSignal}/index.d.ts +0 -0
- /package/{build/OneSignal → OneSignal}/index.d.ts.map +0 -0
- /package/{build/OneSignal → OneSignal}/index.js +0 -0
- /package/{build/OneSignal → OneSignal}/index.js.map +0 -0
- /package/{build/OneSignal → OneSignal}/types.d.ts +0 -0
- /package/{build/OneSignal → OneSignal}/types.d.ts.map +0 -0
- /package/{build/OneSignal → OneSignal}/types.js +0 -0
- /package/{build/OneSignal → OneSignal}/types.js.map +0 -0
- /package/{build/Printing → Printing}/index.d.ts +0 -0
- /package/{build/Printing → Printing}/index.d.ts.map +0 -0
- /package/{build/Printing → Printing}/index.js +0 -0
- /package/{build/Printing → Printing}/index.js.map +0 -0
- /package/{build/Printing → Printing}/types.d.ts +0 -0
- /package/{build/Printing → Printing}/types.d.ts.map +0 -0
- /package/{build/Printing → Printing}/types.js +0 -0
- /package/{build/Printing → Printing}/types.js.map +0 -0
- /package/{build/Screen → Screen}/index.d.ts +0 -0
- /package/{build/Screen → Screen}/index.d.ts.map +0 -0
- /package/{build/Screen → Screen}/index.js +0 -0
- /package/{build/Screen → Screen}/index.js.map +0 -0
- /package/{build/Screen → Screen}/types.d.ts +0 -0
- /package/{build/Screen → Screen}/types.d.ts.map +0 -0
- /package/{build/Screen → Screen}/types.js +0 -0
- /package/{build/Screen → Screen}/types.js.map +0 -0
- /package/{build/Siri → Siri}/index.d.ts +0 -0
- /package/{build/Siri → Siri}/index.d.ts.map +0 -0
- /package/{build/Siri → Siri}/index.js +0 -0
- /package/{build/Siri → Siri}/index.js.map +0 -0
- /package/{build/Siri → Siri}/types.d.ts +0 -0
- /package/{build/Siri → Siri}/types.d.ts.map +0 -0
- /package/{build/Siri → Siri}/types.js +0 -0
- /package/{build/Siri → Siri}/types.js.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/apple.d.ts +0 -0
- /package/{build/SocialLogin → SocialLogin}/apple.d.ts.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/apple.js +0 -0
- /package/{build/SocialLogin → SocialLogin}/apple.js.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/facebook.d.ts +0 -0
- /package/{build/SocialLogin → SocialLogin}/facebook.d.ts.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/facebook.js +0 -0
- /package/{build/SocialLogin → SocialLogin}/facebook.js.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/google.d.ts +0 -0
- /package/{build/SocialLogin → SocialLogin}/google.d.ts.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/google.js +0 -0
- /package/{build/SocialLogin → SocialLogin}/google.js.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/index.d.ts +0 -0
- /package/{build/SocialLogin → SocialLogin}/index.d.ts.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/index.js +0 -0
- /package/{build/SocialLogin → SocialLogin}/index.js.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/types.d.ts +0 -0
- /package/{build/SocialLogin → SocialLogin}/types.d.ts.map +0 -0
- /package/{build/SocialLogin → SocialLogin}/types.js +0 -0
- /package/{build/SocialLogin → SocialLogin}/types.js.map +0 -0
- /package/{build/Stripe → Stripe}/index.d.ts +0 -0
- /package/{build/Stripe → Stripe}/index.d.ts.map +0 -0
- /package/{build/Stripe → Stripe}/index.js +0 -0
- /package/{build/Stripe → Stripe}/index.js.map +0 -0
- /package/{build/Stripe → Stripe}/types.d.ts +0 -0
- /package/{build/Stripe → Stripe}/types.d.ts.map +0 -0
- /package/{build/Stripe → Stripe}/types.js +0 -0
- /package/{build/Stripe → Stripe}/types.js.map +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/index.d.ts +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/index.d.ts.map +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/index.js +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/index.js.map +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/types.d.ts +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/types.d.ts.map +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/types.js +0 -0
- /package/{build/VoiceSearch → VoiceSearch}/types.js.map +0 -0
- /package/{build/barcode → barcode}/barcode-scan.d.ts +0 -0
- /package/{build/barcode → barcode}/barcode-scan.d.ts.map +0 -0
- /package/{build/barcode → barcode}/barcode-scan.js +0 -0
- /package/{build/barcode → barcode}/barcode-scan.js.map +0 -0
- /package/{build/barcode → barcode}/barcode-types.d.ts +0 -0
- /package/{build/barcode → barcode}/barcode-types.d.ts.map +0 -0
- /package/{build/barcode → barcode}/barcode-types.js +0 -0
- /package/{build/barcode → barcode}/barcode-types.js.map +0 -0
- /package/{build/barcode → barcode}/formats.d.ts +0 -0
- /package/{build/barcode → barcode}/formats.d.ts.map +0 -0
- /package/{build/barcode → barcode}/formats.js +0 -0
- /package/{build/barcode → barcode}/formats.js.map +0 -0
- /package/{build/barcode → barcode}/index.d.ts +0 -0
- /package/{build/barcode → barcode}/index.d.ts.map +0 -0
- /package/{build/barcode → barcode}/index.js +0 -0
- /package/{build/barcode → barcode}/index.js.map +0 -0
- /package/{build/barcode → barcode}/types.d.ts +0 -0
- /package/{build/barcode → barcode}/types.d.ts.map +0 -0
- /package/{build/barcode → barcode}/types.js +0 -0
- /package/{build/barcode → barcode}/types.js.map +0 -0
- /package/{build/index.d.ts.map → index.d.ts.map} +0 -0
- /package/{build/index.js → index.js} +0 -0
- /package/{build/index.js.map → index.js.map} +0 -0
- /package/{build/types → types}/index.d.ts +0 -0
- /package/{build/types → types}/index.d.ts.map +0 -0
- /package/{build/types → types}/index.js +0 -0
- /package/{build/types → types}/index.js.map +0 -0
- /package/{build/utills.d.ts → utills.d.ts} +0 -0
- /package/{build/utills.d.ts.map → utills.d.ts.map} +0 -0
- /package/{build/utills.js → utills.js} +0 -0
- /package/{build/utills.js.map → utills.js.map} +0 -0
- /package/{build/webtonative.min.js → webtonative.min.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -1,65 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
|
|
16
|
-
export function showInAppReview(): void;
|
|
17
|
-
|
|
18
|
-
// Barcode module
|
|
19
|
-
export namespace Barcode {
|
|
20
|
-
enum Format {
|
|
21
|
-
ALL_FORMATS = 0,
|
|
22
|
-
CODE_128 = 1,
|
|
23
|
-
CODE_39 = 2,
|
|
24
|
-
CODE_93 = 4,
|
|
25
|
-
CODABAR = 8,
|
|
26
|
-
DATA_MATRIX = 16,
|
|
27
|
-
EAN_13 = 32,
|
|
28
|
-
EAN_8 = 64,
|
|
29
|
-
ITF = 128,
|
|
30
|
-
QR_CODE = 256,
|
|
31
|
-
UPC_A = 512,
|
|
32
|
-
UPC_E = 1024,
|
|
33
|
-
PDF417 = 2048,
|
|
34
|
-
AZTEC = 4096
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
enum Types {
|
|
38
|
-
QR_CODE = 'QR_CODE',
|
|
39
|
-
DATA_MATRIX = 'DATA_MATRIX',
|
|
40
|
-
UPC_E = 'UPC_E',
|
|
41
|
-
UPC_A = 'UPC_A',
|
|
42
|
-
EAN_8 = 'EAN_8',
|
|
43
|
-
EAN_13 = 'EAN_13',
|
|
44
|
-
CODE_128 = 'CODE_128',
|
|
45
|
-
CODE_39 = 'CODE_39',
|
|
46
|
-
CODE_93 = 'CODE_93',
|
|
47
|
-
CODABAR = 'CODABAR',
|
|
48
|
-
ITF = 'ITF',
|
|
49
|
-
AZTEC = 'AZTEC',
|
|
50
|
-
PDF_417 = 'PDF_417'
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface BarcodeScanOptions {
|
|
54
|
-
onBarcodeSearch?: (value: string) => void;
|
|
55
|
-
format?: number;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
function BarcodeScan(options: BarcodeScanOptions): void;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Define the main module
|
|
62
|
-
declare module 'webtonative' {
|
|
63
|
-
export * from './src/index';
|
|
64
|
-
export default function webtonative(): typeof import('./src/index');
|
|
65
|
-
}
|
|
1
|
+
import { StatusBarOptions, DownloadBlobFileOptions, CustomFileDownloadOptions } from "./types";
|
|
2
|
+
export declare const isAndroidApp: boolean;
|
|
3
|
+
export declare const isIosApp: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* This function hides splash screen
|
|
6
|
+
* @example wtn.hideSplashScreen()
|
|
7
|
+
*/
|
|
8
|
+
export declare const hideSplashScreen: () => void;
|
|
9
|
+
export declare const statusBar: (options: StatusBarOptions) => void;
|
|
10
|
+
export declare const downloadFile: (downloadUrl: string) => void;
|
|
11
|
+
export declare const downloadBlobFile: ({ fileName, downloadUrl }: DownloadBlobFileOptions) => void;
|
|
12
|
+
export declare const customFileDownload: ({ downloadUrl, fileName, isBlob, mimeType, cookies, userAgent, openFileAfterDownload }: CustomFileDownloadOptions) => void;
|
|
13
|
+
export declare const deviceInfo: () => Promise<any>;
|
|
14
|
+
export declare const showInAppReview: () => void;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,37 +1,155 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
2
|
+
"name": "webtonative",
|
|
3
|
+
"version": "1.0.75-beta.4",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"types": "build/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "rimraf build && tsc && ts-node buildScript.ts && npm run dist",
|
|
9
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
|
+
"dist": "NODE_ENV=production webpack --config webpack.config.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/webtonative/webtonative.git"
|
|
15
|
+
},
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/webtonative/webtonative/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/webtonative/webtonative#readme",
|
|
22
|
+
"dependencies": {},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@babel/cli": "^7.14.5",
|
|
25
|
+
"@babel/core": "^7.14.6",
|
|
26
|
+
"@babel/preset-env": "^7.14.7",
|
|
27
|
+
"@types/node": "^18.11.18",
|
|
28
|
+
"babel-loader": "^8.2.2",
|
|
29
|
+
"babel-preset-minify": "^0.5.1",
|
|
30
|
+
"rimraf": "^3.0.2",
|
|
31
|
+
"ts-loader": "^9.4.2",
|
|
32
|
+
"ts-node": "^10.9.1",
|
|
33
|
+
"typescript": "^4.9.4",
|
|
34
|
+
"webpack": "^5.40.0",
|
|
35
|
+
"webpack-cli": "^4.7.2"
|
|
36
|
+
},
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"import": "./index.js",
|
|
40
|
+
"types": "./index.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./ATTConsent": {
|
|
43
|
+
"import": "./ATTConsent/index.js",
|
|
44
|
+
"types": "./ATTConsent/index.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./AdMob": {
|
|
47
|
+
"import": "./AdMob/index.js",
|
|
48
|
+
"types": "./AdMob/index.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./AppReview": {
|
|
51
|
+
"import": "./AppReview/index.js",
|
|
52
|
+
"types": "./AppReview/index.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./AppsFlyer": {
|
|
55
|
+
"import": "./AppsFlyer/index.js",
|
|
56
|
+
"types": "./AppsFlyer/index.d.ts"
|
|
57
|
+
},
|
|
58
|
+
"./BackgroundLocation": {
|
|
59
|
+
"import": "./BackgroundLocation/index.js",
|
|
60
|
+
"types": "./BackgroundLocation/index.d.ts"
|
|
61
|
+
},
|
|
62
|
+
"./Beacon": {
|
|
63
|
+
"import": "./Beacon/index.js",
|
|
64
|
+
"types": "./Beacon/index.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./Biometric": {
|
|
67
|
+
"import": "./Biometric/index.js",
|
|
68
|
+
"types": "./Biometric/index.d.ts"
|
|
69
|
+
},
|
|
70
|
+
"./Bluetooth": {
|
|
71
|
+
"import": "./Bluetooth/index.js",
|
|
72
|
+
"types": "./Bluetooth/index.d.ts"
|
|
73
|
+
},
|
|
74
|
+
"./BottomNavigation": {
|
|
75
|
+
"import": "./BottomNavigation/index.js",
|
|
76
|
+
"types": "./BottomNavigation/index.d.ts"
|
|
77
|
+
},
|
|
78
|
+
"./Clipboard": {
|
|
79
|
+
"import": "./Clipboard/index.js",
|
|
80
|
+
"types": "./Clipboard/index.d.ts"
|
|
81
|
+
},
|
|
82
|
+
"./Facebook": {
|
|
83
|
+
"import": "./Facebook/index.js",
|
|
84
|
+
"types": "./Facebook/index.d.ts"
|
|
85
|
+
},
|
|
86
|
+
"./Firebase": {
|
|
87
|
+
"import": "./Firebase/index.js",
|
|
88
|
+
"types": "./Firebase/index.d.ts"
|
|
89
|
+
},
|
|
90
|
+
"./FirebaseAnalytics": {
|
|
91
|
+
"import": "./FirebaseAnalytics/index.js",
|
|
92
|
+
"types": "./FirebaseAnalytics/index.d.ts"
|
|
93
|
+
},
|
|
94
|
+
"./Haptics": {
|
|
95
|
+
"import": "./Haptics/index.js",
|
|
96
|
+
"types": "./Haptics/index.d.ts"
|
|
97
|
+
},
|
|
98
|
+
"./InAppPurchase": {
|
|
99
|
+
"import": "./InAppPurchase/index.js",
|
|
100
|
+
"types": "./InAppPurchase/index.d.ts"
|
|
101
|
+
},
|
|
102
|
+
"./InAppUpdate": {
|
|
103
|
+
"import": "./InAppUpdate/index.js",
|
|
104
|
+
"types": "./InAppUpdate/index.d.ts"
|
|
105
|
+
},
|
|
106
|
+
"./MediaPlayer": {
|
|
107
|
+
"import": "./MediaPlayer/index.js",
|
|
108
|
+
"types": "./MediaPlayer/index.d.ts"
|
|
109
|
+
},
|
|
110
|
+
"./NativeContacts": {
|
|
111
|
+
"import": "./NativeContacts/index.js",
|
|
112
|
+
"types": "./NativeContacts/index.d.ts"
|
|
113
|
+
},
|
|
114
|
+
"./Notification": {
|
|
115
|
+
"import": "./Notification/index.js",
|
|
116
|
+
"types": "./Notification/index.d.ts"
|
|
117
|
+
},
|
|
118
|
+
"./OneSignal": {
|
|
119
|
+
"import": "./OneSignal/index.js",
|
|
120
|
+
"types": "./OneSignal/index.d.ts"
|
|
121
|
+
},
|
|
122
|
+
"./Printing": {
|
|
123
|
+
"import": "./Printing/index.js",
|
|
124
|
+
"types": "./Printing/index.d.ts"
|
|
125
|
+
},
|
|
126
|
+
"./Screen": {
|
|
127
|
+
"import": "./Screen/index.js",
|
|
128
|
+
"types": "./Screen/index.d.ts"
|
|
129
|
+
},
|
|
130
|
+
"./Siri": {
|
|
131
|
+
"import": "./Siri/index.js",
|
|
132
|
+
"types": "./Siri/index.d.ts"
|
|
133
|
+
},
|
|
134
|
+
"./SocialLogin": {
|
|
135
|
+
"import": "./SocialLogin/index.js",
|
|
136
|
+
"types": "./SocialLogin/index.d.ts"
|
|
137
|
+
},
|
|
138
|
+
"./Stripe": {
|
|
139
|
+
"import": "./Stripe/index.js",
|
|
140
|
+
"types": "./Stripe/index.d.ts"
|
|
141
|
+
},
|
|
142
|
+
"./VoiceSearch": {
|
|
143
|
+
"import": "./VoiceSearch/index.js",
|
|
144
|
+
"types": "./VoiceSearch/index.d.ts"
|
|
145
|
+
},
|
|
146
|
+
"./barcode": {
|
|
147
|
+
"import": "./barcode/index.js",
|
|
148
|
+
"types": "./barcode/index.d.ts"
|
|
149
|
+
},
|
|
150
|
+
"./types": {
|
|
151
|
+
"import": "./types/index.js",
|
|
152
|
+
"types": "./types/index.d.ts"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
package/.editorconfig
DELETED
package/.prettierrc.json
DELETED
package/build/README.md
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# WebToNative SDK
|
|
2
|
-
|
|
3
|
-
Repository for WebToNative TypeScript/JavaScript SDK. Build your Android/iOS app from https://webtonative.com
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install webtonative
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## TypeScript Support
|
|
12
|
-
|
|
13
|
-
This package includes TypeScript type definitions. You can use it in your TypeScript projects with full type checking and autocompletion support.
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import webtonative from 'webtonative';
|
|
17
|
-
|
|
18
|
-
// Initialize the SDK
|
|
19
|
-
const wtn = webtonative();
|
|
20
|
-
|
|
21
|
-
// Use with TypeScript type checking
|
|
22
|
-
wtn.statusBar({ color: '#FFFFFF', style: 'dark' });
|
|
23
|
-
|
|
24
|
-
// Access device information with typed response
|
|
25
|
-
wtn.deviceInfo().then(info => {
|
|
26
|
-
console.log(info);
|
|
27
|
-
});
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Documentation
|
|
31
|
-
|
|
32
|
-
For complete documentation, visit:
|
|
33
|
-
https://docs.webtonative.com
|
package/build/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { StatusBarOptions, DownloadBlobFileOptions, CustomFileDownloadOptions } from "./types";
|
|
2
|
-
export declare const isAndroidApp: boolean;
|
|
3
|
-
export declare const isIosApp: boolean;
|
|
4
|
-
/**
|
|
5
|
-
* This function hides splash screen
|
|
6
|
-
* @example wtn.hideSplashScreen()
|
|
7
|
-
*/
|
|
8
|
-
export declare const hideSplashScreen: () => void;
|
|
9
|
-
export declare const statusBar: (options: StatusBarOptions) => void;
|
|
10
|
-
export declare const downloadFile: (downloadUrl: string) => void;
|
|
11
|
-
export declare const downloadBlobFile: ({ fileName, downloadUrl }: DownloadBlobFileOptions) => void;
|
|
12
|
-
export declare const customFileDownload: ({ downloadUrl, fileName, isBlob, mimeType, cookies, userAgent, openFileAfterDownload }: CustomFileDownloadOptions) => void;
|
|
13
|
-
export declare const deviceInfo: () => Promise<any>;
|
|
14
|
-
export declare const showInAppReview: () => void;
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
package/build/package.json
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "webtonative",
|
|
3
|
-
"version": "1.0.75-beta.2",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "build/index.js",
|
|
6
|
-
"types": "build/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "rimraf build && tsc && ts-node buildScript.ts && npm run dist",
|
|
9
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
10
|
-
"dist": "NODE_ENV=production webpack --config webpack.config.js"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/webtonative/webtonative.git"
|
|
15
|
-
},
|
|
16
|
-
"author": "",
|
|
17
|
-
"license": "ISC",
|
|
18
|
-
"bugs": {
|
|
19
|
-
"url": "https://github.com/webtonative/webtonative/issues"
|
|
20
|
-
},
|
|
21
|
-
"homepage": "https://github.com/webtonative/webtonative#readme",
|
|
22
|
-
"dependencies": {},
|
|
23
|
-
"devDependencies": {
|
|
24
|
-
"@babel/cli": "^7.14.5",
|
|
25
|
-
"@babel/core": "^7.14.6",
|
|
26
|
-
"@babel/preset-env": "^7.14.7",
|
|
27
|
-
"@types/node": "^18.11.18",
|
|
28
|
-
"babel-loader": "^8.2.2",
|
|
29
|
-
"babel-preset-minify": "^0.5.1",
|
|
30
|
-
"rimraf": "^3.0.2",
|
|
31
|
-
"ts-loader": "^9.4.2",
|
|
32
|
-
"ts-node": "^10.9.1",
|
|
33
|
-
"typescript": "^4.9.4",
|
|
34
|
-
"webpack": "^5.40.0",
|
|
35
|
-
"webpack-cli": "^4.7.2"
|
|
36
|
-
},
|
|
37
|
-
"exports": {
|
|
38
|
-
".": {
|
|
39
|
-
"import": "./build/index.js",
|
|
40
|
-
"types": "./build/index.d.ts"
|
|
41
|
-
},
|
|
42
|
-
"./ATTConsent": {
|
|
43
|
-
"import": "./build/ATTConsent/index.js",
|
|
44
|
-
"types": "./build/ATTConsent/index.d.ts"
|
|
45
|
-
},
|
|
46
|
-
"./AdMob": {
|
|
47
|
-
"import": "./build/AdMob/index.js",
|
|
48
|
-
"types": "./build/AdMob/index.d.ts"
|
|
49
|
-
},
|
|
50
|
-
"./AppReview": {
|
|
51
|
-
"import": "./build/AppReview/index.js",
|
|
52
|
-
"types": "./build/AppReview/index.d.ts"
|
|
53
|
-
},
|
|
54
|
-
"./AppsFlyer": {
|
|
55
|
-
"import": "./build/AppsFlyer/index.js",
|
|
56
|
-
"types": "./build/AppsFlyer/index.d.ts"
|
|
57
|
-
},
|
|
58
|
-
"./BackgroundLocation": {
|
|
59
|
-
"import": "./build/BackgroundLocation/index.js",
|
|
60
|
-
"types": "./build/BackgroundLocation/index.d.ts"
|
|
61
|
-
},
|
|
62
|
-
"./Beacon": {
|
|
63
|
-
"import": "./build/Beacon/index.js",
|
|
64
|
-
"types": "./build/Beacon/index.d.ts"
|
|
65
|
-
},
|
|
66
|
-
"./Biometric": {
|
|
67
|
-
"import": "./build/Biometric/index.js",
|
|
68
|
-
"types": "./build/Biometric/index.d.ts"
|
|
69
|
-
},
|
|
70
|
-
"./Bluetooth": {
|
|
71
|
-
"import": "./build/Bluetooth/index.js",
|
|
72
|
-
"types": "./build/Bluetooth/index.d.ts"
|
|
73
|
-
},
|
|
74
|
-
"./BottomNavigation": {
|
|
75
|
-
"import": "./build/BottomNavigation/index.js",
|
|
76
|
-
"types": "./build/BottomNavigation/index.d.ts"
|
|
77
|
-
},
|
|
78
|
-
"./Clipboard": {
|
|
79
|
-
"import": "./build/Clipboard/index.js",
|
|
80
|
-
"types": "./build/Clipboard/index.d.ts"
|
|
81
|
-
},
|
|
82
|
-
"./Facebook": {
|
|
83
|
-
"import": "./build/Facebook/index.js",
|
|
84
|
-
"types": "./build/Facebook/index.d.ts"
|
|
85
|
-
},
|
|
86
|
-
"./Firebase": {
|
|
87
|
-
"import": "./build/Firebase/index.js",
|
|
88
|
-
"types": "./build/Firebase/index.d.ts"
|
|
89
|
-
},
|
|
90
|
-
"./FirebaseAnalytics": {
|
|
91
|
-
"import": "./build/FirebaseAnalytics/index.js",
|
|
92
|
-
"types": "./build/FirebaseAnalytics/index.d.ts"
|
|
93
|
-
},
|
|
94
|
-
"./Haptics": {
|
|
95
|
-
"import": "./build/Haptics/index.js",
|
|
96
|
-
"types": "./build/Haptics/index.d.ts"
|
|
97
|
-
},
|
|
98
|
-
"./InAppPurchase": {
|
|
99
|
-
"import": "./build/InAppPurchase/index.js",
|
|
100
|
-
"types": "./build/InAppPurchase/index.d.ts"
|
|
101
|
-
},
|
|
102
|
-
"./InAppUpdate": {
|
|
103
|
-
"import": "./build/InAppUpdate/index.js",
|
|
104
|
-
"types": "./build/InAppUpdate/index.d.ts"
|
|
105
|
-
},
|
|
106
|
-
"./MediaPlayer": {
|
|
107
|
-
"import": "./build/MediaPlayer/index.js",
|
|
108
|
-
"types": "./build/MediaPlayer/index.d.ts"
|
|
109
|
-
},
|
|
110
|
-
"./NativeContacts": {
|
|
111
|
-
"import": "./build/NativeContacts/index.js",
|
|
112
|
-
"types": "./build/NativeContacts/index.d.ts"
|
|
113
|
-
},
|
|
114
|
-
"./Notification": {
|
|
115
|
-
"import": "./build/Notification/index.js",
|
|
116
|
-
"types": "./build/Notification/index.d.ts"
|
|
117
|
-
},
|
|
118
|
-
"./OneSignal": {
|
|
119
|
-
"import": "./build/OneSignal/index.js",
|
|
120
|
-
"types": "./build/OneSignal/index.d.ts"
|
|
121
|
-
},
|
|
122
|
-
"./Printing": {
|
|
123
|
-
"import": "./build/Printing/index.js",
|
|
124
|
-
"types": "./build/Printing/index.d.ts"
|
|
125
|
-
},
|
|
126
|
-
"./Screen": {
|
|
127
|
-
"import": "./build/Screen/index.js",
|
|
128
|
-
"types": "./build/Screen/index.d.ts"
|
|
129
|
-
},
|
|
130
|
-
"./Siri": {
|
|
131
|
-
"import": "./build/Siri/index.js",
|
|
132
|
-
"types": "./build/Siri/index.d.ts"
|
|
133
|
-
},
|
|
134
|
-
"./SocialLogin": {
|
|
135
|
-
"import": "./build/SocialLogin/index.js",
|
|
136
|
-
"types": "./build/SocialLogin/index.d.ts"
|
|
137
|
-
},
|
|
138
|
-
"./Stripe": {
|
|
139
|
-
"import": "./build/Stripe/index.js",
|
|
140
|
-
"types": "./build/Stripe/index.d.ts"
|
|
141
|
-
},
|
|
142
|
-
"./VoiceSearch": {
|
|
143
|
-
"import": "./build/VoiceSearch/index.js",
|
|
144
|
-
"types": "./build/VoiceSearch/index.d.ts"
|
|
145
|
-
},
|
|
146
|
-
"./barcode": {
|
|
147
|
-
"import": "./build/barcode/index.js",
|
|
148
|
-
"types": "./build/barcode/index.d.ts"
|
|
149
|
-
},
|
|
150
|
-
"./types": {
|
|
151
|
-
"import": "./build/types/index.js",
|
|
152
|
-
"types": "./build/types/index.d.ts"
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
package/buildScript.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
import path from "path";
|
|
3
|
-
|
|
4
|
-
// Copy README.md to build folder
|
|
5
|
-
fs.copyFileSync("README.md", "build/README.md");
|
|
6
|
-
|
|
7
|
-
// Read package.json, remove private flag, and write to build folder
|
|
8
|
-
const packageJson = JSON.parse(fs.readFileSync("package.json", "utf8"));
|
|
9
|
-
delete packageJson.private;
|
|
10
|
-
|
|
11
|
-
const buildPath = path.resolve("build");
|
|
12
|
-
|
|
13
|
-
const exportsMap = {
|
|
14
|
-
".": {
|
|
15
|
-
import: "./build/index.js",
|
|
16
|
-
types: "./build/index.d.ts",
|
|
17
|
-
},
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const entries = fs.readdirSync(buildPath, { withFileTypes: true });
|
|
21
|
-
|
|
22
|
-
for (const entry of entries) {
|
|
23
|
-
if (entry.isDirectory()) {
|
|
24
|
-
const name = entry.name;
|
|
25
|
-
exportsMap[`./${name}`] = {
|
|
26
|
-
import: `./build/${name}/index.js`,
|
|
27
|
-
types: `./build/${name}/index.d.ts`,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
packageJson.exports = exportsMap;
|
|
33
|
-
|
|
34
|
-
// Write the modified package.json to build folder
|
|
35
|
-
fs.writeFileSync("build/package.json", JSON.stringify(packageJson, null, 4));
|
package/client.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import * as webToNative from "./src/index";
|
|
2
|
-
import * as OneSignal from "./src/OneSignal";
|
|
3
|
-
import VoiceSearch from "./src/VoiceSearch";
|
|
4
|
-
import * as Barcode from "./src/barcode";
|
|
5
|
-
import * as AdMob from "./src/AdMob";
|
|
6
|
-
import { socialLogin } from "./src/SocialLogin/index";
|
|
7
|
-
import * as AppsFlyer from "./src/AppsFlyer";
|
|
8
|
-
import { inAppPurchase, getAllPurchases, getReceiptData } from "./src/InAppPurchase";
|
|
9
|
-
import * as FBEvents from "./src/Facebook/events";
|
|
10
|
-
import * as BottomNavigation from "./src/BottomNavigation";
|
|
11
|
-
import * as contacts from "./src/NativeContacts";
|
|
12
|
-
import * as backgroundLocation from "./src/BackgroundLocation";
|
|
13
|
-
import * as screen from "./src/Screen";
|
|
14
|
-
import * as clipboard from "./src/Clipboard";
|
|
15
|
-
import * as appReview from "./src/AppReview";
|
|
16
|
-
import * as Biometric from "./src/Biometric";
|
|
17
|
-
import * as ATTConsent from "./src/ATTConsent";
|
|
18
|
-
import * as FirebaseAnalytics from "./src/FirebaseAnalytics";
|
|
19
|
-
import * as Firebase from "./src/Firebase";
|
|
20
|
-
import * as Haptics from "./src/Haptics";
|
|
21
|
-
import * as MediaPlayer from "./src/MediaPlayer";
|
|
22
|
-
import * as Printing from "./src/Printing";
|
|
23
|
-
import * as Notification from "./src/Notification";
|
|
24
|
-
import * as Bluetooth from "./src/Bluetooth";
|
|
25
|
-
import * as Stripe from "./src/Stripe";
|
|
26
|
-
import * as InAppUpdate from "./src/InAppUpdate";
|
|
27
|
-
import * as Siri from "./src/Siri";
|
|
28
|
-
import * as Beacon from "./src/Beacon";
|
|
29
|
-
import { webToNativeIos } from "./src/utills";
|
|
30
|
-
|
|
31
|
-
// Define the window interface to add WTN property
|
|
32
|
-
declare global {
|
|
33
|
-
interface Window {
|
|
34
|
-
WTN: typeof webToNative & {
|
|
35
|
-
OneSignal: typeof OneSignal;
|
|
36
|
-
VoiceSearch: typeof VoiceSearch;
|
|
37
|
-
Barcode: typeof Barcode;
|
|
38
|
-
AdMob: typeof AdMob;
|
|
39
|
-
socialLogin: typeof socialLogin;
|
|
40
|
-
inAppPurchase: typeof inAppPurchase;
|
|
41
|
-
getAllPurchases: typeof getAllPurchases;
|
|
42
|
-
getReceiptData: typeof getReceiptData;
|
|
43
|
-
appsflyer: typeof AppsFlyer;
|
|
44
|
-
bottomNavigation: typeof BottomNavigation;
|
|
45
|
-
contacts: typeof contacts;
|
|
46
|
-
screen: typeof screen;
|
|
47
|
-
backgroundLocation: typeof backgroundLocation;
|
|
48
|
-
clipboard: typeof clipboard;
|
|
49
|
-
appReview: typeof appReview;
|
|
50
|
-
Biometric: typeof Biometric;
|
|
51
|
-
ATTConsent: typeof ATTConsent;
|
|
52
|
-
facebook: {
|
|
53
|
-
events: typeof FBEvents;
|
|
54
|
-
};
|
|
55
|
-
FirebaseAnalytics: typeof FirebaseAnalytics;
|
|
56
|
-
Firebase: typeof Firebase;
|
|
57
|
-
Haptics: typeof Haptics;
|
|
58
|
-
MediaPlayer: typeof MediaPlayer;
|
|
59
|
-
Printing: typeof Printing;
|
|
60
|
-
Notification: typeof Notification;
|
|
61
|
-
Bluetooth: typeof Bluetooth;
|
|
62
|
-
Stripe: typeof Stripe;
|
|
63
|
-
InAppUpdate: typeof InAppUpdate;
|
|
64
|
-
Siri: typeof Siri;
|
|
65
|
-
Beacon: typeof Beacon;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// Assign to window.WTN
|
|
71
|
-
window.WTN = webToNative as any;
|
|
72
|
-
|
|
73
|
-
window.WTN.OneSignal = OneSignal;
|
|
74
|
-
window.WTN.VoiceSearch = VoiceSearch;
|
|
75
|
-
window.WTN.Barcode = Barcode;
|
|
76
|
-
window.WTN.AdMob = AdMob;
|
|
77
|
-
window.WTN.socialLogin = socialLogin;
|
|
78
|
-
window.WTN.inAppPurchase = inAppPurchase;
|
|
79
|
-
window.WTN.getAllPurchases = getAllPurchases;
|
|
80
|
-
window.WTN.getReceiptData = getReceiptData;
|
|
81
|
-
window.WTN.appsflyer = AppsFlyer;
|
|
82
|
-
window.WTN.bottomNavigation = BottomNavigation;
|
|
83
|
-
window.WTN.contacts = contacts;
|
|
84
|
-
window.WTN.screen = screen;
|
|
85
|
-
window.WTN.backgroundLocation = backgroundLocation;
|
|
86
|
-
window.WTN.clipboard = clipboard;
|
|
87
|
-
window.WTN.appReview = appReview;
|
|
88
|
-
window.WTN.Biometric = Biometric;
|
|
89
|
-
window.WTN.ATTConsent = ATTConsent;
|
|
90
|
-
window.WTN.facebook = {
|
|
91
|
-
events: FBEvents,
|
|
92
|
-
};
|
|
93
|
-
window.WTN.FirebaseAnalytics = FirebaseAnalytics;
|
|
94
|
-
window.WTN.Firebase = Firebase;
|
|
95
|
-
window.WTN.Haptics = Haptics;
|
|
96
|
-
window.WTN.MediaPlayer = MediaPlayer;
|
|
97
|
-
window.WTN.Printing = Printing;
|
|
98
|
-
window.WTN.Notification = Notification;
|
|
99
|
-
window.WTN.Bluetooth = Bluetooth;
|
|
100
|
-
window.WTN.Stripe = Stripe;
|
|
101
|
-
window.WTN.InAppUpdate = InAppUpdate;
|
|
102
|
-
window.WTN.Siri = Siri;
|
|
103
|
-
window.WTN.Beacon = Beacon;
|
|
104
|
-
|
|
105
|
-
// Export the WTN object as default
|
|
106
|
-
export default window.WTN;
|