@apps-in-toss/web-framework 1.7.0 → 1.7.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/CHANGELOG.md +2 -0
- package/dist/prebuilt/dev.android.js +75 -406
- package/dist/prebuilt/dev.ios.js +75 -406
- package/dist/prebuilt/prod.android.js +46 -358
- package/dist/prebuilt/prod.ios.js +46 -358
- package/package.json +7 -7
|
@@ -11054,6 +11054,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11054
11054
|
function getCallbackIds() {
|
|
11055
11055
|
return Array.from(INTERNAL__callbacks.keys());
|
|
11056
11056
|
}
|
|
11057
|
+
function getReferrer() {
|
|
11058
|
+
try {
|
|
11059
|
+
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
11060
|
+
} catch (e60) {
|
|
11061
|
+
return null;
|
|
11062
|
+
}
|
|
11063
|
+
}
|
|
11057
11064
|
function getOperationalEnvironment() {
|
|
11058
11065
|
return AppsInTossModule.operationalEnvironment;
|
|
11059
11066
|
}
|
|
@@ -11063,7 +11070,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11063
11070
|
return true;
|
|
11064
11071
|
}
|
|
11065
11072
|
var currentVersion = AppsInTossModule.tossAppVersion;
|
|
11066
|
-
var isIOS =
|
|
11073
|
+
var isIOS = import_react_native42.Platform.OS === "ios";
|
|
11067
11074
|
var minVersion = isIOS ? minVersions.ios : minVersions.android;
|
|
11068
11075
|
if (minVersion === void 0) {
|
|
11069
11076
|
return false;
|
|
@@ -11076,148 +11083,9 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11076
11083
|
}
|
|
11077
11084
|
return compareVersions(currentVersion, minVersion) >= 0;
|
|
11078
11085
|
}
|
|
11079
|
-
function loadAdMobInterstitialAd(params) {
|
|
11080
|
-
if (!loadAdMobInterstitialAd.isSupported()) {
|
|
11081
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
11082
|
-
return noop3;
|
|
11083
|
-
}
|
|
11084
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
11085
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadAdMobInterstitialAd", options, {
|
|
11086
|
-
onAdClicked: function() {
|
|
11087
|
-
onEvent({
|
|
11088
|
-
type: "clicked"
|
|
11089
|
-
});
|
|
11090
|
-
},
|
|
11091
|
-
onAdDismissed: function() {
|
|
11092
|
-
onEvent({
|
|
11093
|
-
type: "dismissed"
|
|
11094
|
-
});
|
|
11095
|
-
},
|
|
11096
|
-
onAdFailedToShow: function() {
|
|
11097
|
-
onEvent({
|
|
11098
|
-
type: "failedToShow"
|
|
11099
|
-
});
|
|
11100
|
-
},
|
|
11101
|
-
onAdImpression: function() {
|
|
11102
|
-
onEvent({
|
|
11103
|
-
type: "impression"
|
|
11104
|
-
});
|
|
11105
|
-
},
|
|
11106
|
-
onAdShow: function() {
|
|
11107
|
-
onEvent({
|
|
11108
|
-
type: "show"
|
|
11109
|
-
});
|
|
11110
|
-
},
|
|
11111
|
-
onSuccess: function(result) {
|
|
11112
|
-
return onEvent({
|
|
11113
|
-
type: "loaded",
|
|
11114
|
-
data: result
|
|
11115
|
-
});
|
|
11116
|
-
},
|
|
11117
|
-
onError: onError2
|
|
11118
|
-
});
|
|
11119
|
-
return unregisterCallbacks;
|
|
11120
|
-
}
|
|
11121
|
-
function showAdMobInterstitialAd(params) {
|
|
11122
|
-
if (!showAdMobInterstitialAd.isSupported()) {
|
|
11123
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
11124
|
-
return noop3;
|
|
11125
|
-
}
|
|
11126
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
11127
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showAdMobInterstitialAd", options, {
|
|
11128
|
-
onSuccess: function() {
|
|
11129
|
-
return onEvent({
|
|
11130
|
-
type: "requested"
|
|
11131
|
-
});
|
|
11132
|
-
},
|
|
11133
|
-
onError: onError2
|
|
11134
|
-
});
|
|
11135
|
-
return unregisterCallbacks;
|
|
11136
|
-
}
|
|
11137
|
-
function loadAdMobRewardedAd(params) {
|
|
11138
|
-
if (!loadAdMobRewardedAd.isSupported()) {
|
|
11139
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
11140
|
-
return noop3;
|
|
11141
|
-
}
|
|
11142
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
11143
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("loadAdMobRewardedAd", options, {
|
|
11144
|
-
onAdClicked: function() {
|
|
11145
|
-
onEvent({
|
|
11146
|
-
type: "clicked"
|
|
11147
|
-
});
|
|
11148
|
-
},
|
|
11149
|
-
onAdDismissed: function() {
|
|
11150
|
-
onEvent({
|
|
11151
|
-
type: "dismissed"
|
|
11152
|
-
});
|
|
11153
|
-
},
|
|
11154
|
-
onAdFailedToShow: function() {
|
|
11155
|
-
onEvent({
|
|
11156
|
-
type: "failedToShow"
|
|
11157
|
-
});
|
|
11158
|
-
},
|
|
11159
|
-
onAdImpression: function() {
|
|
11160
|
-
onEvent({
|
|
11161
|
-
type: "impression"
|
|
11162
|
-
});
|
|
11163
|
-
},
|
|
11164
|
-
onAdShow: function() {
|
|
11165
|
-
onEvent({
|
|
11166
|
-
type: "show"
|
|
11167
|
-
});
|
|
11168
|
-
},
|
|
11169
|
-
onUserEarnedReward: function() {
|
|
11170
|
-
onEvent({
|
|
11171
|
-
type: "userEarnedReward"
|
|
11172
|
-
});
|
|
11173
|
-
},
|
|
11174
|
-
onSuccess: function(result) {
|
|
11175
|
-
return onEvent({
|
|
11176
|
-
type: "loaded",
|
|
11177
|
-
data: result
|
|
11178
|
-
});
|
|
11179
|
-
},
|
|
11180
|
-
onError: onError2
|
|
11181
|
-
});
|
|
11182
|
-
return unregisterCallbacks;
|
|
11183
|
-
}
|
|
11184
|
-
function showAdMobRewardedAd(params) {
|
|
11185
|
-
if (!showAdMobRewardedAd.isSupported()) {
|
|
11186
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
11187
|
-
return noop3;
|
|
11188
|
-
}
|
|
11189
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
11190
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler.invokeAppBridgeMethod("showAdMobRewardedAd", options, {
|
|
11191
|
-
onSuccess: function() {
|
|
11192
|
-
return onEvent({
|
|
11193
|
-
type: "requested"
|
|
11194
|
-
});
|
|
11195
|
-
},
|
|
11196
|
-
onError: onError2
|
|
11197
|
-
});
|
|
11198
|
-
return unregisterCallbacks;
|
|
11199
|
-
}
|
|
11200
|
-
function createIsSupported() {
|
|
11201
|
-
return function() {
|
|
11202
|
-
if (ENVIRONMENT !== "toss") {
|
|
11203
|
-
return false;
|
|
11204
|
-
}
|
|
11205
|
-
return isMinVersionSupported({
|
|
11206
|
-
android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION,
|
|
11207
|
-
ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION
|
|
11208
|
-
});
|
|
11209
|
-
};
|
|
11210
|
-
}
|
|
11211
|
-
function getReferrer() {
|
|
11212
|
-
try {
|
|
11213
|
-
return new URL(getSchemeUri()).searchParams.get("referrer");
|
|
11214
|
-
} catch (e60) {
|
|
11215
|
-
return null;
|
|
11216
|
-
}
|
|
11217
|
-
}
|
|
11218
11086
|
function loadAppsInTossAdMob(params) {
|
|
11219
11087
|
if (!loadAppsInTossAdMob.isSupported()) {
|
|
11220
|
-
params.onError(new Error(
|
|
11088
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
11221
11089
|
return noop3;
|
|
11222
11090
|
}
|
|
11223
11091
|
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
@@ -11237,7 +11105,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11237
11105
|
}
|
|
11238
11106
|
function showAppsInTossAdMob(params) {
|
|
11239
11107
|
if (!showAppsInTossAdMob.isSupported()) {
|
|
11240
|
-
params.onError(new Error(
|
|
11108
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE));
|
|
11241
11109
|
return noop3;
|
|
11242
11110
|
}
|
|
11243
11111
|
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
@@ -11285,14 +11153,14 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11285
11153
|
});
|
|
11286
11154
|
return unregisterCallbacks;
|
|
11287
11155
|
}
|
|
11288
|
-
function
|
|
11156
|
+
function createIsSupported() {
|
|
11289
11157
|
return function() {
|
|
11290
|
-
if (
|
|
11158
|
+
if (ENVIRONMENT !== "toss") {
|
|
11291
11159
|
return false;
|
|
11292
11160
|
}
|
|
11293
11161
|
return isMinVersionSupported({
|
|
11294
|
-
android:
|
|
11295
|
-
ios:
|
|
11162
|
+
android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION,
|
|
11163
|
+
ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION
|
|
11296
11164
|
});
|
|
11297
11165
|
};
|
|
11298
11166
|
}
|
|
@@ -11695,7 +11563,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11695
11563
|
}
|
|
11696
11564
|
});
|
|
11697
11565
|
}
|
|
11698
|
-
var import_react_native37, import_react_native38,
|
|
11566
|
+
var import_react_native37, import_react_native38, import_react_native42, import_react_native43, import_react_native44, import_react_native45, import_react_native46, import_react_native47, import_react_native48, Module, AppsInTossModuleInstance, AppsInTossModule, nativeEventEmitter2, UpdateLocationEvent, INTERNAL__callbacks, INTERNAL__appBridgeHandler, UNSAFE__nativeEventEmitter, AppBridgeCallbackEvent, VisibilityChangedByTransparentServiceWebEvent, appsInTossEvent, SEMVER_REGEX, isWildcard, tryParse, coerceTypes, compareValues, parseVersion, compareSegments, compareVersions, ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE, ENVIRONMENT, DEFAULT_MAX_COUNT, DEFAULT_MAX_WIDTH, fetchAlbumPhotos, fetchContacts, getClipboardText, getCurrentLocation, setClipboardText, openCamera, IAP, Storage, GAME_CENTER_MIN_VERSION, GoogleAdMob, BedrockModule, BedrockCoreModule, TossCoreModule, INTERNAL__module;
|
|
11699
11567
|
var init_dist6 = __esm({
|
|
11700
11568
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/dist/index.js"() {
|
|
11701
11569
|
"use strict";
|
|
@@ -11719,9 +11587,8 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11719
11587
|
init_src3();
|
|
11720
11588
|
init_src3();
|
|
11721
11589
|
init_dist5();
|
|
11722
|
-
import_react_native41 = __toESM(require_react_native(), 1);
|
|
11723
|
-
init_dist5();
|
|
11724
11590
|
init_src3();
|
|
11591
|
+
import_react_native42 = __toESM(require_react_native(), 1);
|
|
11725
11592
|
init_dist4();
|
|
11726
11593
|
init_dist4();
|
|
11727
11594
|
init_dist4();
|
|
@@ -11983,20 +11850,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
11983
11850
|
}
|
|
11984
11851
|
return 0;
|
|
11985
11852
|
};
|
|
11986
|
-
ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.
|
|
11987
|
-
IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.
|
|
11853
|
+
ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.227.0";
|
|
11854
|
+
IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION = "5.227.0";
|
|
11988
11855
|
UNSUPPORTED_ERROR_MESSAGE = "This feature is not supported in the current environment";
|
|
11989
11856
|
ENVIRONMENT = getOperationalEnvironment();
|
|
11990
|
-
|
|
11991
|
-
|
|
11992
|
-
showAdMobInterstitialAd.isSupported = createIsSupported();
|
|
11993
|
-
showAdMobRewardedAd.isSupported = createIsSupported();
|
|
11994
|
-
ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
|
|
11995
|
-
IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
|
|
11996
|
-
UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
11997
|
-
ENVIRONMENT2 = getOperationalEnvironment();
|
|
11998
|
-
loadAppsInTossAdMob.isSupported = createIsSupported2();
|
|
11999
|
-
showAppsInTossAdMob.isSupported = createIsSupported2();
|
|
11857
|
+
loadAppsInTossAdMob.isSupported = createIsSupported();
|
|
11858
|
+
showAppsInTossAdMob.isSupported = createIsSupported();
|
|
12000
11859
|
DEFAULT_MAX_COUNT = 10;
|
|
12001
11860
|
DEFAULT_MAX_WIDTH = 1024;
|
|
12002
11861
|
fetchAlbumPhotos = createPermissionFunction({
|
|
@@ -12130,10 +11989,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
12130
11989
|
ios: "5.221.0"
|
|
12131
11990
|
};
|
|
12132
11991
|
GoogleAdMob = {
|
|
12133
|
-
loadAdMobInterstitialAd,
|
|
12134
|
-
showAdMobInterstitialAd,
|
|
12135
|
-
loadAdMobRewardedAd,
|
|
12136
|
-
showAdMobRewardedAd,
|
|
12137
11992
|
loadAppsInTossAdMob,
|
|
12138
11993
|
showAppsInTossAdMob
|
|
12139
11994
|
};
|
|
@@ -44661,158 +44516,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44661
44516
|
}
|
|
44662
44517
|
});
|
|
44663
44518
|
|
|
44664
|
-
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts
|
|
44665
|
-
function loadAdMobInterstitialAd2(params) {
|
|
44666
|
-
if (!loadAdMobInterstitialAd2.isSupported()) {
|
|
44667
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
|
|
44668
|
-
return noop3;
|
|
44669
|
-
}
|
|
44670
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
44671
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobInterstitialAd", options, {
|
|
44672
|
-
onAdClicked: function() {
|
|
44673
|
-
onEvent({
|
|
44674
|
-
type: "clicked"
|
|
44675
|
-
});
|
|
44676
|
-
},
|
|
44677
|
-
onAdDismissed: function() {
|
|
44678
|
-
onEvent({
|
|
44679
|
-
type: "dismissed"
|
|
44680
|
-
});
|
|
44681
|
-
},
|
|
44682
|
-
onAdFailedToShow: function() {
|
|
44683
|
-
onEvent({
|
|
44684
|
-
type: "failedToShow"
|
|
44685
|
-
});
|
|
44686
|
-
},
|
|
44687
|
-
onAdImpression: function() {
|
|
44688
|
-
onEvent({
|
|
44689
|
-
type: "impression"
|
|
44690
|
-
});
|
|
44691
|
-
},
|
|
44692
|
-
onAdShow: function() {
|
|
44693
|
-
onEvent({
|
|
44694
|
-
type: "show"
|
|
44695
|
-
});
|
|
44696
|
-
},
|
|
44697
|
-
onSuccess: function(result) {
|
|
44698
|
-
return onEvent({
|
|
44699
|
-
type: "loaded",
|
|
44700
|
-
data: result
|
|
44701
|
-
});
|
|
44702
|
-
},
|
|
44703
|
-
onError: onError2
|
|
44704
|
-
});
|
|
44705
|
-
return unregisterCallbacks;
|
|
44706
|
-
}
|
|
44707
|
-
function showAdMobInterstitialAd2(params) {
|
|
44708
|
-
if (!showAdMobInterstitialAd2.isSupported()) {
|
|
44709
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
|
|
44710
|
-
return noop3;
|
|
44711
|
-
}
|
|
44712
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
44713
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobInterstitialAd", options, {
|
|
44714
|
-
onSuccess: function() {
|
|
44715
|
-
return onEvent({
|
|
44716
|
-
type: "requested"
|
|
44717
|
-
});
|
|
44718
|
-
},
|
|
44719
|
-
onError: onError2
|
|
44720
|
-
});
|
|
44721
|
-
return unregisterCallbacks;
|
|
44722
|
-
}
|
|
44723
|
-
function loadAdMobRewardedAd2(params) {
|
|
44724
|
-
if (!loadAdMobRewardedAd2.isSupported()) {
|
|
44725
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
|
|
44726
|
-
return noop3;
|
|
44727
|
-
}
|
|
44728
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
44729
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("loadAdMobRewardedAd", options, {
|
|
44730
|
-
onAdClicked: function() {
|
|
44731
|
-
onEvent({
|
|
44732
|
-
type: "clicked"
|
|
44733
|
-
});
|
|
44734
|
-
},
|
|
44735
|
-
onAdDismissed: function() {
|
|
44736
|
-
onEvent({
|
|
44737
|
-
type: "dismissed"
|
|
44738
|
-
});
|
|
44739
|
-
},
|
|
44740
|
-
onAdFailedToShow: function() {
|
|
44741
|
-
onEvent({
|
|
44742
|
-
type: "failedToShow"
|
|
44743
|
-
});
|
|
44744
|
-
},
|
|
44745
|
-
onAdImpression: function() {
|
|
44746
|
-
onEvent({
|
|
44747
|
-
type: "impression"
|
|
44748
|
-
});
|
|
44749
|
-
},
|
|
44750
|
-
onAdShow: function() {
|
|
44751
|
-
onEvent({
|
|
44752
|
-
type: "show"
|
|
44753
|
-
});
|
|
44754
|
-
},
|
|
44755
|
-
onUserEarnedReward: function() {
|
|
44756
|
-
onEvent({
|
|
44757
|
-
type: "userEarnedReward"
|
|
44758
|
-
});
|
|
44759
|
-
},
|
|
44760
|
-
onSuccess: function(result) {
|
|
44761
|
-
return onEvent({
|
|
44762
|
-
type: "loaded",
|
|
44763
|
-
data: result
|
|
44764
|
-
});
|
|
44765
|
-
},
|
|
44766
|
-
onError: onError2
|
|
44767
|
-
});
|
|
44768
|
-
return unregisterCallbacks;
|
|
44769
|
-
}
|
|
44770
|
-
function showAdMobRewardedAd2(params) {
|
|
44771
|
-
if (!showAdMobRewardedAd2.isSupported()) {
|
|
44772
|
-
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
|
|
44773
|
-
return noop3;
|
|
44774
|
-
}
|
|
44775
|
-
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
44776
|
-
var unregisterCallbacks = INTERNAL__appBridgeHandler2.invokeAppBridgeMethod("showAdMobRewardedAd", options, {
|
|
44777
|
-
onSuccess: function() {
|
|
44778
|
-
return onEvent({
|
|
44779
|
-
type: "requested"
|
|
44780
|
-
});
|
|
44781
|
-
},
|
|
44782
|
-
onError: onError2
|
|
44783
|
-
});
|
|
44784
|
-
return unregisterCallbacks;
|
|
44785
|
-
}
|
|
44786
|
-
function createIsSupported3() {
|
|
44787
|
-
return function() {
|
|
44788
|
-
if (ENVIRONMENT3 !== "toss") {
|
|
44789
|
-
return false;
|
|
44790
|
-
}
|
|
44791
|
-
return isMinVersionSupported2({
|
|
44792
|
-
android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3,
|
|
44793
|
-
ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3
|
|
44794
|
-
});
|
|
44795
|
-
};
|
|
44796
|
-
}
|
|
44797
|
-
var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3;
|
|
44798
|
-
var init_googleAdMob = __esm({
|
|
44799
|
-
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMob.ts"() {
|
|
44800
|
-
"use strict";
|
|
44801
|
-
init_dist5();
|
|
44802
|
-
init_appBridge();
|
|
44803
|
-
init_getOperationalEnvironment();
|
|
44804
|
-
init_isMinVersionSupported();
|
|
44805
|
-
ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
|
|
44806
|
-
IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION3 = "5.209.0";
|
|
44807
|
-
UNSUPPORTED_ERROR_MESSAGE3 = "This feature is not supported in the current environment";
|
|
44808
|
-
ENVIRONMENT3 = getOperationalEnvironment2();
|
|
44809
|
-
loadAdMobInterstitialAd2.isSupported = createIsSupported3();
|
|
44810
|
-
loadAdMobRewardedAd2.isSupported = createIsSupported3();
|
|
44811
|
-
showAdMobInterstitialAd2.isSupported = createIsSupported3();
|
|
44812
|
-
showAdMobRewardedAd2.isSupported = createIsSupported3();
|
|
44813
|
-
}
|
|
44814
|
-
});
|
|
44815
|
-
|
|
44816
44519
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/utils/getReferrer.ts
|
|
44817
44520
|
function getReferrer2() {
|
|
44818
44521
|
try {
|
|
@@ -44831,7 +44534,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44831
44534
|
// ../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts
|
|
44832
44535
|
function loadAppsInTossAdMob2(params) {
|
|
44833
44536
|
if (!loadAppsInTossAdMob2.isSupported()) {
|
|
44834
|
-
params.onError(new Error(
|
|
44537
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
44835
44538
|
return noop3;
|
|
44836
44539
|
}
|
|
44837
44540
|
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
@@ -44851,7 +44554,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44851
44554
|
}
|
|
44852
44555
|
function showAppsInTossAdMob2(params) {
|
|
44853
44556
|
if (!showAppsInTossAdMob2.isSupported()) {
|
|
44854
|
-
params.onError(new Error(
|
|
44557
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE2));
|
|
44855
44558
|
return noop3;
|
|
44856
44559
|
}
|
|
44857
44560
|
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
@@ -44899,18 +44602,18 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44899
44602
|
});
|
|
44900
44603
|
return unregisterCallbacks;
|
|
44901
44604
|
}
|
|
44902
|
-
function
|
|
44605
|
+
function createIsSupported2() {
|
|
44903
44606
|
return function() {
|
|
44904
|
-
if (
|
|
44607
|
+
if (ENVIRONMENT2 !== "toss") {
|
|
44905
44608
|
return false;
|
|
44906
44609
|
}
|
|
44907
44610
|
return isMinVersionSupported2({
|
|
44908
|
-
android:
|
|
44909
|
-
ios:
|
|
44611
|
+
android: ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2,
|
|
44612
|
+
ios: IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2
|
|
44910
44613
|
});
|
|
44911
44614
|
};
|
|
44912
44615
|
}
|
|
44913
|
-
var
|
|
44616
|
+
var ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2, IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2, UNSUPPORTED_ERROR_MESSAGE2, ENVIRONMENT2;
|
|
44914
44617
|
var init_googleAdMobV2 = __esm({
|
|
44915
44618
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/ads/googleAdMobV2.ts"() {
|
|
44916
44619
|
"use strict";
|
|
@@ -44921,12 +44624,12 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44921
44624
|
init_appBridge();
|
|
44922
44625
|
init_getOperationalEnvironment();
|
|
44923
44626
|
init_isMinVersionSupported();
|
|
44924
|
-
|
|
44925
|
-
|
|
44926
|
-
|
|
44927
|
-
|
|
44928
|
-
loadAppsInTossAdMob2.isSupported =
|
|
44929
|
-
showAppsInTossAdMob2.isSupported =
|
|
44627
|
+
ANDROID_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
|
|
44628
|
+
IOS_GOOGLE_AD_MOB_SUPPORTED_VERSION2 = "5.227.0";
|
|
44629
|
+
UNSUPPORTED_ERROR_MESSAGE2 = "This feature is not supported in the current environment";
|
|
44630
|
+
ENVIRONMENT2 = getOperationalEnvironment2();
|
|
44631
|
+
loadAppsInTossAdMob2.isSupported = createIsSupported2();
|
|
44632
|
+
showAppsInTossAdMob2.isSupported = createIsSupported2();
|
|
44930
44633
|
}
|
|
44931
44634
|
});
|
|
44932
44635
|
|
|
@@ -44990,7 +44693,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
44990
44693
|
var init_native_modules2 = __esm({
|
|
44991
44694
|
"../../../.yarn/__virtual__/@apps-in-toss-native-modules-virtual-e56741e8de/1/packages/apps-in-toss/native-modules/src/AppsInTossModule/native-modules/index.ts"() {
|
|
44992
44695
|
"use strict";
|
|
44993
|
-
init_googleAdMob();
|
|
44994
44696
|
init_googleAdMobV2();
|
|
44995
44697
|
init_checkoutPayment();
|
|
44996
44698
|
init_AppsInTossModule();
|
|
@@ -46228,7 +45930,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
46228
45930
|
}
|
|
46229
45931
|
function fetchTossAd(params) {
|
|
46230
45932
|
if (!fetchTossAd.isSupported()) {
|
|
46231
|
-
params.onError(new Error(
|
|
45933
|
+
params.onError(new Error(UNSUPPORTED_ERROR_MESSAGE3));
|
|
46232
45934
|
return noop4;
|
|
46233
45935
|
}
|
|
46234
45936
|
var onEvent = params.onEvent, onError2 = params.onError, options = params.options;
|
|
@@ -47257,11 +46959,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47257
46959
|
options
|
|
47258
46960
|
});
|
|
47259
46961
|
},
|
|
47260
|
-
/** AdMob */
|
|
47261
|
-
loadAdMobInterstitialAd: GoogleAdMob.loadAdMobInterstitialAd,
|
|
47262
|
-
showAdMobInterstitialAd: GoogleAdMob.showAdMobInterstitialAd,
|
|
47263
|
-
loadAdMobRewardedAd: GoogleAdMob.loadAdMobRewardedAd,
|
|
47264
|
-
showAdMobRewardedAd: GoogleAdMob.showAdMobRewardedAd,
|
|
47265
46962
|
/** AdMobV2 */
|
|
47266
46963
|
loadAppsInTossAdMob: GoogleAdMob.loadAppsInTossAdMob,
|
|
47267
46964
|
showAppsInTossAdMob: GoogleAdMob.showAppsInTossAdMob,
|
|
@@ -47275,17 +46972,13 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47275
46972
|
requestOneTimePurchase
|
|
47276
46973
|
}),
|
|
47277
46974
|
constantHandlerMap: _object_spread_props(_object_spread(_object_spread_props(_object_spread({}, constant_bridges_exports), {
|
|
47278
|
-
|
|
47279
|
-
return
|
|
47280
|
-
|
|
47281
|
-
|
|
47282
|
-
|
|
47283
|
-
|
|
47284
|
-
|
|
47285
|
-
return insets.left;
|
|
47286
|
-
},
|
|
47287
|
-
getSafeAreaRight: function() {
|
|
47288
|
-
return insets.right;
|
|
46975
|
+
getSafeAreaInsets: function() {
|
|
46976
|
+
return {
|
|
46977
|
+
top,
|
|
46978
|
+
bottom,
|
|
46979
|
+
left: insets.left,
|
|
46980
|
+
right: insets.right
|
|
46981
|
+
};
|
|
47289
46982
|
}
|
|
47290
46983
|
}), Object.fromEntries(Object.entries(global2).map(function(param) {
|
|
47291
46984
|
var _$_param = _sliced_to_array(param, 2), key = _$_param[0], value = _$_param[1];
|
|
@@ -47296,11 +46989,6 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47296
46989
|
}
|
|
47297
46990
|
];
|
|
47298
46991
|
}))), {
|
|
47299
|
-
/** AdMob */
|
|
47300
|
-
loadAdMobInterstitialAd_isSupported: GoogleAdMob.loadAdMobInterstitialAd.isSupported,
|
|
47301
|
-
showAdMobInterstitialAd_isSupported: GoogleAdMob.showAdMobInterstitialAd.isSupported,
|
|
47302
|
-
loadAdMobRewardedAd_isSupported: GoogleAdMob.loadAdMobRewardedAd.isSupported,
|
|
47303
|
-
showAdMobRewardedAd_isSupported: GoogleAdMob.showAdMobRewardedAd.isSupported,
|
|
47304
46992
|
/** AdMobV2 */
|
|
47305
46993
|
loadAppsInTossAdMob_isSupported: GoogleAdMob.loadAppsInTossAdMob.isSupported,
|
|
47306
46994
|
showAppsInTossAdMob_isSupported: GoogleAdMob.showAppsInTossAdMob.isSupported,
|
|
@@ -47440,7 +47128,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47440
47128
|
if ([
|
|
47441
47129
|
"https:",
|
|
47442
47130
|
"http:"
|
|
47443
|
-
].includes(url.protocol)) {
|
|
47131
|
+
].includes(url.protocol) || url.href === "about:blank") {
|
|
47444
47132
|
return true;
|
|
47445
47133
|
} else {
|
|
47446
47134
|
var _convertIntentURL;
|
|
@@ -47482,7 +47170,7 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
47482
47170
|
return typeof script === "string";
|
|
47483
47171
|
}).join("\n");
|
|
47484
47172
|
}
|
|
47485
|
-
var import_react_native197, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime218, import_react213, import_jsx_runtime219, import_react214, import_react_native203, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime220, import_jsx_runtime221, import_react221, import_react_native210, import_react222, import_react223, import_react224, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_jsx_runtime225, import_react225, import_jsx_runtime226, import_jsx_runtime227, import_react_native219, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime231, import_jsx_runtime232, import_react229, import_react230, import_jsx_runtime233, import_jsx_runtime234, import_react231, import_react232, import_react233, import_react234, import_react_native230, import_react235, import_react236, import_jsx_runtime235, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION,
|
|
47173
|
+
var import_react_native197, import_react209, import_react210, import_react211, import_react212, import_jsx_runtime218, import_react213, import_jsx_runtime219, import_react214, import_react_native203, import_react215, import_react_native205, import_react216, import_react_native207, import_react217, import_react218, import_react219, import_react220, import_jsx_runtime220, import_jsx_runtime221, import_react221, import_react_native210, import_react222, import_react223, import_react224, import_react_native215, import_react_native216, import_jsx_runtime222, import_jsx_runtime223, import_jsx_runtime224, import_jsx_runtime225, import_react225, import_jsx_runtime226, import_jsx_runtime227, import_react_native219, import_jsx_runtime228, import_jsx_runtime229, import_jsx_runtime230, import_react226, import_react_native221, import_react227, import_react_native222, import_react228, import_react_native224, import_jsx_runtime231, import_jsx_runtime232, import_react229, import_react230, import_jsx_runtime233, import_jsx_runtime234, import_react231, import_react232, import_react233, import_react234, import_react_native230, import_react235, import_react236, import_jsx_runtime235, __defProp2, __getOwnPropDesc2, __getOwnPropNames2, __hasOwnProp2, __copyProps2, __reExport2, env, EXIT_IMPRESSION_LOG_NAME, EXIT_IMPRESSION_SCHEMA_ID, ENTRY_APP_EVENT_SCHEMA_ID, AppEvent, UPDATE_SCHEME, NavigationBarContext, GAME_PROFILE_WEBVIEW_URL, GAME_MIN_VERSION, PLAYSTORE_LINK, APPSTORE_LINK, getMarketLink, UPDATE_DIALOG_SCHEMA_ID, UPDATE_DIALOG_LOG_NAME, UPDATE_DIALOG_CTA_CLICK_SCHEMA_ID, UPDATE_DIALOG_CTA_CLICK_LOG_NAME, DEFAULT_ERROR, useErrorAlert, INTERNAL__onVisibilityChangedByTransparentServiceWeb, openTransparentWebView, useTransparentWebview, useGameProfileToast, useGameCenterProfile, Z_INDEX, GameInitializer, overlayStyle, NAVI_BAR_IMPRESSION_SCHEMA_ID, NAVI_BAR_IMPRESSION_LOG_NAME, CLOSE_POPUP_SHOW_SCHEMA_ID, CLOSE_POPUP_SHOW_LOG_NAME, CLOSE_BUTTON_CLICK_SCHEMA_ID, CLOSE_BUTTON_CLICK_LOG_NAME, CLOSE_POPUP_CTA_CLICK_SCHEMA_ID, CLOSE_POPUP_CTA_CLICK_LOG_NAME, HOME_BUTTON_CLICK_SCHEMA_ID, HOME_BUTTON_CLICK_LOG_NAME, BOTTOM_SHEET_SCHEMA_ID, BOTTOM_SHEET_LOG_NAME, BOTTOM_SHEET_OPEN_SCHEMA_ID, BOTTOM_SHEET_OPEN_LOG_NAME, BOTTOM_SHEET_CLOSE_CLICK_SCHEMA_ID, BOTTOM_SHEET_CLOSE_CLICK_LOG_NAME, BOTTOM_SHEET_MENU_CLICK_SCHEMA_ID, BOTTOM_SHEET_MENU_CLICK_LOG_NAME, iconNameRegExp, iconURLRegExp, SHARE_SCHEME_REFERRER, APP_SHARE_MENU_INFO, APP_BRIDGE_METHOD_NAME, MIN_VERSION, RNNavigationBar, bridge_entry_exports, AppsInToss, GameWebView, PartnerWebView, sessionId, ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION, IOS_FETCH_TOSS_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE3, ENVIRONMENT3, OPERATIONAL_ENVIRONMENT, OS, APP_VER, ALPHA_EVENT_TRACKER_HTTP_ENDPOINT, LIVE_EVENT_TRACKER_HTTP_ENDPOINT, INTEGRATED_AD_SDK_VERSION, ANDROID_INTEGRATED_AD_SUPPORTED_VERSION, IOS_INTEGRATED_AD_SUPPORTED_VERSION, UNSUPPORTED_ERROR_MESSAGE22, INTG_AD_ADM_FALLBACK_RID_MAP, loadFullScreenAd, loadFullScreenAdForWeb, globalEventListenerMap, EventEmitter, INITIAL_STATE, HISTORY_BACK_SCRIPT, HISTORY_HOME_SCRIPT, FontA11yCategory, androidFontScaleMap, iosScaleToAndroidScale, extractDateFromUUIDv7, getGroupId, getReferrer22, trackScreen, operationalEnvironment, TYPES, WEBVIEW_TYPES, Analytics2;
|
|
47486
47174
|
var init_dist8 = __esm({
|
|
47487
47175
|
"../../../.yarn/__virtual__/@apps-in-toss-framework-virtual-afbad361af/1/packages/apps-in-toss/framework/dist/index.js"() {
|
|
47488
47176
|
"use strict";
|
|
@@ -48241,10 +47929,10 @@ var global=typeof globalThis!=='undefined'?globalThis:typeof global!=='undefined
|
|
|
48241
47929
|
sessionId = generateSessionId();
|
|
48242
47930
|
ANDROID_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48243
47931
|
IOS_FETCH_TOSS_AD_SUPPORTED_VERSION = "5.241.0";
|
|
48244
|
-
|
|
48245
|
-
|
|
47932
|
+
UNSUPPORTED_ERROR_MESSAGE3 = "This feature is not supported in the current environment";
|
|
47933
|
+
ENVIRONMENT3 = getOperationalEnvironment();
|
|
48246
47934
|
fetchTossAd.isSupported = function() {
|
|
48247
|
-
if (
|
|
47935
|
+
if (ENVIRONMENT3 !== "toss") {
|
|
48248
47936
|
return false;
|
|
48249
47937
|
}
|
|
48250
47938
|
return isMinVersionSupported({
|