com-easystep2-datawedge-plugin-intent-cordova 4.2.2

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.
@@ -0,0 +1,36 @@
1
+ ext {
2
+ junitVersion = '4.12'
3
+ androidxAppCompatVersion = '1.2.0'
4
+ androidxJunitVersion = '1.1.2'
5
+ androidxEspressoCoreVersion = '3.3.0'
6
+ }
7
+
8
+ apply plugin: 'com.android.library'
9
+
10
+ android {
11
+ compileSdkVersion 31
12
+ defaultConfig {
13
+ minSdkVersion 22
14
+ targetSdkVersion 31
15
+ versionCode 1
16
+ versionName "1.0"
17
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18
+ }
19
+ buildTypes {
20
+ release {
21
+ minifyEnabled false
22
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
23
+ }
24
+ }
25
+ lintOptions {
26
+ abortOnError false
27
+ }
28
+ }
29
+
30
+ dependencies {
31
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
32
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
33
+ testImplementation "junit:junit:$junitVersion"
34
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
35
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
36
+ }
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <paths xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <external-path name="external_files" path="." />
4
+ <!-- Add additional paths for more comprehensive access -->
5
+ <external-files-path name="external_files_path" path="." />
6
+ <cache-path name="cache" path="." />
7
+ <external-cache-path name="external_cache" path="." />
8
+ <files-path name="files" path="." />
9
+ </paths>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.getcapacitor.community.intentshim">
4
+
5
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:maxSdkVersion="32" />
6
+ <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
7
+ <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
8
+ <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" />
9
+
10
+ <application>
11
+ <provider
12
+ android:name="com.getcapacitor.community.intentshim.IntentFileProvider"
13
+ android:authorities="${applicationId}.intentshim.fileprovider"
14
+ android:exported="false"
15
+ android:grantUriPermissions="true">
16
+ <meta-data
17
+ android:name="android.support.FILE_PROVIDER_PATHS"
18
+ android:resource="@xml/provider_paths" />
19
+ </provider>
20
+ </application>
21
+ </manifest>
@@ -0,0 +1,13 @@
1
+ export interface IntentShimPlugin {
2
+ startActivity(options: { url: string }): Promise<{ value: string }>;
3
+ sendBroadcast(options: { action: string, extras: { [key: string]: any } }): Promise<void>;
4
+ registerBroadcastReceiver(options: { filterActions: string[], filterCategories: string[], filterDataSchemes: string[] }, callback: (message: any) => void): Promise<string>;
5
+ unregisterBroadcastReceiver(options: { callbackId: string }): Promise<void>;
6
+ onIntent(callback: (message: any) => void): Promise<string>;
7
+ onActivityResult(callback: (message: any) => void): Promise<string>;
8
+ getIntent(): Promise<any>;
9
+ sendResult(options: { extras: { [key: string]: any } }): Promise<void>;
10
+ realPathFromUri(options: { uri: string }): Promise<{ value: string }>;
11
+ packageExists(options: { packageName: string }): Promise<{ value: boolean }>;
12
+ checkAndRequestPermissions(): Promise<void>;
13
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+
3
+ import type { IntentShimPlugin } from './definitions';
4
+
5
+ const IntentShim = registerPlugin<IntentShimPlugin>('IntentShim', {
6
+ web: () => import('./web').then(m => new m.IntentShimWeb()),
7
+ });
8
+
9
+ export * from './definitions';
10
+ export { IntentShim };
package/src/web.ts ADDED
@@ -0,0 +1,58 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+
3
+ import type { IntentShimPlugin } from './definitions';
4
+
5
+ export class IntentShimWeb extends WebPlugin implements IntentShimPlugin {
6
+ async startActivity(options: { url: string }): Promise<{ value: string }> {
7
+ console.log('startActivity', options);
8
+ throw this.unimplemented('Not implemented on web.');
9
+ }
10
+
11
+ async sendBroadcast(options: { action: string, extras: { [key: string]: any } }): Promise<void> {
12
+ console.log('sendBroadcast', options);
13
+ throw this.unimplemented('Not implemented on web.');
14
+ }
15
+
16
+ async registerBroadcastReceiver(options: { filterActions: string[], filterCategories: string[], filterDataSchemes: string[] }, callback: (message: any) => void): Promise<string> {
17
+ console.log('registerBroadcastReceiver', options, callback);
18
+ throw this.unimplemented('Not implemented on web.');
19
+ }
20
+
21
+ async unregisterBroadcastReceiver(options: { callbackId: string }): Promise<void> {
22
+ console.log('unregisterBroadcastReceiver', options);
23
+ throw this.unimplemented('Not implemented on web.');
24
+ }
25
+
26
+ async onIntent(callback: (message: any) => void): Promise<string> {
27
+ console.log('onIntent', callback);
28
+ throw this.unimplemented('Not implemented on web.');
29
+ }
30
+
31
+ async onActivityResult(callback: (message: any) => void): Promise<string> {
32
+ console.log('onActivityResult', callback);
33
+ throw this.unimplemented('Not implemented on web.');
34
+ }
35
+
36
+ async getIntent(): Promise<any> {
37
+ throw this.unimplemented('Not implemented on web.');
38
+ }
39
+
40
+ async sendResult(options: { extras: { [key: string]: any } }): Promise<void> {
41
+ console.log('sendResult', options);
42
+ throw this.unimplemented('Not implemented on web.');
43
+ }
44
+
45
+ async realPathFromUri(options: { uri: string }): Promise<{ value: string }> {
46
+ console.log('realPathFromUri', options);
47
+ throw this.unimplemented('Not implemented on web.');
48
+ }
49
+
50
+ async packageExists(options: { packageName: string }): Promise<{ value: boolean }> {
51
+ console.log('packageExists', options);
52
+ throw this.unimplemented('Not implemented on web.');
53
+ }
54
+
55
+ async checkAndRequestPermissions(): Promise<void> {
56
+ throw this.unimplemented('Not implemented on web.');
57
+ }
58
+ }
@@ -0,0 +1,40 @@
1
+ export interface IntentShimPlugin {
2
+ startActivity(options: {
3
+ url: string;
4
+ }): Promise<{
5
+ value: string;
6
+ }>;
7
+ sendBroadcast(options: {
8
+ action: string;
9
+ extras: {
10
+ [key: string]: any;
11
+ };
12
+ }): Promise<void>;
13
+ registerBroadcastReceiver(options: {
14
+ filterActions: string[];
15
+ filterCategories: string[];
16
+ filterDataSchemes: string[];
17
+ }, callback: (message: any) => void): Promise<string>;
18
+ unregisterBroadcastReceiver(options: {
19
+ callbackId: string;
20
+ }): Promise<void>;
21
+ onIntent(callback: (message: any) => void): Promise<string>;
22
+ onActivityResult(callback: (message: any) => void): Promise<string>;
23
+ getIntent(): Promise<any>;
24
+ sendResult(options: {
25
+ extras: {
26
+ [key: string]: any;
27
+ };
28
+ }): Promise<void>;
29
+ realPathFromUri(options: {
30
+ uri: string;
31
+ }): Promise<{
32
+ value: string;
33
+ }>;
34
+ packageExists(options: {
35
+ packageName: string;
36
+ }): Promise<{
37
+ value: boolean;
38
+ }>;
39
+ checkAndRequestPermissions(): Promise<void>;
40
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface IntentShimPlugin {\n startActivity(options: { url: string }): Promise<{ value: string }>;\n sendBroadcast(options: { action: string, extras: { [key: string]: any } }): Promise<void>;\n registerBroadcastReceiver(options: { filterActions: string[], filterCategories: string[], filterDataSchemes: string[] }, callback: (message: any) => void): Promise<string>;\n unregisterBroadcastReceiver(options: { callbackId: string }): Promise<void>;\n onIntent(callback: (message: any) => void): Promise<string>;\n onActivityResult(callback: (message: any) => void): Promise<string>;\n getIntent(): Promise<any>;\n sendResult(options: { extras: { [key: string]: any } }): Promise<void>;\n realPathFromUri(options: { uri: string }): Promise<{ value: string }>;\n packageExists(options: { packageName: string }): Promise<{ value: boolean }>;\n checkAndRequestPermissions(): Promise<void>;\n}\n"]}
package/www/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type { IntentShimPlugin } from './definitions';
2
+ declare const IntentShim: IntentShimPlugin;
3
+ export * from './definitions';
4
+ export { IntentShim };
package/www/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const IntentShim = registerPlugin('IntentShim', {
3
+ web: () => import('./web').then(m => new m.IntentShimWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { IntentShim };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,UAAU,GAAG,cAAc,CAAmB,YAAY,EAAE;IAChE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;CAC5D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { IntentShimPlugin } from './definitions';\n\nconst IntentShim = registerPlugin<IntentShimPlugin>('IntentShim', {\n web: () => import('./web').then(m => new m.IntentShimWeb()),\n});\n\nexport * from './definitions';\nexport { IntentShim };\n"]}
package/www/web.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ import type { IntentShimPlugin } from './definitions';
3
+ export declare class IntentShimWeb extends WebPlugin implements IntentShimPlugin {
4
+ startActivity(options: {
5
+ url: string;
6
+ }): Promise<{
7
+ value: string;
8
+ }>;
9
+ sendBroadcast(options: {
10
+ action: string;
11
+ extras: {
12
+ [key: string]: any;
13
+ };
14
+ }): Promise<void>;
15
+ registerBroadcastReceiver(options: {
16
+ filterActions: string[];
17
+ filterCategories: string[];
18
+ filterDataSchemes: string[];
19
+ }, callback: (message: any) => void): Promise<string>;
20
+ unregisterBroadcastReceiver(options: {
21
+ callbackId: string;
22
+ }): Promise<void>;
23
+ onIntent(callback: (message: any) => void): Promise<string>;
24
+ onActivityResult(callback: (message: any) => void): Promise<string>;
25
+ getIntent(): Promise<any>;
26
+ sendResult(options: {
27
+ extras: {
28
+ [key: string]: any;
29
+ };
30
+ }): Promise<void>;
31
+ realPathFromUri(options: {
32
+ uri: string;
33
+ }): Promise<{
34
+ value: string;
35
+ }>;
36
+ packageExists(options: {
37
+ packageName: string;
38
+ }): Promise<{
39
+ value: boolean;
40
+ }>;
41
+ checkAndRequestPermissions(): Promise<void>;
42
+ }
package/www/web.js ADDED
@@ -0,0 +1,46 @@
1
+ import { WebPlugin } from '@capacitor/core';
2
+ export class IntentShimWeb extends WebPlugin {
3
+ async startActivity(options) {
4
+ console.log('startActivity', options);
5
+ throw this.unimplemented('Not implemented on web.');
6
+ }
7
+ async sendBroadcast(options) {
8
+ console.log('sendBroadcast', options);
9
+ throw this.unimplemented('Not implemented on web.');
10
+ }
11
+ async registerBroadcastReceiver(options, callback) {
12
+ console.log('registerBroadcastReceiver', options, callback);
13
+ throw this.unimplemented('Not implemented on web.');
14
+ }
15
+ async unregisterBroadcastReceiver(options) {
16
+ console.log('unregisterBroadcastReceiver', options);
17
+ throw this.unimplemented('Not implemented on web.');
18
+ }
19
+ async onIntent(callback) {
20
+ console.log('onIntent', callback);
21
+ throw this.unimplemented('Not implemented on web.');
22
+ }
23
+ async onActivityResult(callback) {
24
+ console.log('onActivityResult', callback);
25
+ throw this.unimplemented('Not implemented on web.');
26
+ }
27
+ async getIntent() {
28
+ throw this.unimplemented('Not implemented on web.');
29
+ }
30
+ async sendResult(options) {
31
+ console.log('sendResult', options);
32
+ throw this.unimplemented('Not implemented on web.');
33
+ }
34
+ async realPathFromUri(options) {
35
+ console.log('realPathFromUri', options);
36
+ throw this.unimplemented('Not implemented on web.');
37
+ }
38
+ async packageExists(options) {
39
+ console.log('packageExists', options);
40
+ throw this.unimplemented('Not implemented on web.');
41
+ }
42
+ async checkAndRequestPermissions() {
43
+ throw this.unimplemented('Not implemented on web.');
44
+ }
45
+ }
46
+ //# sourceMappingURL=web.js.map
package/www/web.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,aAAc,SAAQ,SAAS;IAC1C,KAAK,CAAC,aAAa,CAAC,OAAwB;QAC1C,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACtC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAA2D;QAC7E,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACtC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,OAA6F,EAAE,QAAgC;QAC7J,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC5D,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,2BAA2B,CAAC,OAA+B;QAC/D,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;QACpD,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAgC;QAC7C,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAClC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,QAAgC;QACrD,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;QAC1C,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,SAAS;QACb,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,OAA2C;QAC1D,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACnC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,OAAwB;QAC5C,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAgC;QAClD,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACtC,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,0BAA0B;QAC9B,MAAM,IAAI,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IACtD,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { IntentShimPlugin } from './definitions';\n\nexport class IntentShimWeb extends WebPlugin implements IntentShimPlugin {\n async startActivity(options: { url: string }): Promise<{ value: string }> {\n console.log('startActivity', options);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async sendBroadcast(options: { action: string, extras: { [key: string]: any } }): Promise<void> {\n console.log('sendBroadcast', options);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async registerBroadcastReceiver(options: { filterActions: string[], filterCategories: string[], filterDataSchemes: string[] }, callback: (message: any) => void): Promise<string> {\n console.log('registerBroadcastReceiver', options, callback);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async unregisterBroadcastReceiver(options: { callbackId: string }): Promise<void> {\n console.log('unregisterBroadcastReceiver', options);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async onIntent(callback: (message: any) => void): Promise<string> {\n console.log('onIntent', callback);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async onActivityResult(callback: (message: any) => void): Promise<string> {\n console.log('onActivityResult', callback);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async getIntent(): Promise<any> {\n throw this.unimplemented('Not implemented on web.');\n }\n\n async sendResult(options: { extras: { [key: string]: any } }): Promise<void> {\n console.log('sendResult', options);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async realPathFromUri(options: { uri: string }): Promise<{ value: string }> {\n console.log('realPathFromUri', options);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async packageExists(options: { packageName: string }): Promise<{ value: boolean }> {\n console.log('packageExists', options);\n throw this.unimplemented('Not implemented on web.');\n }\n\n async checkAndRequestPermissions(): Promise<void> {\n throw this.unimplemented('Not implemented on web.');\n }\n}\n"]}