@capawesome/capacitor-live-update 6.8.0 → 6.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CapawesomeCapacitorLiveUpdate.podspec +2 -2
- package/README.md +429 -20
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdate.java +894 -279
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdateConfig.java +35 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdateHttpClient.java +56 -11
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdatePlugin.java +274 -38
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/LiveUpdatePreferences.java +52 -3
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/api/GetChannelsResponseItem.java +28 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/api/GetLatestBundleResponse.java +11 -2
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/events/DownloadBundleProgressEvent.java +32 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/events/NextBundleSetEvent.java +26 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/options/FetchChannelsOptions.java +38 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/options/SetConfigOptions.java +19 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/options/SyncOptions.java +4 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/ChannelResult.java +28 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/FetchChannelsResult.java +28 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/FetchLatestBundleResult.java +8 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/GetBlockedBundlesResult.java +27 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/GetConfigResult.java +40 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/GetDownloadedBundlesResult.java +27 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/IsSyncingResult.java +26 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/classes/results/ReadyResult.java +32 -0
- package/android/src/main/java/io/capawesome/capacitorjs/plugins/liveupdate/interfaces/DownloadProgressCallback.java +5 -0
- package/dist/docs.json +853 -50
- package/dist/esm/definitions.d.ts +411 -1
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +10 -2
- package/dist/esm/web.js +24 -0
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +24 -0
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +24 -0
- package/dist/plugin.js.map +1 -1
- package/ios/Plugin/Classes/Events/DownloadBundleProgressEvent.swift +25 -0
- package/ios/Plugin/Classes/Events/NextBundleSetEvent.swift +16 -0
- package/ios/Plugin/Classes/Options/FetchChannelsOptions.swift +26 -0
- package/ios/Plugin/Classes/Options/SetConfigOptions.swift +14 -0
- package/ios/Plugin/Classes/Options/SyncOptions.swift +4 -0
- package/ios/Plugin/Classes/Results/ChannelResult.swift +19 -0
- package/ios/Plugin/Classes/Results/FetchChannelsResult.swift +16 -0
- package/ios/Plugin/Classes/Results/{FetchLatestBundle.swift → FetchLatestBundleResult.swift} +6 -1
- package/ios/Plugin/Classes/Results/GetBlockedBundlesResult.swift +16 -0
- package/ios/Plugin/Classes/Results/GetConfigResult.swift +19 -0
- package/ios/Plugin/Classes/Results/GetDownloadedBundlesResult.swift +16 -0
- package/ios/Plugin/Classes/Results/IsSyncingResult.swift +16 -0
- package/ios/Plugin/Classes/Results/ReadyResult.swift +22 -0
- package/ios/Plugin/LiveUpdate.swift +456 -152
- package/ios/Plugin/LiveUpdateConfig.swift +3 -0
- package/ios/Plugin/LiveUpdateHttpClient.swift +21 -4
- package/ios/Plugin/LiveUpdatePlugin.swift +174 -14
- package/ios/Plugin/LiveUpdatePreferences.swift +54 -12
- package/ios/Plugin/Protocols/Api/GetChannelsResponseItem.swift +4 -0
- package/ios/Plugin/Protocols/Api/GetLatestBundleResponse.swift +1 -0
- package/package.json +5 -5
- package/ios/Plugin/LiveUpdatePlugin.h +0 -10
- package/ios/Plugin/LiveUpdatePlugin.m +0 -27
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,23 +1,31 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
|
-
import type { DeleteBundleOptions, DownloadBundleOptions, FetchLatestBundleResult, GetBundleResult, GetBundlesResult, GetChannelResult, GetCurrentBundleResult, GetCustomIdResult, GetDeviceIdResult, GetNextBundleResult, GetVersionCodeResult, GetVersionNameResult, LiveUpdatePlugin, SetBundleOptions, SetChannelOptions, SetCustomIdOptions, SetNextBundleOptions, SyncResult } from './definitions';
|
|
2
|
+
import type { DeleteBundleOptions, DownloadBundleOptions, FetchChannelsResult, FetchLatestBundleResult, GetBlockedBundlesResult, GetBundleResult, GetBundlesResult, GetChannelResult, GetConfigResult, GetCurrentBundleResult, GetCustomIdResult, GetDeviceIdResult, GetDownloadedBundlesResult, GetNextBundleResult, GetVersionCodeResult, GetVersionNameResult, IsSyncingResult, LiveUpdatePlugin, ReadyResult, SetBundleOptions, SetChannelOptions, SetConfigOptions, SetCustomIdOptions, SetNextBundleOptions, SyncResult } from './definitions';
|
|
3
3
|
export declare class LiveUpdateWeb extends WebPlugin implements LiveUpdatePlugin {
|
|
4
|
+
clearBlockedBundles(): Promise<void>;
|
|
4
5
|
deleteBundle(_options: DeleteBundleOptions): Promise<void>;
|
|
5
6
|
downloadBundle(_options: DownloadBundleOptions): Promise<void>;
|
|
7
|
+
fetchChannels(): Promise<FetchChannelsResult>;
|
|
6
8
|
fetchLatestBundle(): Promise<FetchLatestBundleResult>;
|
|
9
|
+
getBlockedBundles(): Promise<GetBlockedBundlesResult>;
|
|
7
10
|
getBundle(): Promise<GetBundleResult>;
|
|
8
11
|
getBundles(): Promise<GetBundlesResult>;
|
|
9
12
|
getChannel(): Promise<GetChannelResult>;
|
|
13
|
+
getConfig(): Promise<GetConfigResult>;
|
|
10
14
|
getCurrentBundle(): Promise<GetCurrentBundleResult>;
|
|
11
15
|
getCustomId(): Promise<GetCustomIdResult>;
|
|
12
16
|
getDeviceId(): Promise<GetDeviceIdResult>;
|
|
17
|
+
getDownloadedBundles(): Promise<GetDownloadedBundlesResult>;
|
|
13
18
|
getNextBundle(): Promise<GetNextBundleResult>;
|
|
14
19
|
getVersionCode(): Promise<GetVersionCodeResult>;
|
|
15
20
|
getVersionName(): Promise<GetVersionNameResult>;
|
|
16
|
-
|
|
21
|
+
isSyncing(): Promise<IsSyncingResult>;
|
|
22
|
+
ready(): Promise<ReadyResult>;
|
|
17
23
|
reload(): Promise<void>;
|
|
18
24
|
reset(): Promise<void>;
|
|
25
|
+
resetConfig(): Promise<void>;
|
|
19
26
|
setBundle(_options: SetBundleOptions): Promise<void>;
|
|
20
27
|
setChannel(_options: SetChannelOptions): Promise<void>;
|
|
28
|
+
setConfig(_options: SetConfigOptions): Promise<void>;
|
|
21
29
|
setCustomId(_options: SetCustomIdOptions): Promise<void>;
|
|
22
30
|
setNextBundle(_options: SetNextBundleOptions): Promise<void>;
|
|
23
31
|
sync(): Promise<SyncResult>;
|
package/dist/esm/web.js
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import { WebPlugin } from '@capacitor/core';
|
|
2
2
|
export class LiveUpdateWeb extends WebPlugin {
|
|
3
|
+
async clearBlockedBundles() {
|
|
4
|
+
this.throwUnimplementedError();
|
|
5
|
+
}
|
|
3
6
|
async deleteBundle(_options) {
|
|
4
7
|
this.throwUnimplementedError();
|
|
5
8
|
}
|
|
6
9
|
async downloadBundle(_options) {
|
|
7
10
|
this.throwUnimplementedError();
|
|
8
11
|
}
|
|
12
|
+
async fetchChannels() {
|
|
13
|
+
this.throwUnimplementedError();
|
|
14
|
+
}
|
|
9
15
|
async fetchLatestBundle() {
|
|
10
16
|
this.throwUnimplementedError();
|
|
11
17
|
}
|
|
18
|
+
async getBlockedBundles() {
|
|
19
|
+
this.throwUnimplementedError();
|
|
20
|
+
}
|
|
12
21
|
async getBundle() {
|
|
13
22
|
this.throwUnimplementedError();
|
|
14
23
|
}
|
|
@@ -18,6 +27,9 @@ export class LiveUpdateWeb extends WebPlugin {
|
|
|
18
27
|
async getChannel() {
|
|
19
28
|
this.throwUnimplementedError();
|
|
20
29
|
}
|
|
30
|
+
async getConfig() {
|
|
31
|
+
this.throwUnimplementedError();
|
|
32
|
+
}
|
|
21
33
|
async getCurrentBundle() {
|
|
22
34
|
this.throwUnimplementedError();
|
|
23
35
|
}
|
|
@@ -27,6 +39,9 @@ export class LiveUpdateWeb extends WebPlugin {
|
|
|
27
39
|
async getDeviceId() {
|
|
28
40
|
this.throwUnimplementedError();
|
|
29
41
|
}
|
|
42
|
+
async getDownloadedBundles() {
|
|
43
|
+
this.throwUnimplementedError();
|
|
44
|
+
}
|
|
30
45
|
async getNextBundle() {
|
|
31
46
|
this.throwUnimplementedError();
|
|
32
47
|
}
|
|
@@ -36,6 +51,9 @@ export class LiveUpdateWeb extends WebPlugin {
|
|
|
36
51
|
async getVersionName() {
|
|
37
52
|
this.throwUnimplementedError();
|
|
38
53
|
}
|
|
54
|
+
async isSyncing() {
|
|
55
|
+
this.throwUnimplementedError();
|
|
56
|
+
}
|
|
39
57
|
async ready() {
|
|
40
58
|
this.throwUnimplementedError();
|
|
41
59
|
}
|
|
@@ -45,12 +63,18 @@ export class LiveUpdateWeb extends WebPlugin {
|
|
|
45
63
|
async reset() {
|
|
46
64
|
this.throwUnimplementedError();
|
|
47
65
|
}
|
|
66
|
+
async resetConfig() {
|
|
67
|
+
this.throwUnimplementedError();
|
|
68
|
+
}
|
|
48
69
|
async setBundle(_options) {
|
|
49
70
|
this.throwUnimplementedError();
|
|
50
71
|
}
|
|
51
72
|
async setChannel(_options) {
|
|
52
73
|
this.throwUnimplementedError();
|
|
53
74
|
}
|
|
75
|
+
async setConfig(_options) {
|
|
76
|
+
this.throwUnimplementedError();
|
|
77
|
+
}
|
|
54
78
|
async setCustomId(_options) {
|
|
55
79
|
this.throwUnimplementedError();
|
|
56
80
|
}
|
package/dist/esm/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AA8B5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IACnC,KAAK,CAAC,mBAAmB;QAC9B,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,QAA6B;QACrD,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,QAA+B;QACzD,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,aAAa;QACxB,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,iBAAiB;QAC5B,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,iBAAiB;QAC5B,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,SAAS;QACpB,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,UAAU;QACrB,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAA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AAS,CAAC,QAA0B;QAC/C,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,WAAW,CAAC,QAA4B;QACnD,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,aAAa,CAAC,QAA8B;QACvD,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEM,KAAK,CAAC,IAAI;QACf,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACjC,CAAC;IAEO,uBAAuB;QAC7B,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n DeleteBundleOptions,\n DownloadBundleOptions,\n FetchChannelsResult,\n FetchLatestBundleResult,\n GetBlockedBundlesResult,\n GetBundleResult,\n GetBundlesResult,\n GetChannelResult,\n GetConfigResult,\n GetCurrentBundleResult,\n GetCustomIdResult,\n GetDeviceIdResult,\n GetDownloadedBundlesResult,\n GetNextBundleResult,\n GetVersionCodeResult,\n GetVersionNameResult,\n IsSyncingResult,\n LiveUpdatePlugin,\n ReadyResult,\n SetBundleOptions,\n SetChannelOptions,\n SetConfigOptions,\n SetCustomIdOptions,\n SetNextBundleOptions,\n SyncResult,\n} from './definitions';\n\nexport class LiveUpdateWeb extends WebPlugin implements LiveUpdatePlugin {\n public async clearBlockedBundles(): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async deleteBundle(_options: DeleteBundleOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async downloadBundle(_options: DownloadBundleOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async fetchChannels(): Promise<FetchChannelsResult> {\n this.throwUnimplementedError();\n }\n\n public async fetchLatestBundle(): Promise<FetchLatestBundleResult> {\n this.throwUnimplementedError();\n }\n\n public async getBlockedBundles(): Promise<GetBlockedBundlesResult> {\n this.throwUnimplementedError();\n }\n\n public async getBundle(): Promise<GetBundleResult> {\n this.throwUnimplementedError();\n }\n\n public async getBundles(): Promise<GetBundlesResult> {\n this.throwUnimplementedError();\n }\n\n public async getChannel(): Promise<GetChannelResult> {\n this.throwUnimplementedError();\n }\n\n public async getConfig(): Promise<GetConfigResult> {\n this.throwUnimplementedError();\n }\n\n public async getCurrentBundle(): Promise<GetCurrentBundleResult> {\n this.throwUnimplementedError();\n }\n\n public async getCustomId(): Promise<GetCustomIdResult> {\n this.throwUnimplementedError();\n }\n\n public async getDeviceId(): Promise<GetDeviceIdResult> {\n this.throwUnimplementedError();\n }\n\n public async getDownloadedBundles(): Promise<GetDownloadedBundlesResult> {\n this.throwUnimplementedError();\n }\n\n public async getNextBundle(): Promise<GetNextBundleResult> {\n this.throwUnimplementedError();\n }\n\n public async getVersionCode(): Promise<GetVersionCodeResult> {\n this.throwUnimplementedError();\n }\n\n public async getVersionName(): Promise<GetVersionNameResult> {\n this.throwUnimplementedError();\n }\n\n public async isSyncing(): Promise<IsSyncingResult> {\n this.throwUnimplementedError();\n }\n\n public async ready(): Promise<ReadyResult> {\n this.throwUnimplementedError();\n }\n\n public async reload(): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async reset(): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async resetConfig(): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async setBundle(_options: SetBundleOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async setChannel(_options: SetChannelOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async setConfig(_options: SetConfigOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async setCustomId(_options: SetCustomIdOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async setNextBundle(_options: SetNextBundleOptions): Promise<void> {\n this.throwUnimplementedError();\n }\n\n public async sync(): Promise<SyncResult> {\n this.throwUnimplementedError();\n }\n\n private throwUnimplementedError(): never {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n"]}
|
package/dist/plugin.cjs.js
CHANGED
|
@@ -9,15 +9,24 @@ const LiveUpdate = core.registerPlugin('LiveUpdate', {
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
class LiveUpdateWeb extends core.WebPlugin {
|
|
12
|
+
async clearBlockedBundles() {
|
|
13
|
+
this.throwUnimplementedError();
|
|
14
|
+
}
|
|
12
15
|
async deleteBundle(_options) {
|
|
13
16
|
this.throwUnimplementedError();
|
|
14
17
|
}
|
|
15
18
|
async downloadBundle(_options) {
|
|
16
19
|
this.throwUnimplementedError();
|
|
17
20
|
}
|
|
21
|
+
async fetchChannels() {
|
|
22
|
+
this.throwUnimplementedError();
|
|
23
|
+
}
|
|
18
24
|
async fetchLatestBundle() {
|
|
19
25
|
this.throwUnimplementedError();
|
|
20
26
|
}
|
|
27
|
+
async getBlockedBundles() {
|
|
28
|
+
this.throwUnimplementedError();
|
|
29
|
+
}
|
|
21
30
|
async getBundle() {
|
|
22
31
|
this.throwUnimplementedError();
|
|
23
32
|
}
|
|
@@ -27,6 +36,9 @@ class LiveUpdateWeb extends core.WebPlugin {
|
|
|
27
36
|
async getChannel() {
|
|
28
37
|
this.throwUnimplementedError();
|
|
29
38
|
}
|
|
39
|
+
async getConfig() {
|
|
40
|
+
this.throwUnimplementedError();
|
|
41
|
+
}
|
|
30
42
|
async getCurrentBundle() {
|
|
31
43
|
this.throwUnimplementedError();
|
|
32
44
|
}
|
|
@@ -36,6 +48,9 @@ class LiveUpdateWeb extends core.WebPlugin {
|
|
|
36
48
|
async getDeviceId() {
|
|
37
49
|
this.throwUnimplementedError();
|
|
38
50
|
}
|
|
51
|
+
async getDownloadedBundles() {
|
|
52
|
+
this.throwUnimplementedError();
|
|
53
|
+
}
|
|
39
54
|
async getNextBundle() {
|
|
40
55
|
this.throwUnimplementedError();
|
|
41
56
|
}
|
|
@@ -45,6 +60,9 @@ class LiveUpdateWeb extends core.WebPlugin {
|
|
|
45
60
|
async getVersionName() {
|
|
46
61
|
this.throwUnimplementedError();
|
|
47
62
|
}
|
|
63
|
+
async isSyncing() {
|
|
64
|
+
this.throwUnimplementedError();
|
|
65
|
+
}
|
|
48
66
|
async ready() {
|
|
49
67
|
this.throwUnimplementedError();
|
|
50
68
|
}
|
|
@@ -54,12 +72,18 @@ class LiveUpdateWeb extends core.WebPlugin {
|
|
|
54
72
|
async reset() {
|
|
55
73
|
this.throwUnimplementedError();
|
|
56
74
|
}
|
|
75
|
+
async resetConfig() {
|
|
76
|
+
this.throwUnimplementedError();
|
|
77
|
+
}
|
|
57
78
|
async setBundle(_options) {
|
|
58
79
|
this.throwUnimplementedError();
|
|
59
80
|
}
|
|
60
81
|
async setChannel(_options) {
|
|
61
82
|
this.throwUnimplementedError();
|
|
62
83
|
}
|
|
84
|
+
async setConfig(_options) {
|
|
85
|
+
this.throwUnimplementedError();
|
|
86
|
+
}
|
|
63
87
|
async setCustomId(_options) {
|
|
64
88
|
this.throwUnimplementedError();
|
|
65
89
|
}
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst LiveUpdate = registerPlugin('LiveUpdate', {\n web: () => import('./web').then((m) => new m.LiveUpdateWeb()),\n});\nexport * from './definitions';\nexport { LiveUpdate };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LiveUpdateWeb extends WebPlugin {\n async deleteBundle(_options) {\n this.throwUnimplementedError();\n }\n async downloadBundle(_options) {\n this.throwUnimplementedError();\n }\n async fetchLatestBundle() {\n this.throwUnimplementedError();\n }\n async getBundle() {\n this.throwUnimplementedError();\n }\n async getBundles() {\n this.throwUnimplementedError();\n }\n async getChannel() {\n this.throwUnimplementedError();\n }\n async getCurrentBundle() {\n this.throwUnimplementedError();\n }\n async getCustomId() {\n this.throwUnimplementedError();\n }\n async getDeviceId() {\n this.throwUnimplementedError();\n }\n async getNextBundle() {\n this.throwUnimplementedError();\n }\n async getVersionCode() {\n this.throwUnimplementedError();\n }\n async getVersionName() {\n this.throwUnimplementedError();\n }\n async ready() {\n this.throwUnimplementedError();\n }\n async reload() {\n this.throwUnimplementedError();\n }\n async reset() {\n this.throwUnimplementedError();\n }\n async setBundle(_options) {\n this.throwUnimplementedError();\n }\n async setChannel(_options) {\n this.throwUnimplementedError();\n }\n async setCustomId(_options) {\n this.throwUnimplementedError();\n }\n async setNextBundle(_options) {\n this.throwUnimplementedError();\n }\n async sync() {\n this.throwUnimplementedError();\n }\n throwUnimplementedError() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,aAAa,SAASC,cAAS,CAAC;AAC7C,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;AACjC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,cAAc,CAAC,QAAQ,EAAE;AACnC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,gBAAgB,G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AAC;AACvC,KAAK;AACL,IAAI,uBAAuB,GAAG;AAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst LiveUpdate = registerPlugin('LiveUpdate', {\n web: () => import('./web').then((m) => new m.LiveUpdateWeb()),\n});\nexport * from './definitions';\nexport { LiveUpdate };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LiveUpdateWeb extends WebPlugin {\n async clearBlockedBundles() {\n this.throwUnimplementedError();\n }\n async deleteBundle(_options) {\n this.throwUnimplementedError();\n }\n async downloadBundle(_options) {\n this.throwUnimplementedError();\n }\n async fetchChannels() {\n this.throwUnimplementedError();\n }\n async fetchLatestBundle() {\n this.throwUnimplementedError();\n }\n async getBlockedBundles() {\n this.throwUnimplementedError();\n }\n async getBundle() {\n this.throwUnimplementedError();\n }\n async getBundles() {\n this.throwUnimplementedError();\n }\n async getChannel() {\n this.throwUnimplementedError();\n }\n async getConfig() {\n this.throwUnimplementedError();\n }\n async getCurrentBundle() {\n this.throwUnimplementedError();\n }\n async getCustomId() {\n this.throwUnimplementedError();\n }\n async getDeviceId() {\n this.throwUnimplementedError();\n }\n async getDownloadedBundles() {\n this.throwUnimplementedError();\n }\n async getNextBundle() {\n this.throwUnimplementedError();\n }\n async getVersionCode() {\n this.throwUnimplementedError();\n }\n async getVersionName() {\n this.throwUnimplementedError();\n }\n async isSyncing() {\n this.throwUnimplementedError();\n }\n async ready() {\n this.throwUnimplementedError();\n }\n async reload() {\n this.throwUnimplementedError();\n }\n async reset() {\n this.throwUnimplementedError();\n }\n async resetConfig() {\n this.throwUnimplementedError();\n }\n async setBundle(_options) {\n this.throwUnimplementedError();\n }\n async setChannel(_options) {\n this.throwUnimplementedError();\n }\n async setConfig(_options) {\n this.throwUnimplementedError();\n }\n async setCustomId(_options) {\n this.throwUnimplementedError();\n }\n async setNextBundle(_options) {\n this.throwUnimplementedError();\n }\n async sync() {\n this.throwUnimplementedError();\n }\n throwUnimplementedError() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;;;AACK,MAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;AAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,aAAa,SAASC,cAAS,CAAC;AAC7C,IAAI,MAAM,mBAAmB,GAAG;AAChC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;AACjC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,cAAc,CAAC,QAAQ,EAAE;AACnC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,aAAa,GAAG;AAC1B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,iBAAiB,GAAG;AAC9B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,SAAS,GAAG;AACtB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,IAAI,CAAC,uBAAuB,E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uB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;AAC/B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,SAAS,CAAC,QAAQ,EAAE;AAC9B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,WAAW,CAAC,QAAQ,EAAE;AAChC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,aAAa,CAAC,QAAQ,EAAE;AAClC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,MAAM,IAAI,GAAG;AACjB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;AACvC,KAAK;AACL,IAAI,uBAAuB,GAAG;AAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;AAC5D,KAAK;AACL;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
|
@@ -6,15 +6,24 @@ var capacitorLiveUpdate = (function (exports, core) {
|
|
|
6
6
|
});
|
|
7
7
|
|
|
8
8
|
class LiveUpdateWeb extends core.WebPlugin {
|
|
9
|
+
async clearBlockedBundles() {
|
|
10
|
+
this.throwUnimplementedError();
|
|
11
|
+
}
|
|
9
12
|
async deleteBundle(_options) {
|
|
10
13
|
this.throwUnimplementedError();
|
|
11
14
|
}
|
|
12
15
|
async downloadBundle(_options) {
|
|
13
16
|
this.throwUnimplementedError();
|
|
14
17
|
}
|
|
18
|
+
async fetchChannels() {
|
|
19
|
+
this.throwUnimplementedError();
|
|
20
|
+
}
|
|
15
21
|
async fetchLatestBundle() {
|
|
16
22
|
this.throwUnimplementedError();
|
|
17
23
|
}
|
|
24
|
+
async getBlockedBundles() {
|
|
25
|
+
this.throwUnimplementedError();
|
|
26
|
+
}
|
|
18
27
|
async getBundle() {
|
|
19
28
|
this.throwUnimplementedError();
|
|
20
29
|
}
|
|
@@ -24,6 +33,9 @@ var capacitorLiveUpdate = (function (exports, core) {
|
|
|
24
33
|
async getChannel() {
|
|
25
34
|
this.throwUnimplementedError();
|
|
26
35
|
}
|
|
36
|
+
async getConfig() {
|
|
37
|
+
this.throwUnimplementedError();
|
|
38
|
+
}
|
|
27
39
|
async getCurrentBundle() {
|
|
28
40
|
this.throwUnimplementedError();
|
|
29
41
|
}
|
|
@@ -33,6 +45,9 @@ var capacitorLiveUpdate = (function (exports, core) {
|
|
|
33
45
|
async getDeviceId() {
|
|
34
46
|
this.throwUnimplementedError();
|
|
35
47
|
}
|
|
48
|
+
async getDownloadedBundles() {
|
|
49
|
+
this.throwUnimplementedError();
|
|
50
|
+
}
|
|
36
51
|
async getNextBundle() {
|
|
37
52
|
this.throwUnimplementedError();
|
|
38
53
|
}
|
|
@@ -42,6 +57,9 @@ var capacitorLiveUpdate = (function (exports, core) {
|
|
|
42
57
|
async getVersionName() {
|
|
43
58
|
this.throwUnimplementedError();
|
|
44
59
|
}
|
|
60
|
+
async isSyncing() {
|
|
61
|
+
this.throwUnimplementedError();
|
|
62
|
+
}
|
|
45
63
|
async ready() {
|
|
46
64
|
this.throwUnimplementedError();
|
|
47
65
|
}
|
|
@@ -51,12 +69,18 @@ var capacitorLiveUpdate = (function (exports, core) {
|
|
|
51
69
|
async reset() {
|
|
52
70
|
this.throwUnimplementedError();
|
|
53
71
|
}
|
|
72
|
+
async resetConfig() {
|
|
73
|
+
this.throwUnimplementedError();
|
|
74
|
+
}
|
|
54
75
|
async setBundle(_options) {
|
|
55
76
|
this.throwUnimplementedError();
|
|
56
77
|
}
|
|
57
78
|
async setChannel(_options) {
|
|
58
79
|
this.throwUnimplementedError();
|
|
59
80
|
}
|
|
81
|
+
async setConfig(_options) {
|
|
82
|
+
this.throwUnimplementedError();
|
|
83
|
+
}
|
|
60
84
|
async setCustomId(_options) {
|
|
61
85
|
this.throwUnimplementedError();
|
|
62
86
|
}
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst LiveUpdate = registerPlugin('LiveUpdate', {\n web: () => import('./web').then((m) => new m.LiveUpdateWeb()),\n});\nexport * from './definitions';\nexport { LiveUpdate };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LiveUpdateWeb extends WebPlugin {\n async deleteBundle(_options) {\n this.throwUnimplementedError();\n }\n async downloadBundle(_options) {\n this.throwUnimplementedError();\n }\n async fetchLatestBundle() {\n this.throwUnimplementedError();\n }\n async getBundle() {\n this.throwUnimplementedError();\n }\n async getBundles() {\n this.throwUnimplementedError();\n }\n async getChannel() {\n this.throwUnimplementedError();\n }\n async getCurrentBundle() {\n this.throwUnimplementedError();\n }\n async getCustomId() {\n this.throwUnimplementedError();\n }\n async getDeviceId() {\n this.throwUnimplementedError();\n }\n async getNextBundle() {\n this.throwUnimplementedError();\n }\n async getVersionCode() {\n this.throwUnimplementedError();\n }\n async getVersionName() {\n this.throwUnimplementedError();\n }\n async ready() {\n this.throwUnimplementedError();\n }\n async reload() {\n this.throwUnimplementedError();\n }\n async reset() {\n this.throwUnimplementedError();\n }\n async setBundle(_options) {\n this.throwUnimplementedError();\n }\n async setChannel(_options) {\n this.throwUnimplementedError();\n }\n async setCustomId(_options) {\n this.throwUnimplementedError();\n }\n async setNextBundle(_options) {\n this.throwUnimplementedError();\n }\n async sync() {\n this.throwUnimplementedError();\n }\n throwUnimplementedError() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;IAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CA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AM,MAAM,GAAG;IACnB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,KAAK,GAAG;IAClB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,SAAS,CAAC,QAAQ,EAAE;IAC9B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,UAAU,CAAC,QAAQ,EAAE;IAC/B,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,WAAW,CAAC,QAAQ,EAAE;IAChC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,aAAa,CAAC,QAAQ,EAAE;IAClC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,IAAI,GAAG;IACjB,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,uBAAuB,GAAG;IAC9B,QAAQ,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC5D,KAAK;IACL;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst LiveUpdate = registerPlugin('LiveUpdate', {\n web: () => import('./web').then((m) => new m.LiveUpdateWeb()),\n});\nexport * from './definitions';\nexport { LiveUpdate };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class LiveUpdateWeb extends WebPlugin {\n async clearBlockedBundles() {\n this.throwUnimplementedError();\n }\n async deleteBundle(_options) {\n this.throwUnimplementedError();\n }\n async downloadBundle(_options) {\n this.throwUnimplementedError();\n }\n async fetchChannels() {\n this.throwUnimplementedError();\n }\n async fetchLatestBundle() {\n this.throwUnimplementedError();\n }\n async getBlockedBundles() {\n this.throwUnimplementedError();\n }\n async getBundle() {\n this.throwUnimplementedError();\n }\n async getBundles() {\n this.throwUnimplementedError();\n }\n async getChannel() {\n this.throwUnimplementedError();\n }\n async getConfig() {\n this.throwUnimplementedError();\n }\n async getCurrentBundle() {\n this.throwUnimplementedError();\n }\n async getCustomId() {\n this.throwUnimplementedError();\n }\n async getDeviceId() {\n this.throwUnimplementedError();\n }\n async getDownloadedBundles() {\n this.throwUnimplementedError();\n }\n async getNextBundle() {\n this.throwUnimplementedError();\n }\n async getVersionCode() {\n this.throwUnimplementedError();\n }\n async getVersionName() {\n this.throwUnimplementedError();\n }\n async isSyncing() {\n this.throwUnimplementedError();\n }\n async ready() {\n this.throwUnimplementedError();\n }\n async reload() {\n this.throwUnimplementedError();\n }\n async reset() {\n this.throwUnimplementedError();\n }\n async resetConfig() {\n this.throwUnimplementedError();\n }\n async setBundle(_options) {\n this.throwUnimplementedError();\n }\n async setChannel(_options) {\n this.throwUnimplementedError();\n }\n async setConfig(_options) {\n this.throwUnimplementedError();\n }\n async setCustomId(_options) {\n this.throwUnimplementedError();\n }\n async setNextBundle(_options) {\n this.throwUnimplementedError();\n }\n async sync() {\n this.throwUnimplementedError();\n }\n throwUnimplementedError() {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,UAAU,GAAGA,mBAAc,CAAC,YAAY,EAAE;IAChD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,aAAa,SAASC,cAAS,CAAC;IAC7C,IAAI,MAAM,mBAAmB,GAAG;IAChC,QAAQ,IAAI,CAAC,uBAAuB,EAAE,CAAC;IACvC,KAAK;IACL,IAAI,MAAM,YAAY,CAAC,QAAQ,EAAE;IACjC,QAAQ,IAAI,CAAC,uBAA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,CAAC;IAC5D,KAAK;IACL;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class DownloadBundleProgressEvent: NSObject, Result {
|
|
5
|
+
let bundleId: String
|
|
6
|
+
let downloadedBytes: Int64
|
|
7
|
+
let progress: Double
|
|
8
|
+
let totalBytes: Int64
|
|
9
|
+
|
|
10
|
+
init(bundleId: String, downloadedBytes: Int64, totalBytes: Int64) {
|
|
11
|
+
self.bundleId = bundleId
|
|
12
|
+
self.downloadedBytes = downloadedBytes
|
|
13
|
+
self.progress = Double(downloadedBytes) / Double(totalBytes)
|
|
14
|
+
self.totalBytes = totalBytes
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public func toJSObject() -> AnyObject {
|
|
18
|
+
var result = JSObject()
|
|
19
|
+
result["bundleId"] = bundleId
|
|
20
|
+
result["downloadedBytes"] = Int(truncatingIfNeeded: downloadedBytes)
|
|
21
|
+
result["progress"] = progress
|
|
22
|
+
result["totalBytes"] = Int(truncatingIfNeeded: totalBytes)
|
|
23
|
+
return result as AnyObject
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class NextBundleSetEvent: NSObject {
|
|
5
|
+
let bundleId: String?
|
|
6
|
+
|
|
7
|
+
init(bundleId: String?) {
|
|
8
|
+
self.bundleId = bundleId
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public func toJSObject() -> JSObject {
|
|
12
|
+
var result = JSObject()
|
|
13
|
+
result["bundleId"] = bundleId == nil ? NSNull() : bundleId
|
|
14
|
+
return result
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class FetchChannelsOptions: NSObject {
|
|
5
|
+
private var limit: Int?
|
|
6
|
+
private var offset: Int?
|
|
7
|
+
private var query: String?
|
|
8
|
+
|
|
9
|
+
init(_ call: CAPPluginCall) {
|
|
10
|
+
self.limit = call.getInt("limit") as Int?
|
|
11
|
+
self.offset = call.getInt("offset") as Int?
|
|
12
|
+
self.query = call.getString("query")
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
func getLimit() -> Int? {
|
|
16
|
+
return limit
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
func getOffset() -> Int? {
|
|
20
|
+
return offset
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
func getQuery() -> String? {
|
|
24
|
+
return query
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class SetConfigOptions: NSObject {
|
|
5
|
+
let appId: String?
|
|
6
|
+
|
|
7
|
+
init(_ call: CAPPluginCall) {
|
|
8
|
+
self.appId = call.getString("appId")
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public func getAppId() -> String? {
|
|
12
|
+
return appId
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class ChannelResult: NSObject, Result {
|
|
5
|
+
private let id: String
|
|
6
|
+
private let name: String
|
|
7
|
+
|
|
8
|
+
init(id: String, name: String) {
|
|
9
|
+
self.id = id
|
|
10
|
+
self.name = name
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public func toJSObject() -> AnyObject {
|
|
14
|
+
var result = JSObject()
|
|
15
|
+
result["id"] = id
|
|
16
|
+
result["name"] = name
|
|
17
|
+
return result as AnyObject
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class FetchChannelsResult: NSObject, Result {
|
|
5
|
+
private let channels: [ChannelResult]
|
|
6
|
+
|
|
7
|
+
init(channels: [ChannelResult]) {
|
|
8
|
+
self.channels = channels
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public func toJSObject() -> AnyObject {
|
|
12
|
+
var result = JSObject()
|
|
13
|
+
result["channels"] = channels.map { $0.toJSObject() }
|
|
14
|
+
return result as AnyObject
|
|
15
|
+
}
|
|
16
|
+
}
|
package/ios/Plugin/Classes/Results/{FetchLatestBundle.swift → FetchLatestBundleResult.swift}
RENAMED
|
@@ -5,13 +5,15 @@ import Capacitor
|
|
|
5
5
|
private let artifactType: ArtifactType?
|
|
6
6
|
private let bundleId: String?
|
|
7
7
|
private let checksum: String?
|
|
8
|
+
private let customProperties: [String: Any]?
|
|
8
9
|
private let downloadUrl: String?
|
|
9
10
|
private let signature: String?
|
|
10
11
|
|
|
11
|
-
init(artifactType: ArtifactType?, bundleId: String?, checksum: String?, downloadUrl: String?, signature: String?) {
|
|
12
|
+
init(artifactType: ArtifactType?, bundleId: String?, checksum: String?, customProperties: [String: Any]?, downloadUrl: String?, signature: String?) {
|
|
12
13
|
self.artifactType = artifactType
|
|
13
14
|
self.bundleId = bundleId
|
|
14
15
|
self.checksum = checksum
|
|
16
|
+
self.customProperties = customProperties
|
|
15
17
|
self.downloadUrl = downloadUrl
|
|
16
18
|
self.signature = signature
|
|
17
19
|
}
|
|
@@ -27,6 +29,9 @@ import Capacitor
|
|
|
27
29
|
if let checksum = checksum {
|
|
28
30
|
result["checksum"] = checksum
|
|
29
31
|
}
|
|
32
|
+
if let customProperties = JSTypes.coerceDictionaryToJSObject(customProperties) {
|
|
33
|
+
result["customProperties"] = customProperties
|
|
34
|
+
}
|
|
30
35
|
if let downloadUrl = downloadUrl {
|
|
31
36
|
result["downloadUrl"] = downloadUrl
|
|
32
37
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class GetBlockedBundlesResult: NSObject, Result {
|
|
5
|
+
let bundleIds: [String]
|
|
6
|
+
|
|
7
|
+
init(bundleIds: [String]) {
|
|
8
|
+
self.bundleIds = bundleIds
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public func toJSObject() -> AnyObject {
|
|
12
|
+
var result = JSObject()
|
|
13
|
+
result["bundleIds"] = bundleIds
|
|
14
|
+
return result as AnyObject
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class GetConfigResult: NSObject, Result {
|
|
5
|
+
let appId: String?
|
|
6
|
+
let autoUpdateStrategy: String
|
|
7
|
+
|
|
8
|
+
init(appId: String?, autoUpdateStrategy: String) {
|
|
9
|
+
self.appId = appId
|
|
10
|
+
self.autoUpdateStrategy = autoUpdateStrategy
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
public func toJSObject() -> AnyObject {
|
|
14
|
+
var result = JSObject()
|
|
15
|
+
result["appId"] = appId == nil ? NSNull() : appId
|
|
16
|
+
result["autoUpdateStrategy"] = autoUpdateStrategy
|
|
17
|
+
return result as AnyObject
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class GetDownloadedBundlesResult: NSObject, Result {
|
|
5
|
+
let bundleIds: [String]
|
|
6
|
+
|
|
7
|
+
init(bundleIds: [String]) {
|
|
8
|
+
self.bundleIds = bundleIds
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
public func toJSObject() -> AnyObject {
|
|
12
|
+
var result = JSObject()
|
|
13
|
+
result["bundleIds"] = bundleIds
|
|
14
|
+
return result as AnyObject
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class IsSyncingResult: NSObject, Result {
|
|
5
|
+
let syncing: Bool
|
|
6
|
+
|
|
7
|
+
init(syncing: Bool) {
|
|
8
|
+
self.syncing = syncing
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@objc public func toJSObject() -> AnyObject {
|
|
12
|
+
var result = JSObject()
|
|
13
|
+
result["syncing"] = syncing
|
|
14
|
+
return result as AnyObject
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Foundation
|
|
2
|
+
import Capacitor
|
|
3
|
+
|
|
4
|
+
@objc public class ReadyResult: NSObject, Result {
|
|
5
|
+
let currentBundleId: String?
|
|
6
|
+
let previousBundleId: String?
|
|
7
|
+
let rollback: Bool
|
|
8
|
+
|
|
9
|
+
init(currentBundleId: String?, previousBundleId: String?, rollback: Bool) {
|
|
10
|
+
self.currentBundleId = currentBundleId
|
|
11
|
+
self.previousBundleId = previousBundleId
|
|
12
|
+
self.rollback = rollback
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public func toJSObject() -> AnyObject {
|
|
16
|
+
var result = JSObject()
|
|
17
|
+
result["currentBundleId"] = currentBundleId == nil ? NSNull() : currentBundleId
|
|
18
|
+
result["previousBundleId"] = previousBundleId == nil ? NSNull() : previousBundleId
|
|
19
|
+
result["rollback"] = rollback
|
|
20
|
+
return result as AnyObject
|
|
21
|
+
}
|
|
22
|
+
}
|