@bubblewrap/core 1.13.6

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.
Files changed (84) hide show
  1. package/LICENSE +203 -0
  2. package/README.md +63 -0
  3. package/dist/index.d.ts +17 -0
  4. package/dist/index.js +56 -0
  5. package/dist/lib/BufferedLog.d.ts +20 -0
  6. package/dist/lib/BufferedLog.js +83 -0
  7. package/dist/lib/Config.d.ts +9 -0
  8. package/dist/lib/Config.js +50 -0
  9. package/dist/lib/DigitalAssetLinks.d.ts +3 -0
  10. package/dist/lib/DigitalAssetLinks.js +37 -0
  11. package/dist/lib/FetchUtils.d.ts +17 -0
  12. package/dist/lib/FetchUtils.js +79 -0
  13. package/dist/lib/GooglePlay.d.ts +41 -0
  14. package/dist/lib/GooglePlay.js +92 -0
  15. package/dist/lib/GradleWrapper.d.ts +31 -0
  16. package/dist/lib/GradleWrapper.js +62 -0
  17. package/dist/lib/ImageHelper.d.ts +37 -0
  18. package/dist/lib/ImageHelper.js +112 -0
  19. package/dist/lib/Log.d.ts +88 -0
  20. package/dist/lib/Log.js +114 -0
  21. package/dist/lib/Result.d.ts +46 -0
  22. package/dist/lib/Result.js +97 -0
  23. package/dist/lib/ShortcutInfo.d.ts +32 -0
  24. package/dist/lib/ShortcutInfo.js +84 -0
  25. package/dist/lib/TwaGenerator.d.ts +39 -0
  26. package/dist/lib/TwaGenerator.js +362 -0
  27. package/dist/lib/TwaManifest.d.ts +234 -0
  28. package/dist/lib/TwaManifest.js +384 -0
  29. package/dist/lib/androidSdk/AndroidSdkTools.d.ts +87 -0
  30. package/dist/lib/androidSdk/AndroidSdkTools.js +226 -0
  31. package/dist/lib/errors/ValidatePathError.d.ts +9 -0
  32. package/dist/lib/errors/ValidatePathError.js +16 -0
  33. package/dist/lib/features/AppsFlyerFeature.d.ts +8 -0
  34. package/dist/lib/features/AppsFlyerFeature.js +70 -0
  35. package/dist/lib/features/EmptyFeature.d.ts +28 -0
  36. package/dist/lib/features/EmptyFeature.js +44 -0
  37. package/dist/lib/features/Feature.d.ts +120 -0
  38. package/dist/lib/features/Feature.js +17 -0
  39. package/dist/lib/features/FeatureManager.d.ts +36 -0
  40. package/dist/lib/features/FeatureManager.js +137 -0
  41. package/dist/lib/features/FirstRunFlagFeature.d.ts +8 -0
  42. package/dist/lib/features/FirstRunFlagFeature.js +43 -0
  43. package/dist/lib/features/LocationDelegationFeature.d.ts +7 -0
  44. package/dist/lib/features/LocationDelegationFeature.js +32 -0
  45. package/dist/lib/features/PlayBillingFeature.d.ts +7 -0
  46. package/dist/lib/features/PlayBillingFeature.js +53 -0
  47. package/dist/lib/jdk/JarSigner.d.ts +13 -0
  48. package/dist/lib/jdk/JarSigner.js +55 -0
  49. package/dist/lib/jdk/JdkHelper.d.ts +55 -0
  50. package/dist/lib/jdk/JdkHelper.js +127 -0
  51. package/dist/lib/jdk/KeyTool.d.ts +57 -0
  52. package/dist/lib/jdk/KeyTool.js +136 -0
  53. package/dist/lib/mock/MockLog.d.ts +37 -0
  54. package/dist/lib/mock/MockLog.js +70 -0
  55. package/dist/lib/types/WebManifest.d.ts +44 -0
  56. package/dist/lib/types/WebManifest.js +17 -0
  57. package/dist/lib/util.d.ts +82 -0
  58. package/dist/lib/util.js +279 -0
  59. package/dist/lib/wrappers/svg2img.d.ts +14 -0
  60. package/dist/lib/wrappers/svg2img.js +39 -0
  61. package/package.json +58 -0
  62. package/template_project/app/.gitignore +1 -0
  63. package/template_project/app/build.gradle +211 -0
  64. package/template_project/app/src/main/AndroidManifest.xml +204 -0
  65. package/template_project/app/src/main/java/Application.java +35 -0
  66. package/template_project/app/src/main/java/DelegationService.java +18 -0
  67. package/template_project/app/src/main/java/LauncherActivity.java +62 -0
  68. package/template_project/app/src/main/res/drawable-anydpi/shortcut_legacy_background.xml +25 -0
  69. package/template_project/app/src/main/res/drawable-anydpi/shortcut_monochrome.xml +27 -0
  70. package/template_project/app/src/main/res/drawable-anydpi-v26/shortcut_maskable.xml +32 -0
  71. package/template_project/app/src/main/res/drawable-anydpi-v26/shortcut_monochrome.xml +26 -0
  72. package/template_project/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +33 -0
  73. package/template_project/app/src/main/res/values/colors.xml +18 -0
  74. package/template_project/app/src/main/res/values/strings.xml +50 -0
  75. package/template_project/app/src/main/res/xml/filepaths.xml +18 -0
  76. package/template_project/app/src/main/res/xml/shortcuts.xml +16 -0
  77. package/template_project/build.gradle +42 -0
  78. package/template_project/enable-debug.sh +27 -0
  79. package/template_project/gradle/wrapper/gradle-wrapper.jar +0 -0
  80. package/template_project/gradle/wrapper/gradle-wrapper.properties +5 -0
  81. package/template_project/gradle.properties +14 -0
  82. package/template_project/gradlew +188 -0
  83. package/template_project/gradlew.bat +100 -0
  84. package/template_project/settings.gradle +1 -0
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2020 Google Inc. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.EmptyFeature = void 0;
19
+ class EmptyFeature {
20
+ constructor(name) {
21
+ this.buildGradle = {
22
+ repositories: new Array(),
23
+ dependencies: new Array(),
24
+ };
25
+ this.androidManifest = {
26
+ permissions: new Array(),
27
+ components: new Array(),
28
+ };
29
+ this.applicationClass = {
30
+ imports: new Array(),
31
+ variables: new Array(),
32
+ };
33
+ this.launcherActivity = {
34
+ imports: new Array(),
35
+ variables: new Array(),
36
+ methods: new Array(),
37
+ };
38
+ this.delegationService = {
39
+ imports: new Array(),
40
+ };
41
+ this.name = name;
42
+ }
43
+ }
44
+ exports.EmptyFeature = EmptyFeature;
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Specifies a set of customizations to be applied when generating the Android project
3
+ * in order to enable a feature.
4
+ */
5
+ export interface Feature {
6
+ /**
7
+ * The feature name.
8
+ */
9
+ name: string;
10
+ /**
11
+ * Customizations to be applied to `app/build.grade`.
12
+ */
13
+ buildGradle: {
14
+ /**
15
+ * Repositories to be added the `repositories` section.
16
+ */
17
+ repositories: string[];
18
+ /**
19
+ * Dependencies to be added the `dependencies` section.
20
+ * The format 'group:name:version' must be used.
21
+ * Example `androidx.appcompat:appcompat:1.2.0`.
22
+ */
23
+ dependencies: string[];
24
+ };
25
+ /**
26
+ * Customizations to be applied to `app/src/main/AndroidManifest.xml`.
27
+ */
28
+ androidManifest: {
29
+ /**
30
+ * Name for permissions required for the app.
31
+ * Example: `android.permission.INTERNET`.
32
+ */
33
+ permissions: string[];
34
+ /** Components to be added to the app, like activities, services, receivers, etc.
35
+ * Example:
36
+ * ```xml
37
+ * <receiver
38
+ * android:name="com.example.MyBroadcastReceiver"
39
+ * android:exported="true">
40
+ * <intent-filter>
41
+ * <action android:name="com.android.vending.INSTALL_REFERRER" />
42
+ * </intent-filter>
43
+ * </receiver>`
44
+ * ```
45
+ */
46
+ components: string[];
47
+ };
48
+ /**
49
+ * Customizations to be added to `app/src/main/java/<app-package>/Application.java`.
50
+ */
51
+ applicationClass: {
52
+ /**
53
+ * Imports to be added. Only the class name must be added. Example:
54
+ * `android.net.Uri`
55
+ */
56
+ imports: string[];
57
+ /**
58
+ * Variables to be added to the class. The full declaration is required. Example:
59
+ * `private static final String MY_API_ID = "12345";`
60
+ */
61
+ variables: string[];
62
+ /**
63
+ * Code segment to be added to the `onCreate()` callback for the Application. The code is
64
+ * added *after* calling `super.onCreate();`.
65
+ */
66
+ onCreate?: string;
67
+ };
68
+ /**
69
+ * Customizations to be added to `app/src/main/java/<app-package>/LauncherActivity.java`.
70
+ */
71
+ launcherActivity: {
72
+ /**
73
+ * Imports to be added. Only the class name must be added. Example:
74
+ * `android.net.Uri`
75
+ */
76
+ imports: string[];
77
+ /**
78
+ * Variables to be added to the class. The full declaration is required. Example:
79
+ * `private static final String MY_API_ID = "12345";`
80
+ */
81
+ variables: string[];
82
+ /**
83
+ * Methods to be added to the class. The full declaration is required. Example:
84
+ * ```
85
+ * private void myMethod() {
86
+ * ... // Method implementation.
87
+ * }
88
+ * ```
89
+ */
90
+ methods: string[];
91
+ /**
92
+ * Code segment to be added to the `getLaunchingUrl()`. The code is added *after* calling
93
+ * `super.getLaunchingUrl();` and can modify the Uri returned by that. The code will be called
94
+ * by each plugin, and the Uri should be extended by calling `Uri.buildUpon`.
95
+ * Example:
96
+ * ```
97
+ * uri = uri
98
+ * .buildUpon()
99
+ * .appendQueryParameter("my_extra_parameter", "value")
100
+ * .build();
101
+ * ```
102
+ */
103
+ launchUrl?: string;
104
+ };
105
+ /**
106
+ * Customizations to be added to `app/src/main/java/<app-package>/DelegationService.java`.
107
+ */
108
+ delegationService: {
109
+ /**
110
+ * Imports to be added. Only the class name must be added. Example:
111
+ * `android.net.Uri`
112
+ */
113
+ imports: string[];
114
+ /**
115
+ * Code segment to be added to onCreate. The code will be called by each plugin.
116
+ * by each plugin.
117
+ */
118
+ onCreate?: string;
119
+ };
120
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2020 Google Inc. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ import { TwaManifest } from '../TwaManifest';
2
+ import { Log } from '../Log';
3
+ /**
4
+ * Analyzes a TwaManifest to collect enable features and aggregates all customizations that will
5
+ * be applied when generating the Android project.
6
+ */
7
+ export declare class FeatureManager {
8
+ buildGradle: {
9
+ repositories: Set<string>;
10
+ dependencies: Set<string>;
11
+ };
12
+ androidManifest: {
13
+ permissions: Set<string>;
14
+ components: string[];
15
+ };
16
+ applicationClass: {
17
+ imports: Set<string>;
18
+ variables: string[];
19
+ onCreate: string[];
20
+ };
21
+ launcherActivity: {
22
+ imports: Set<string>;
23
+ methods: Set<string>;
24
+ variables: Set<string>;
25
+ launchUrl: string[];
26
+ };
27
+ delegationService: {
28
+ imports: Set<string>;
29
+ onCreate: string[];
30
+ };
31
+ /**
32
+ * Builds a new intance from a TwaManifest.
33
+ */
34
+ constructor(twaManifest: TwaManifest, log?: Log);
35
+ private addFeature;
36
+ }
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2020 Google Inc. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.FeatureManager = void 0;
19
+ const AppsFlyerFeature_1 = require("./AppsFlyerFeature");
20
+ const LocationDelegationFeature_1 = require("./LocationDelegationFeature");
21
+ const PlayBillingFeature_1 = require("./PlayBillingFeature");
22
+ const FirstRunFlagFeature_1 = require("./FirstRunFlagFeature");
23
+ const Log_1 = require("../Log");
24
+ const ANDROID_BROWSER_HELPER_VERSIONS = {
25
+ stable: 'com.google.androidbrowserhelper:androidbrowserhelper:2.2.1',
26
+ alpha: 'com.google.androidbrowserhelper:androidbrowserhelper:2.2.1',
27
+ };
28
+ /**
29
+ * Analyzes a TwaManifest to collect enable features and aggregates all customizations that will
30
+ * be applied when generating the Android project.
31
+ */
32
+ class FeatureManager {
33
+ /**
34
+ * Builds a new intance from a TwaManifest.
35
+ */
36
+ constructor(twaManifest, log = new Log_1.ConsoleLog('FeatureManager')) {
37
+ var _a, _b, _c, _d, _e, _f;
38
+ this.buildGradle = {
39
+ repositories: new Set(),
40
+ dependencies: new Set(),
41
+ };
42
+ this.androidManifest = {
43
+ permissions: new Set(),
44
+ components: new Array(),
45
+ };
46
+ this.applicationClass = {
47
+ imports: new Set(),
48
+ variables: new Array(),
49
+ onCreate: new Array(),
50
+ };
51
+ this.launcherActivity = {
52
+ imports: new Set(),
53
+ methods: new Set(),
54
+ variables: new Set(),
55
+ launchUrl: new Array(),
56
+ };
57
+ this.delegationService = {
58
+ imports: new Set(),
59
+ onCreate: new Array(),
60
+ };
61
+ if ((_a = twaManifest.features.locationDelegation) === null || _a === void 0 ? void 0 : _a.enabled) {
62
+ this.addFeature(new LocationDelegationFeature_1.LocationDelegationFeature());
63
+ }
64
+ if ((_b = twaManifest.features.playBilling) === null || _b === void 0 ? void 0 : _b.enabled) {
65
+ if ((_c = twaManifest.alphaDependencies) === null || _c === void 0 ? void 0 : _c.enabled) {
66
+ this.addFeature(new PlayBillingFeature_1.PlayBillingFeature());
67
+ }
68
+ else {
69
+ log.error('Skipping PlayBillingFeature. ' +
70
+ 'Enable alphaDependencies to add PlayBillingFeature.');
71
+ }
72
+ }
73
+ if ((_d = twaManifest.features.appsFlyer) === null || _d === void 0 ? void 0 : _d.enabled) {
74
+ this.addFeature(new AppsFlyerFeature_1.AppsFlyerFeature(twaManifest.features.appsFlyer));
75
+ }
76
+ if ((_e = twaManifest.features.firstRunFlag) === null || _e === void 0 ? void 0 : _e.enabled) {
77
+ this.addFeature(new FirstRunFlagFeature_1.FirstRunFlagFeature(twaManifest.features.firstRunFlag));
78
+ }
79
+ // The WebView fallback needs the INTERNET permission.
80
+ if (twaManifest.fallbackType === 'webview') {
81
+ this.androidManifest.permissions.add('android.permission.INTERNET');
82
+ }
83
+ if ((_f = twaManifest.alphaDependencies) === null || _f === void 0 ? void 0 : _f.enabled) {
84
+ this.buildGradle.dependencies.add(ANDROID_BROWSER_HELPER_VERSIONS.alpha);
85
+ }
86
+ else {
87
+ this.buildGradle.dependencies.add(ANDROID_BROWSER_HELPER_VERSIONS.stable);
88
+ }
89
+ }
90
+ addFeature(feature) {
91
+ // Adds properties to build.
92
+ feature.buildGradle.repositories.forEach((repo) => {
93
+ this.buildGradle.repositories.add(repo);
94
+ });
95
+ feature.buildGradle.dependencies.forEach((dep) => {
96
+ this.buildGradle.dependencies.add(dep);
97
+ });
98
+ // Adds properties to application.
99
+ feature.applicationClass.imports.forEach((imp) => {
100
+ this.applicationClass.imports.add(imp);
101
+ });
102
+ feature.applicationClass.variables.forEach((imp) => {
103
+ this.applicationClass.variables.push(imp);
104
+ });
105
+ if (feature.applicationClass.onCreate) {
106
+ this.applicationClass.onCreate.push(feature.applicationClass.onCreate);
107
+ }
108
+ // Adds properties to AndroidManifest.xml.
109
+ feature.androidManifest.permissions.forEach((permission) => {
110
+ this.androidManifest.permissions.add(permission);
111
+ });
112
+ feature.androidManifest.components.forEach((component) => {
113
+ this.androidManifest.components.push(component);
114
+ });
115
+ // Adds properties to launcherActivity.
116
+ feature.launcherActivity.imports.forEach((imp) => {
117
+ this.launcherActivity.imports.add(imp);
118
+ });
119
+ feature.launcherActivity.variables.forEach((imp) => {
120
+ this.launcherActivity.variables.add(imp);
121
+ });
122
+ feature.launcherActivity.methods.forEach((imp) => {
123
+ this.launcherActivity.methods.add(imp);
124
+ });
125
+ if (feature.launcherActivity.launchUrl) {
126
+ this.launcherActivity.launchUrl.push(feature.launcherActivity.launchUrl);
127
+ }
128
+ // Adds properties to delegationService.
129
+ feature.delegationService.imports.forEach((imp) => {
130
+ this.delegationService.imports.add(imp);
131
+ });
132
+ if (feature.delegationService.onCreate) {
133
+ this.delegationService.onCreate.push(feature.delegationService.onCreate);
134
+ }
135
+ }
136
+ }
137
+ exports.FeatureManager = FeatureManager;
@@ -0,0 +1,8 @@
1
+ import { EmptyFeature } from './EmptyFeature';
2
+ export interface FirstRunFlagConfig {
3
+ enabled: boolean;
4
+ queryParameterName: string;
5
+ }
6
+ export declare class FirstRunFlagFeature extends EmptyFeature {
7
+ constructor(config: FirstRunFlagConfig);
8
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2020 Google Inc. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.FirstRunFlagFeature = void 0;
19
+ const EmptyFeature_1 = require("./EmptyFeature");
20
+ class FirstRunFlagFeature extends EmptyFeature_1.EmptyFeature {
21
+ constructor(config) {
22
+ super('firstRunFlag');
23
+ this.launcherActivity.imports.push('android.content.SharedPreferences', 'android.os.StrictMode');
24
+ this.launcherActivity.methods.push(`private boolean checkAndMarkFirstOpen() {
25
+ StrictMode.ThreadPolicy originalPolicy = StrictMode.allowThreadDiskReads();
26
+ try {
27
+ SharedPreferences preferences = getPreferences(MODE_PRIVATE);
28
+ boolean isFirstRun = preferences.getBoolean(KEY_FIRST_OPEN, true);
29
+ preferences.edit().putBoolean(KEY_FIRST_OPEN, false).apply();
30
+ return isFirstRun;
31
+ } finally {
32
+ StrictMode.setThreadPolicy(originalPolicy);
33
+ }
34
+ }`);
35
+ this.launcherActivity.variables.push('private static final String KEY_FIRST_OPEN = "bubblewrap.first_open";', `private static final String PARAM_FIRST_OPEN = "${config.queryParameterName}";`);
36
+ this.launcherActivity.launchUrl =
37
+ `uri = uri
38
+ .buildUpon()
39
+ .appendQueryParameter(PARAM_FIRST_OPEN, String.valueOf(checkAndMarkFirstOpen()))
40
+ .build();`;
41
+ }
42
+ }
43
+ exports.FirstRunFlagFeature = FirstRunFlagFeature;
@@ -0,0 +1,7 @@
1
+ import { EmptyFeature } from './EmptyFeature';
2
+ export declare type LocationDelegationConfig = {
3
+ enabled: boolean;
4
+ };
5
+ export declare class LocationDelegationFeature extends EmptyFeature {
6
+ constructor();
7
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2020 Google Inc. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.LocationDelegationFeature = void 0;
19
+ const EmptyFeature_1 = require("./EmptyFeature");
20
+ class LocationDelegationFeature extends EmptyFeature_1.EmptyFeature {
21
+ constructor() {
22
+ super('locationDelegation');
23
+ this.buildGradle.dependencies.push('com.google.androidbrowserhelper:locationdelegation:1.0.1');
24
+ this.androidManifest.components.push(`<activity android:name=
25
+ "com.google.androidbrowserhelper.locationdelegation.PermissionRequestActivity"/>`);
26
+ this.delegationService.imports.push('com.google.androidbrowserhelper.locationdelegation' +
27
+ '.LocationDelegationExtraCommandHandler');
28
+ this.delegationService.onCreate =
29
+ 'registerExtraCommandHandler(new LocationDelegationExtraCommandHandler());';
30
+ }
31
+ }
32
+ exports.LocationDelegationFeature = LocationDelegationFeature;