@rafaykhan021/mas-capacitor 1.0.0
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/Package.swift +28 -0
- package/README.md +158 -0
- package/Yodo1MasCapacitor.podspec +21 -0
- package/android/build.gradle +66 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/yodo1/mas/capacitor/Yodo1Mas.java +11 -0
- package/android/src/main/java/com/yodo1/mas/capacitor/Yodo1MasPlugin.java +415 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +311 -0
- package/dist/esm/definitions.d.ts +39 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +9 -0
- package/dist/esm/web.js +19 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +33 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +36 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/Yodo1MasPlugin/Yodo1Mas.swift +241 -0
- package/ios/Sources/Yodo1MasPlugin/Yodo1MasPlugin.swift +84 -0
- package/ios/Tests/Yodo1MasPluginTests/Yodo1MasTests.swift +15 -0
- package/package.json +84 -0
package/dist/docs.json
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "Yodo1MasPlugin",
|
|
4
|
+
"slug": "yodo1masplugin",
|
|
5
|
+
"docs": "",
|
|
6
|
+
"tags": [],
|
|
7
|
+
"methods": [
|
|
8
|
+
{
|
|
9
|
+
"name": "initialize",
|
|
10
|
+
"signature": "(options: InitializeOptions) => Promise<InitializeResult>",
|
|
11
|
+
"parameters": [
|
|
12
|
+
{
|
|
13
|
+
"name": "options",
|
|
14
|
+
"docs": "",
|
|
15
|
+
"type": "InitializeOptions"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"returns": "Promise<InitializeResult>",
|
|
19
|
+
"tags": [],
|
|
20
|
+
"docs": "",
|
|
21
|
+
"complexTypes": [
|
|
22
|
+
"InitializeResult",
|
|
23
|
+
"InitializeOptions"
|
|
24
|
+
],
|
|
25
|
+
"slug": "initialize"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "loadAd",
|
|
29
|
+
"signature": "(options: LoadAdOptions) => Promise<ActionResult>",
|
|
30
|
+
"parameters": [
|
|
31
|
+
{
|
|
32
|
+
"name": "options",
|
|
33
|
+
"docs": "",
|
|
34
|
+
"type": "LoadAdOptions"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"returns": "Promise<ActionResult>",
|
|
38
|
+
"tags": [],
|
|
39
|
+
"docs": "",
|
|
40
|
+
"complexTypes": [
|
|
41
|
+
"ActionResult",
|
|
42
|
+
"LoadAdOptions"
|
|
43
|
+
],
|
|
44
|
+
"slug": "loadad"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "showAd",
|
|
48
|
+
"signature": "(options: ShowAdOptions) => Promise<ActionResult>",
|
|
49
|
+
"parameters": [
|
|
50
|
+
{
|
|
51
|
+
"name": "options",
|
|
52
|
+
"docs": "",
|
|
53
|
+
"type": "ShowAdOptions"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"returns": "Promise<ActionResult>",
|
|
57
|
+
"tags": [],
|
|
58
|
+
"docs": "",
|
|
59
|
+
"complexTypes": [
|
|
60
|
+
"ActionResult",
|
|
61
|
+
"ShowAdOptions"
|
|
62
|
+
],
|
|
63
|
+
"slug": "showad"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "isAdLoaded",
|
|
67
|
+
"signature": "(options: IsAdLoadedOptions) => Promise<IsAdLoadedResult>",
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"name": "options",
|
|
71
|
+
"docs": "",
|
|
72
|
+
"type": "IsAdLoadedOptions"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"returns": "Promise<IsAdLoadedResult>",
|
|
76
|
+
"tags": [],
|
|
77
|
+
"docs": "",
|
|
78
|
+
"complexTypes": [
|
|
79
|
+
"IsAdLoadedResult",
|
|
80
|
+
"IsAdLoadedOptions"
|
|
81
|
+
],
|
|
82
|
+
"slug": "isadloaded"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"properties": []
|
|
86
|
+
},
|
|
87
|
+
"interfaces": [
|
|
88
|
+
{
|
|
89
|
+
"name": "InitializeResult",
|
|
90
|
+
"slug": "initializeresult",
|
|
91
|
+
"docs": "",
|
|
92
|
+
"tags": [],
|
|
93
|
+
"methods": [],
|
|
94
|
+
"properties": [
|
|
95
|
+
{
|
|
96
|
+
"name": "initialized",
|
|
97
|
+
"tags": [],
|
|
98
|
+
"docs": "",
|
|
99
|
+
"complexTypes": [],
|
|
100
|
+
"type": "boolean"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "errorCode",
|
|
104
|
+
"tags": [],
|
|
105
|
+
"docs": "",
|
|
106
|
+
"complexTypes": [],
|
|
107
|
+
"type": "string | undefined"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "message",
|
|
111
|
+
"tags": [],
|
|
112
|
+
"docs": "",
|
|
113
|
+
"complexTypes": [],
|
|
114
|
+
"type": "string | undefined"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "InitializeOptions",
|
|
120
|
+
"slug": "initializeoptions",
|
|
121
|
+
"docs": "",
|
|
122
|
+
"tags": [],
|
|
123
|
+
"methods": [],
|
|
124
|
+
"properties": [
|
|
125
|
+
{
|
|
126
|
+
"name": "appKey",
|
|
127
|
+
"tags": [],
|
|
128
|
+
"docs": "",
|
|
129
|
+
"complexTypes": [],
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "coppa",
|
|
134
|
+
"tags": [],
|
|
135
|
+
"docs": "",
|
|
136
|
+
"complexTypes": [],
|
|
137
|
+
"type": "boolean | undefined"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "gdpr",
|
|
141
|
+
"tags": [],
|
|
142
|
+
"docs": "",
|
|
143
|
+
"complexTypes": [],
|
|
144
|
+
"type": "boolean | undefined"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "ccpa",
|
|
148
|
+
"tags": [],
|
|
149
|
+
"docs": "",
|
|
150
|
+
"complexTypes": [],
|
|
151
|
+
"type": "boolean | undefined"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"name": "autoDelayIfLoadFail",
|
|
155
|
+
"tags": [],
|
|
156
|
+
"docs": "",
|
|
157
|
+
"complexTypes": [],
|
|
158
|
+
"type": "boolean | undefined"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "ActionResult",
|
|
164
|
+
"slug": "actionresult",
|
|
165
|
+
"docs": "",
|
|
166
|
+
"tags": [],
|
|
167
|
+
"methods": [],
|
|
168
|
+
"properties": [
|
|
169
|
+
{
|
|
170
|
+
"name": "ok",
|
|
171
|
+
"tags": [],
|
|
172
|
+
"docs": "",
|
|
173
|
+
"complexTypes": [],
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "action",
|
|
178
|
+
"tags": [],
|
|
179
|
+
"docs": "",
|
|
180
|
+
"complexTypes": [],
|
|
181
|
+
"type": "'loadAd' | 'showAd'"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "adType",
|
|
185
|
+
"tags": [],
|
|
186
|
+
"docs": "",
|
|
187
|
+
"complexTypes": [
|
|
188
|
+
"AdType"
|
|
189
|
+
],
|
|
190
|
+
"type": "AdType"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "placementId",
|
|
194
|
+
"tags": [],
|
|
195
|
+
"docs": "",
|
|
196
|
+
"complexTypes": [],
|
|
197
|
+
"type": "string | undefined"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "LoadAdOptions",
|
|
203
|
+
"slug": "loadadoptions",
|
|
204
|
+
"docs": "",
|
|
205
|
+
"tags": [],
|
|
206
|
+
"methods": [],
|
|
207
|
+
"properties": [
|
|
208
|
+
{
|
|
209
|
+
"name": "adType",
|
|
210
|
+
"tags": [],
|
|
211
|
+
"docs": "",
|
|
212
|
+
"complexTypes": [
|
|
213
|
+
"AdType"
|
|
214
|
+
],
|
|
215
|
+
"type": "AdType"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"name": "ShowAdOptions",
|
|
221
|
+
"slug": "showadoptions",
|
|
222
|
+
"docs": "",
|
|
223
|
+
"tags": [],
|
|
224
|
+
"methods": [],
|
|
225
|
+
"properties": [
|
|
226
|
+
{
|
|
227
|
+
"name": "adType",
|
|
228
|
+
"tags": [],
|
|
229
|
+
"docs": "",
|
|
230
|
+
"complexTypes": [
|
|
231
|
+
"AdType"
|
|
232
|
+
],
|
|
233
|
+
"type": "AdType"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "placementId",
|
|
237
|
+
"tags": [],
|
|
238
|
+
"docs": "",
|
|
239
|
+
"complexTypes": [],
|
|
240
|
+
"type": "string | undefined"
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "IsAdLoadedResult",
|
|
246
|
+
"slug": "isadloadedresult",
|
|
247
|
+
"docs": "",
|
|
248
|
+
"tags": [],
|
|
249
|
+
"methods": [],
|
|
250
|
+
"properties": [
|
|
251
|
+
{
|
|
252
|
+
"name": "isLoaded",
|
|
253
|
+
"tags": [],
|
|
254
|
+
"docs": "",
|
|
255
|
+
"complexTypes": [],
|
|
256
|
+
"type": "boolean"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "adType",
|
|
260
|
+
"tags": [],
|
|
261
|
+
"docs": "",
|
|
262
|
+
"complexTypes": [
|
|
263
|
+
"AdType"
|
|
264
|
+
],
|
|
265
|
+
"type": "AdType"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"name": "IsAdLoadedOptions",
|
|
271
|
+
"slug": "isadloadedoptions",
|
|
272
|
+
"docs": "",
|
|
273
|
+
"tags": [],
|
|
274
|
+
"methods": [],
|
|
275
|
+
"properties": [
|
|
276
|
+
{
|
|
277
|
+
"name": "adType",
|
|
278
|
+
"tags": [],
|
|
279
|
+
"docs": "",
|
|
280
|
+
"complexTypes": [
|
|
281
|
+
"AdType"
|
|
282
|
+
],
|
|
283
|
+
"type": "AdType"
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"enums": [],
|
|
289
|
+
"typeAliases": [
|
|
290
|
+
{
|
|
291
|
+
"name": "AdType",
|
|
292
|
+
"slug": "adtype",
|
|
293
|
+
"docs": "",
|
|
294
|
+
"types": [
|
|
295
|
+
{
|
|
296
|
+
"text": "'appopen'",
|
|
297
|
+
"complexTypes": []
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"text": "'interstitial'",
|
|
301
|
+
"complexTypes": []
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"text": "'rewarded'",
|
|
305
|
+
"complexTypes": []
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"pluginConfigs": []
|
|
311
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export type AdType = 'appopen' | 'interstitial' | 'rewarded';
|
|
2
|
+
export interface InitializeOptions {
|
|
3
|
+
appKey: string;
|
|
4
|
+
coppa?: boolean;
|
|
5
|
+
gdpr?: boolean;
|
|
6
|
+
ccpa?: boolean;
|
|
7
|
+
autoDelayIfLoadFail?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface InitializeResult {
|
|
10
|
+
initialized: boolean;
|
|
11
|
+
errorCode?: string;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface LoadAdOptions {
|
|
15
|
+
adType: AdType;
|
|
16
|
+
}
|
|
17
|
+
export interface ShowAdOptions {
|
|
18
|
+
adType: AdType;
|
|
19
|
+
placementId?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ActionResult {
|
|
22
|
+
ok: boolean;
|
|
23
|
+
action: 'loadAd' | 'showAd';
|
|
24
|
+
adType: AdType;
|
|
25
|
+
placementId?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface IsAdLoadedOptions {
|
|
28
|
+
adType: AdType;
|
|
29
|
+
}
|
|
30
|
+
export interface IsAdLoadedResult {
|
|
31
|
+
isLoaded: boolean;
|
|
32
|
+
adType: AdType;
|
|
33
|
+
}
|
|
34
|
+
export interface Yodo1MasPlugin {
|
|
35
|
+
initialize(options: InitializeOptions): Promise<InitializeResult>;
|
|
36
|
+
loadAd(options: LoadAdOptions): Promise<ActionResult>;
|
|
37
|
+
showAd(options: ShowAdOptions): Promise<ActionResult>;
|
|
38
|
+
isAdLoaded(options: IsAdLoadedOptions): Promise<IsAdLoadedResult>;
|
|
39
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export type AdType = 'appopen' | 'interstitial' | 'rewarded';\n\n/* ───────────────────────────\n * Initialization\n * ─────────────────────────── */\n\nexport interface InitializeOptions {\n appKey: string;\n coppa?: boolean;\n gdpr?: boolean;\n ccpa?: boolean;\n autoDelayIfLoadFail?: boolean;\n}\n\nexport interface InitializeResult {\n initialized: boolean;\n errorCode?: string;\n message?: string;\n}\n\n/* ───────────────────────────\n * Ad actions\n * ─────────────────────────── */\n\nexport interface LoadAdOptions {\n adType: AdType;\n}\n\nexport interface ShowAdOptions {\n adType: AdType;\n placementId?: string;\n}\n\nexport interface ActionResult {\n ok: boolean;\n action: 'loadAd' | 'showAd';\n adType: AdType;\n placementId?: string;\n}\n\n/* ───────────────────────────\n * State checks\n * ─────────────────────────── */\n\nexport interface IsAdLoadedOptions {\n adType: AdType;\n}\n\nexport interface IsAdLoadedResult {\n isLoaded: boolean;\n adType: AdType;\n}\n\n/* ───────────────────────────\n * Plugin API\n * ─────────────────────────── */\n\nexport interface Yodo1MasPlugin {\n initialize(options: InitializeOptions): Promise<InitializeResult>;\n\n loadAd(options: LoadAdOptions): Promise<ActionResult>;\n\n showAd(options: ShowAdOptions): Promise<ActionResult>;\n\n isAdLoaded(options: IsAdLoadedOptions): Promise<IsAdLoadedResult>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGjD,MAAM,QAAQ,GAAG,cAAc,CAAiB,UAAU,EAAE;IAC1D,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;CAC5D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\nimport type { Yodo1MasPlugin } from './definitions';\n\nconst Yodo1Mas = registerPlugin<Yodo1MasPlugin>('Yodo1Mas', {\n web: () => import('./web').then((m) => new m.Yodo1MasWeb()),\n});\n\nexport * from './definitions';\nexport { Yodo1Mas };\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { WebPlugin } from '@capacitor/core';
|
|
2
|
+
import type { ActionResult, InitializeOptions, InitializeResult, IsAdLoadedOptions, IsAdLoadedResult, LoadAdOptions, ShowAdOptions, Yodo1MasPlugin } from './definitions';
|
|
3
|
+
export declare class Yodo1MasWeb extends WebPlugin implements Yodo1MasPlugin {
|
|
4
|
+
private throwUnavailable;
|
|
5
|
+
initialize(_options: InitializeOptions): Promise<InitializeResult>;
|
|
6
|
+
loadAd(_options: LoadAdOptions): Promise<ActionResult>;
|
|
7
|
+
showAd(_options: ShowAdOptions): Promise<ActionResult>;
|
|
8
|
+
isAdLoaded(_options: IsAdLoadedOptions): Promise<IsAdLoadedResult>;
|
|
9
|
+
}
|
package/dist/esm/web.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WebPlugin } from '@capacitor/core';
|
|
2
|
+
export class Yodo1MasWeb extends WebPlugin {
|
|
3
|
+
throwUnavailable() {
|
|
4
|
+
throw new Error('Yodo1Mas is not available on Web. Use Android or iOS.');
|
|
5
|
+
}
|
|
6
|
+
async initialize(_options) {
|
|
7
|
+
return this.throwUnavailable();
|
|
8
|
+
}
|
|
9
|
+
async loadAd(_options) {
|
|
10
|
+
return this.throwUnavailable();
|
|
11
|
+
}
|
|
12
|
+
async showAd(_options) {
|
|
13
|
+
return this.throwUnavailable();
|
|
14
|
+
}
|
|
15
|
+
async isAdLoaded(_options) {
|
|
16
|
+
return this.throwUnavailable();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAY5C,MAAM,OAAO,WAAY,SAAQ,SAAS;IAChC,gBAAgB;QACtB,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC3E,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,QAA2B;QAC1C,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAuB;QAClC,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,QAAuB;QAClC,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,QAA2B;QAC1C,OAAO,IAAI,CAAC,gBAAgB,EAAE,CAAC;IACjC,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\nimport type {\n ActionResult,\n InitializeOptions,\n InitializeResult,\n IsAdLoadedOptions,\n IsAdLoadedResult,\n LoadAdOptions,\n ShowAdOptions,\n Yodo1MasPlugin,\n} from './definitions';\n\nexport class Yodo1MasWeb extends WebPlugin implements Yodo1MasPlugin {\n private throwUnavailable(): never {\n throw new Error('Yodo1Mas is not available on Web. Use Android or iOS.');\n }\n\n async initialize(_options: InitializeOptions): Promise<InitializeResult> {\n return this.throwUnavailable();\n }\n\n async loadAd(_options: LoadAdOptions): Promise<ActionResult> {\n return this.throwUnavailable();\n }\n\n async showAd(_options: ShowAdOptions): Promise<ActionResult> {\n return this.throwUnavailable();\n }\n\n async isAdLoaded(_options: IsAdLoadedOptions): Promise<IsAdLoadedResult> {\n return this.throwUnavailable();\n }\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@capacitor/core');
|
|
4
|
+
|
|
5
|
+
const Yodo1Mas = core.registerPlugin('Yodo1Mas', {
|
|
6
|
+
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.Yodo1MasWeb()),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
class Yodo1MasWeb extends core.WebPlugin {
|
|
10
|
+
throwUnavailable() {
|
|
11
|
+
throw new Error('Yodo1Mas is not available on Web. Use Android or iOS.');
|
|
12
|
+
}
|
|
13
|
+
async initialize(_options) {
|
|
14
|
+
return this.throwUnavailable();
|
|
15
|
+
}
|
|
16
|
+
async loadAd(_options) {
|
|
17
|
+
return this.throwUnavailable();
|
|
18
|
+
}
|
|
19
|
+
async showAd(_options) {
|
|
20
|
+
return this.throwUnavailable();
|
|
21
|
+
}
|
|
22
|
+
async isAdLoaded(_options) {
|
|
23
|
+
return this.throwUnavailable();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var web = /*#__PURE__*/Object.freeze({
|
|
28
|
+
__proto__: null,
|
|
29
|
+
Yodo1MasWeb: Yodo1MasWeb
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
exports.Yodo1Mas = Yodo1Mas;
|
|
33
|
+
//# sourceMappingURL=plugin.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Yodo1Mas = registerPlugin('Yodo1Mas', {\n web: () => import('./web').then((m) => new m.Yodo1MasWeb()),\n});\nexport * from './definitions';\nexport { Yodo1Mas };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class Yodo1MasWeb extends WebPlugin {\n throwUnavailable() {\n throw new Error('Yodo1Mas is not available on Web. Use Android or iOS.');\n }\n async initialize(_options) {\n return this.throwUnavailable();\n }\n async loadAd(_options) {\n return this.throwUnavailable();\n }\n async showAd(_options) {\n return this.throwUnavailable();\n }\n async isAdLoaded(_options) {\n return this.throwUnavailable();\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;AAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;AAC/D,CAAC;;ACFM,MAAM,WAAW,SAASC,cAAS,CAAC;AAC3C,IAAI,gBAAgB,GAAG;AACvB,QAAQ,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;AAChF,IAAI;AACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;AAC/B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;AAC3B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;AACtC,IAAI;AACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;AAC/B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;AACtC,IAAI;AACJ;;;;;;;;;"}
|
package/dist/plugin.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var capacitorYodo1Mas = (function (exports, core) {
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const Yodo1Mas = core.registerPlugin('Yodo1Mas', {
|
|
5
|
+
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.Yodo1MasWeb()),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
class Yodo1MasWeb extends core.WebPlugin {
|
|
9
|
+
throwUnavailable() {
|
|
10
|
+
throw new Error('Yodo1Mas is not available on Web. Use Android or iOS.');
|
|
11
|
+
}
|
|
12
|
+
async initialize(_options) {
|
|
13
|
+
return this.throwUnavailable();
|
|
14
|
+
}
|
|
15
|
+
async loadAd(_options) {
|
|
16
|
+
return this.throwUnavailable();
|
|
17
|
+
}
|
|
18
|
+
async showAd(_options) {
|
|
19
|
+
return this.throwUnavailable();
|
|
20
|
+
}
|
|
21
|
+
async isAdLoaded(_options) {
|
|
22
|
+
return this.throwUnavailable();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var web = /*#__PURE__*/Object.freeze({
|
|
27
|
+
__proto__: null,
|
|
28
|
+
Yodo1MasWeb: Yodo1MasWeb
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
exports.Yodo1Mas = Yodo1Mas;
|
|
32
|
+
|
|
33
|
+
return exports;
|
|
34
|
+
|
|
35
|
+
})({}, capacitorExports);
|
|
36
|
+
//# sourceMappingURL=plugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Yodo1Mas = registerPlugin('Yodo1Mas', {\n web: () => import('./web').then((m) => new m.Yodo1MasWeb()),\n});\nexport * from './definitions';\nexport { Yodo1Mas };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class Yodo1MasWeb extends WebPlugin {\n throwUnavailable() {\n throw new Error('Yodo1Mas is not available on Web. Use Android or iOS.');\n }\n async initialize(_options) {\n return this.throwUnavailable();\n }\n async loadAd(_options) {\n return this.throwUnavailable();\n }\n async showAd(_options) {\n return this.throwUnavailable();\n }\n async isAdLoaded(_options) {\n return this.throwUnavailable();\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,QAAQ,GAAGA,mBAAc,CAAC,UAAU,EAAE;IAC5C,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/D,CAAC;;ICFM,MAAM,WAAW,SAASC,cAAS,CAAC;IAC3C,IAAI,gBAAgB,GAAG;IACvB,QAAQ,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;IAChF,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;IAC3B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,MAAM,CAAC,QAAQ,EAAE;IAC3B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;IACtC,IAAI;IACJ,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,OAAO,IAAI,CAAC,gBAAgB,EAAE;IACtC,IAAI;IACJ;;;;;;;;;;;;;;;"}
|