@ohos-ports/app-version 0.0.0-stage → 9.7.0-beta.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/LICENSE ADDED
@@ -0,0 +1,23 @@
1
+ Copyright 2015-present Drifty Co.
2
+ http://drifty.com/
3
+
4
+ MIT License
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,24 @@
1
- # Temporary Holding Version
1
+ # App Version
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Reads the version of your app from the target build settings.
4
+
5
+ Requires Cordova plugin: `cordova-plugin-app-version`. For more info, please see the [Cordova App Version docs](https://github.com/whiteoctober/cordova-plugin-app-version).
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ ionic cordova plugin add cordova-plugin-app-version
11
+ npm install @awesome-cordova-plugins/app-version
12
+ ```
13
+
14
+ **Plugin Repo:** [https://github.com/whiteoctober/cordova-plugin-app-version](https://github.com/whiteoctober/cordova-plugin-app-version)
15
+
16
+ ## Supported Platforms
17
+
18
+ - Android
19
+ - iOS
20
+
21
+ ## Further Information
22
+
23
+ - [Installation Guide](https://danielsogl.gitbook.io/awesome-cordova-plugins/installation)
24
+ - [FAQ](https://danielsogl.gitbook.io/awesome-cordova-plugins/faq)
package/index.d.ts ADDED
@@ -0,0 +1,54 @@
1
+ import { AwesomeCordovaNativePlugin } from '@ohos-ports/awesome-cordova-plugins-core';
2
+ /**
3
+ * @name App Version
4
+ * @premier app-version
5
+ * @description
6
+ * Reads the version of your app from the target build settings.
7
+ *
8
+ * Requires Cordova plugin: `cordova-plugin-app-version`. For more info, please see the [Cordova App Version docs](https://github.com/whiteoctober/cordova-plugin-app-version).
9
+ * @usage
10
+ * ```typescript
11
+ * import { AppVersion } from '@awesome-cordova-plugins/app-version/ngx';
12
+ *
13
+ * constructor(private appVersion: AppVersion) { }
14
+ *
15
+ * ...
16
+ *
17
+ *
18
+ * this.appVersion.getAppName();
19
+ * this.appVersion.getPackageName();
20
+ * this.appVersion.getVersionCode();
21
+ * this.appVersion.getVersionNumber();
22
+ *
23
+ * ```
24
+ */
25
+ export declare class AppVersionOriginal extends AwesomeCordovaNativePlugin {
26
+ /**
27
+ * Returns the name of the app, e.g.: "My Awesome App"
28
+ *
29
+ * @returns {Promise<string>}
30
+ */
31
+ getAppName(): Promise<string>;
32
+ /**
33
+ * Returns the package name of the app, e.g.: "com.example.myawesomeapp"
34
+ *
35
+ * @returns {Promise<string>}
36
+ */
37
+ getPackageName(): Promise<string>;
38
+ /**
39
+ * Returns the build identifier of the app.
40
+ * In iOS a string with the build version like "1.6095"
41
+ * In Android a number generated from the version string, like 10203 for version "1.2.3"
42
+ *
43
+ * @returns {Promise<string | number>}
44
+ */
45
+ getVersionCode(): Promise<string | number>;
46
+ /**
47
+ * Returns the version of the app, e.g.: "1.2.3"
48
+ *
49
+ * @returns {Promise<string>}
50
+ */
51
+ getVersionNumber(): Promise<string>;
52
+ }
53
+
54
+ export declare const AppVersion: AppVersionOriginal;
package/index.js ADDED
@@ -0,0 +1,15 @@
1
+ import { AwesomeCordovaNativePlugin, cordova } from '@ohos-ports/awesome-cordova-plugins-core';
2
+ class AppVersionOriginal extends AwesomeCordovaNativePlugin {
3
+ getAppName() { return cordova(this, "getAppName", {}, arguments); }
4
+ getPackageName() { return cordova(this, "getPackageName", {}, arguments); }
5
+ getVersionCode() { return cordova(this, "getVersionCode", {}, arguments); }
6
+ getVersionNumber() { return cordova(this, "getVersionNumber", {}, arguments); }
7
+ static pluginName = "AppVersion";
8
+ static plugin = "cordova-plugin-app-version";
9
+ static pluginRef = "cordova.getAppVersion";
10
+ static repo = "https://github.com/whiteoctober/cordova-plugin-app-version";
11
+ static platforms = ["Android", "iOS"];
12
+ }
13
+ const AppVersion = new AppVersionOriginal();
14
+ export { AppVersion };
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvQGF3ZXNvbWUtY29yZG92YS1wbHVnaW5zL3BsdWdpbnMvYXBwLXZlcnNpb24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyx1Q0FBK0MsTUFBTSwrQkFBK0IsQ0FBQzthQWlDL0UsVUFBVyxTQUFRLDBCQUEwQjtJQU94RCxVQUFVO0lBVVYsY0FBYztJQVlkLGNBQWM7SUFVZCxnQkFBZ0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBDb3Jkb3ZhLCBBd2Vzb21lQ29yZG92YU5hdGl2ZVBsdWdpbiwgUGx1Z2luIH0gZnJvbSAnQGF3ZXNvbWUtY29yZG92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yB7UHJvbWlzZTxzdHJpbmcgfCBudW1iZXI+fVxuICAgKi9cbiAgQENvcmRvdmEoKVxuICBnZXRWZXJzaW9uQ29kZSgpOiBQcm9taXNlPHN0cmluZyB8IG51bWJlcj4ge1xuICAgIHJldHVybjtcbiAgfVxuXG4gIC8qKlxuICAgKiBSZXR1cm5zIHRoZSB2ZXJzaW9uIG9mIHRoZSBhcHAsIGUuZy46IFwiMS4yLjNcIlxuICAgKlxuICAgKiBAcmV0dXJucyB7UHJvbWlzZTxzdHJpbmc+fVxuICAgKi9cbiAgQENvcmRvdmEoKVxuICBnZXRWZXJzaW9uTnVtYmVyKCk6IFByb21pc2U8c3RyaW5nPiB7XG4gICAgcmV0dXJuO1xuICB9XG59XG4iXX0=
package/ngx/index.d.ts ADDED
@@ -0,0 +1,52 @@
1
+ import { AwesomeCordovaNativePlugin } from '@ohos-ports/awesome-cordova-plugins-core';
2
+ /**
3
+ * @name App Version
4
+ * @premier app-version
5
+ * @description
6
+ * Reads the version of your app from the target build settings.
7
+ *
8
+ * Requires Cordova plugin: `cordova-plugin-app-version`. For more info, please see the [Cordova App Version docs](https://github.com/whiteoctober/cordova-plugin-app-version).
9
+ * @usage
10
+ * ```typescript
11
+ * import { AppVersion } from '@awesome-cordova-plugins/app-version/ngx';
12
+ *
13
+ * constructor(private appVersion: AppVersion) { }
14
+ *
15
+ * ...
16
+ *
17
+ *
18
+ * this.appVersion.getAppName();
19
+ * this.appVersion.getPackageName();
20
+ * this.appVersion.getVersionCode();
21
+ * this.appVersion.getVersionNumber();
22
+ *
23
+ * ```
24
+ */
25
+ export declare class AppVersion extends AwesomeCordovaNativePlugin {
26
+ /**
27
+ * Returns the name of the app, e.g.: "My Awesome App"
28
+ *
29
+ * @returns {Promise<string>}
30
+ */
31
+ getAppName(): Promise<string>;
32
+ /**
33
+ * Returns the package name of the app, e.g.: "com.example.myawesomeapp"
34
+ *
35
+ * @returns {Promise<string>}
36
+ */
37
+ getPackageName(): Promise<string>;
38
+ /**
39
+ * Returns the build identifier of the app.
40
+ * In iOS a string with the build version like "1.6095"
41
+ * In Android a number generated from the version string, like 10203 for version "1.2.3"
42
+ *
43
+ * @returns {Promise<string | number>}
44
+ */
45
+ getVersionCode(): Promise<string | number>;
46
+ /**
47
+ * Returns the version of the app, e.g.: "1.2.3"
48
+ *
49
+ * @returns {Promise<string>}
50
+ */
51
+ getVersionNumber(): Promise<string>;
52
+ }
package/ngx/index.js ADDED
@@ -0,0 +1,20 @@
1
+ import { Injectable } from '@angular/core';
2
+ import { AwesomeCordovaNativePlugin, cordova } from '@ohos-ports/awesome-cordova-plugins-core';
3
+ import * as i0 from "@angular/core";
4
+ export class AppVersion extends AwesomeCordovaNativePlugin {
5
+ getAppName() { return cordova(this, "getAppName", {}, arguments); }
6
+ getPackageName() { return cordova(this, "getPackageName", {}, arguments); }
7
+ getVersionCode() { return cordova(this, "getVersionCode", {}, arguments); }
8
+ getVersionNumber() { return cordova(this, "getVersionNumber", {}, arguments); }
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: AppVersion, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
10
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: AppVersion });
11
+ static pluginName = "AppVersion";
12
+ static plugin = "cordova-plugin-app-version";
13
+ static pluginRef = "cordova.getAppVersion";
14
+ static repo = "https://github.com/whiteoctober/cordova-plugin-app-version";
15
+ static platforms = ["Android", "iOS"];
16
+ }
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.3", ngImport: i0, type: AppVersion, decorators: [{
18
+ type: Injectable
19
+ }], propDecorators: { getAppName: [], getPackageName: [], getVersionCode: [], getVersionNumber: [] } });
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6Wy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xzdHJpbmc+IHtcbiAgICByZXR1cm47XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJucyB0aGUgcGFja2FnZSBuYW1lIG9mIHRoZSBhcHAsIGUuZy46IFwiY29tLmV4YW1wbGUubXlhd2Vzb21lYXBwXCJcbiAgICpcbiAgICogQHJldHVybnMge1Byb21pc2U8c3RyaW5nPn1cbiAgICovXG4gIEBDb3Jkb3ZhKClcbiAgZ2V0UGFja2FnZU5hbWUoKTogUHJvbWlzZTxzdHJpbmc+IHtcbiAgICByZXR1cm47XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJucyB0aGUgYnVpbGQgaWRlbnRpZmllciBvZiB0aGUgYXBwLlxuICAgKiBJbiBpT1MgYSBzdHJpbmcgd2l0aCB0aGUgYnVpbGQgdmVyc2lvbiBsaWtlIFwiMS42MDk1XCJcbiAgICogSW4gQW5kcm9pZCBhIG51bWJlciBnZW5lcmF0ZWQgZnJvbSB0aGUgdmVyc2lvbiBzdHJpbmcsIGxpa2UgMTAyMDMgZm9yIHZlcnNpb24gXCIxLjIuM1wiXG4gICAqXG4gICAqIEByZXR1cm5zIHtQcm9taXNlPHN0cmluZyB8IG51bWJlcj59XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIGdldFZlcnNpb25Db2RlKCk6IFByb21pc2U8c3RyaW5nIHwgbnVtYmVyPiB7XG4gICAgcmV0dXJuO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgdGhlIHZlcnNpb24gb2YgdGhlIGFwcCwgZS5nLjogXCIxLjIuM1wiXG4gICAqXG4gICAqIEByZXR1cm5zIHtQcm9taXNlPHN0cmluZz59XG4gICAqL1xuICBAQ29yZG92YSgpXG4gIGdldFZlcnNpb25OdW1iZXIoKTogUHJvbWlzZTxzdHJpbmc+IHtcbiAgICByZXR1cm47XG4gIH1cbn1cbiJdfQ==
@@ -0,0 +1,6 @@
1
+ {
2
+ "main": "./index.js",
3
+ "module": "./index.js",
4
+ "types": "./index.d.ts",
5
+ "sideEffects": false
6
+ }
package/package.json CHANGED
@@ -1,6 +1,48 @@
1
1
  {
2
+ "description": "App Version plugin for Cordova and Ionic. Reads the version of your app from the target build settings. Requires Cordova plugin:…",
3
+ "type": "module",
4
+ "main": "./index.js",
5
+ "module": "./index.js",
6
+ "types": "./index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./index.d.ts",
10
+ "import": "./index.js",
11
+ "default": "./index.js"
12
+ },
13
+ "./ngx": {
14
+ "types": "./ngx/index.d.ts",
15
+ "import": "./ngx/index.js",
16
+ "default": "./ngx/index.js"
17
+ },
18
+ "./package.json": "./package.json"
19
+ },
20
+ "sideEffects": false,
21
+ "author": "Daniel Sogl",
22
+ "license": "MIT",
23
+ "homepage": "https://awesome-cordova-plugins.com",
24
+ "bugs": {
25
+ "url": "https://github.com/danielsogl/awesome-cordova-plugins/issues"
26
+ },
27
+ "keywords": [
28
+ "cordova",
29
+ "ionic",
30
+ "angular",
31
+ "native",
32
+ "mobile",
33
+ "plugin",
34
+ "app-version"
35
+ ],
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/danielsogl/awesome-cordova-plugins.git",
39
+ "directory": "src/@awesome-cordova-plugins/plugins/app-version"
40
+ },
2
41
  "name": "@ohos-ports/app-version",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
42
+ "dependencies": {},
43
+ "peerDependencies": {
44
+ "rxjs": "^5.5.0 || ^6.5.0 || ^7.3.0",
45
+ "@ohos-ports/awesome-cordova-plugins-core": "^9.7.0-beta.1"
46
+ },
47
+ "version": "9.7.0-beta.1"
48
+ }