@capacitor/preferences 6.0.3 → 7.0.0-alpha.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.
- package/CapacitorPreferences.podspec +1 -1
- package/Package.swift +2 -2
- package/android/build.gradle +9 -9
- package/dist/plugin.cjs.js +0 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +0 -2
- package/dist/plugin.js.map +1 -1
- package/package.json +10 -10
|
@@ -11,7 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.source = { :git => 'https://github.com/ionic-team/capacitor-plugins.git', :tag => package['name'] + '@' + package['version'] }
|
|
13
13
|
s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}', 'preferences/ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
|
|
14
|
-
s.ios.deployment_target
|
|
14
|
+
s.ios.deployment_target = '14.0'
|
|
15
15
|
s.dependency 'Capacitor'
|
|
16
16
|
s.swift_version = '5.1'
|
|
17
17
|
end
|
package/Package.swift
CHANGED
|
@@ -3,14 +3,14 @@ import PackageDescription
|
|
|
3
3
|
|
|
4
4
|
let package = Package(
|
|
5
5
|
name: "CapacitorPreferences",
|
|
6
|
-
platforms: [.iOS(.
|
|
6
|
+
platforms: [.iOS(.v14)],
|
|
7
7
|
products: [
|
|
8
8
|
.library(
|
|
9
9
|
name: "CapacitorPreferences",
|
|
10
10
|
targets: ["PreferencesPlugin"])
|
|
11
11
|
],
|
|
12
12
|
dependencies: [
|
|
13
|
-
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git",
|
|
13
|
+
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", branch: "main")
|
|
14
14
|
],
|
|
15
15
|
targets: [
|
|
16
16
|
.target(
|
package/android/build.gradle
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
ext {
|
|
2
2
|
capacitorVersion = System.getenv('CAPACITOR_VERSION')
|
|
3
3
|
junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
|
|
4
|
-
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.
|
|
5
|
-
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1
|
|
6
|
-
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.
|
|
4
|
+
androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
|
|
5
|
+
androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
|
|
6
|
+
androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
buildscript {
|
|
@@ -15,7 +15,7 @@ buildscript {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
dependencies {
|
|
18
|
-
classpath 'com.android.tools.build:gradle:8.2
|
|
18
|
+
classpath 'com.android.tools.build:gradle:8.7.2'
|
|
19
19
|
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
20
20
|
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
|
|
21
21
|
}
|
|
@@ -31,10 +31,10 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
|
31
31
|
|
|
32
32
|
android {
|
|
33
33
|
namespace "com.capacitorjs.plugins.preferences"
|
|
34
|
-
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion :
|
|
34
|
+
compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 35
|
|
35
35
|
defaultConfig {
|
|
36
|
-
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion :
|
|
37
|
-
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion :
|
|
36
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 23
|
|
37
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 35
|
|
38
38
|
versionCode 1
|
|
39
39
|
versionName "1.0"
|
|
40
40
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
@@ -49,8 +49,8 @@ android {
|
|
|
49
49
|
abortOnError false
|
|
50
50
|
}
|
|
51
51
|
compileOptions {
|
|
52
|
-
sourceCompatibility JavaVersion.
|
|
53
|
-
targetCompatibility JavaVersion.
|
|
52
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
53
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
54
54
|
}
|
|
55
55
|
publishing {
|
|
56
56
|
singleVariant("release")
|
package/dist/plugin.cjs.js
CHANGED
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 Preferences = registerPlugin('Preferences', {\n web: () => import('./web').then(m => new m.PreferencesWeb()),\n});\nexport * from './definitions';\nexport { Preferences };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PreferencesWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.group = 'CapacitorStorage';\n }\n async configure({ group }) {\n if (typeof group === 'string') {\n this.group = group;\n }\n }\n async get(options) {\n const value = this.impl.getItem(this.applyPrefix(options.key));\n return { value };\n }\n async set(options) {\n this.impl.setItem(this.applyPrefix(options.key), options.value);\n }\n async remove(options) {\n this.impl.removeItem(this.applyPrefix(options.key));\n }\n async keys() {\n const keys = this.rawKeys().map(k => k.substring(this.prefix.length));\n return { keys };\n }\n async clear() {\n for (const key of this.rawKeys()) {\n this.impl.removeItem(key);\n }\n }\n async migrate() {\n var _a;\n const migrated = [];\n const existing = [];\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n const key = oldkey.substring(oldprefix.length);\n const value = (_a = this.impl.getItem(oldkey)) !== null && _a !== void 0 ? _a : '';\n const { value: currentValue } = await this.get({ key });\n if (typeof currentValue === 'string') {\n existing.push(key);\n }\n else {\n await this.set({ key, value });\n migrated.push(key);\n }\n }\n return { migrated, existing };\n }\n async removeOld() {\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n this.impl.removeItem(oldkey);\n }\n }\n get impl() {\n return window.localStorage;\n }\n get prefix() {\n return this.group === 'NativeStorage' ? '' : `${this.group}.`;\n }\n rawKeys() {\n return Object.keys(this.impl).filter(k => k.indexOf(this.prefix) === 0);\n }\n applyPrefix(key) {\n return this.prefix + key;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Preferences = registerPlugin('Preferences', {\n web: () => import('./web').then(m => new m.PreferencesWeb()),\n});\nexport * from './definitions';\nexport { Preferences };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PreferencesWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.group = 'CapacitorStorage';\n }\n async configure({ group }) {\n if (typeof group === 'string') {\n this.group = group;\n }\n }\n async get(options) {\n const value = this.impl.getItem(this.applyPrefix(options.key));\n return { value };\n }\n async set(options) {\n this.impl.setItem(this.applyPrefix(options.key), options.value);\n }\n async remove(options) {\n this.impl.removeItem(this.applyPrefix(options.key));\n }\n async keys() {\n const keys = this.rawKeys().map(k => k.substring(this.prefix.length));\n return { keys };\n }\n async clear() {\n for (const key of this.rawKeys()) {\n this.impl.removeItem(key);\n }\n }\n async migrate() {\n var _a;\n const migrated = [];\n const existing = [];\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n const key = oldkey.substring(oldprefix.length);\n const value = (_a = this.impl.getItem(oldkey)) !== null && _a !== void 0 ? _a : '';\n const { value: currentValue } = await this.get({ key });\n if (typeof currentValue === 'string') {\n existing.push(key);\n }\n else {\n await this.set({ key, value });\n migrated.push(key);\n }\n }\n return { migrated, existing };\n }\n async removeOld() {\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n this.impl.removeItem(oldkey);\n }\n }\n get impl() {\n return window.localStorage;\n }\n get prefix() {\n return this.group === 'NativeStorage' ? '' : `${this.group}.`;\n }\n rawKeys() {\n return Object.keys(this.impl).filter(k => k.indexOf(this.prefix) === 0);\n }\n applyPrefix(key) {\n return this.prefix + key;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;AAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;AAChE,CAAC;;ACFM,MAAM,cAAc,SAASC,cAAS,CAAC;AAC9C,IAAI,WAAW,GAAG;AAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;AAC3B,QAAQ,IAAI,CAAC,KAAK,GAAG,kBAAkB;AACvC;AACA,IAAI,MAAM,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;AAC/B,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;AACvC,YAAY,IAAI,CAAC,KAAK,GAAG,KAAK;AAC9B;AACA;AACA,IAAI,MAAM,GAAG,CAAC,OAAO,EAAE;AACvB,QAAQ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,CAAC,KAAK,CAAC,CAAC,CAAC;AACrE;AACA,IAAI,OAAO,GAAG;AACd,QAAQ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC/E;AACA,IAAI,WAAW,CAAC,GAAG,EAAE;AACrB,QAAQ,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG;AAChC;AACA;;;;;;;;;"}
|
package/dist/plugin.js
CHANGED
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 Preferences = registerPlugin('Preferences', {\n web: () => import('./web').then(m => new m.PreferencesWeb()),\n});\nexport * from './definitions';\nexport { Preferences };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PreferencesWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.group = 'CapacitorStorage';\n }\n async configure({ group }) {\n if (typeof group === 'string') {\n this.group = group;\n }\n }\n async get(options) {\n const value = this.impl.getItem(this.applyPrefix(options.key));\n return { value };\n }\n async set(options) {\n this.impl.setItem(this.applyPrefix(options.key), options.value);\n }\n async remove(options) {\n this.impl.removeItem(this.applyPrefix(options.key));\n }\n async keys() {\n const keys = this.rawKeys().map(k => k.substring(this.prefix.length));\n return { keys };\n }\n async clear() {\n for (const key of this.rawKeys()) {\n this.impl.removeItem(key);\n }\n }\n async migrate() {\n var _a;\n const migrated = [];\n const existing = [];\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n const key = oldkey.substring(oldprefix.length);\n const value = (_a = this.impl.getItem(oldkey)) !== null && _a !== void 0 ? _a : '';\n const { value: currentValue } = await this.get({ key });\n if (typeof currentValue === 'string') {\n existing.push(key);\n }\n else {\n await this.set({ key, value });\n migrated.push(key);\n }\n }\n return { migrated, existing };\n }\n async removeOld() {\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n this.impl.removeItem(oldkey);\n }\n }\n get impl() {\n return window.localStorage;\n }\n get prefix() {\n return this.group === 'NativeStorage' ? '' : `${this.group}.`;\n }\n rawKeys() {\n return Object.keys(this.impl).filter(k => k.indexOf(this.prefix) === 0);\n }\n applyPrefix(key) {\n return this.prefix + key;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;IAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;IAChE,CAAC;;ICFM,MAAM,cAAc,SAASC,cAAS,CAAC;IAC9C,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC
|
|
1
|
+
{"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst Preferences = registerPlugin('Preferences', {\n web: () => import('./web').then(m => new m.PreferencesWeb()),\n});\nexport * from './definitions';\nexport { Preferences };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class PreferencesWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.group = 'CapacitorStorage';\n }\n async configure({ group }) {\n if (typeof group === 'string') {\n this.group = group;\n }\n }\n async get(options) {\n const value = this.impl.getItem(this.applyPrefix(options.key));\n return { value };\n }\n async set(options) {\n this.impl.setItem(this.applyPrefix(options.key), options.value);\n }\n async remove(options) {\n this.impl.removeItem(this.applyPrefix(options.key));\n }\n async keys() {\n const keys = this.rawKeys().map(k => k.substring(this.prefix.length));\n return { keys };\n }\n async clear() {\n for (const key of this.rawKeys()) {\n this.impl.removeItem(key);\n }\n }\n async migrate() {\n var _a;\n const migrated = [];\n const existing = [];\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n const key = oldkey.substring(oldprefix.length);\n const value = (_a = this.impl.getItem(oldkey)) !== null && _a !== void 0 ? _a : '';\n const { value: currentValue } = await this.get({ key });\n if (typeof currentValue === 'string') {\n existing.push(key);\n }\n else {\n await this.set({ key, value });\n migrated.push(key);\n }\n }\n return { migrated, existing };\n }\n async removeOld() {\n const oldprefix = '_cap_';\n const keys = Object.keys(this.impl).filter(k => k.indexOf(oldprefix) === 0);\n for (const oldkey of keys) {\n this.impl.removeItem(oldkey);\n }\n }\n get impl() {\n return window.localStorage;\n }\n get prefix() {\n return this.group === 'NativeStorage' ? '' : `${this.group}.`;\n }\n rawKeys() {\n return Object.keys(this.impl).filter(k => k.indexOf(this.prefix) === 0);\n }\n applyPrefix(key) {\n return this.prefix + key;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,WAAW,GAAGA,mBAAc,CAAC,aAAa,EAAE;IAClD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,cAAc,EAAE,CAAC;IAChE,CAAC;;ICFM,MAAM,cAAc,SAASC,cAAS,CAAC;IAC9C,IAAI,WAAW,GAAG;IAClB,QAAQ,KAAK,CAAC,GAAG,SAAS,CAAC;IAC3B,QAAQ,IAAI,CAAC,KAAK,GAAG,kBAAkB;IACvC;IACA,IAAI,MAAM,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE;IAC/B,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;IACvC,YAAY,IAAI,CAAC,KAAK,GAAG,KAAK;IAC9B;IACA;IACA,IAAI,MAAM,GAAG,CAAC,OAAO,EAAE;IACv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E,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE;IACA,IAAI,OAAO,GAAG;IACd,QAAQ,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/E;IACA,IAAI,WAAW,CAAC,GAAG,EAAE;IACrB,QAAQ,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG;IAChC;IACA;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capacitor/preferences",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.2",
|
|
4
4
|
"description": "The Preferences API provides a simple key/value persistent store for lightweight data.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"verify": "npm run verify:ios && npm run verify:android && npm run verify:web",
|
|
34
|
-
"verify:ios": "xcodebuild build -scheme CapacitorPreferences -
|
|
34
|
+
"verify:ios": "xcodebuild build -scheme CapacitorPreferences -destination generic/platform=iOS",
|
|
35
35
|
"verify:android": "cd android && ./gradlew clean build test && cd ..",
|
|
36
36
|
"verify:web": "npm run build",
|
|
37
37
|
"lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
|
|
@@ -40,30 +40,30 @@
|
|
|
40
40
|
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
41
41
|
"swiftlint": "node-swiftlint",
|
|
42
42
|
"docgen": "docgen --api PreferencesPlugin --output-readme README.md --output-json dist/docs.json",
|
|
43
|
-
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.
|
|
43
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
|
|
44
44
|
"clean": "rimraf ./dist",
|
|
45
45
|
"watch": "tsc --watch",
|
|
46
46
|
"prepublishOnly": "npm run build",
|
|
47
47
|
"publish:cocoapod": "pod trunk push ./CapacitorPreferences.podspec --allow-warnings"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@capacitor/android": "
|
|
51
|
-
"@capacitor/core": "
|
|
50
|
+
"@capacitor/android": "next",
|
|
51
|
+
"@capacitor/core": "next",
|
|
52
52
|
"@capacitor/docgen": "0.2.2",
|
|
53
|
-
"@capacitor/ios": "
|
|
53
|
+
"@capacitor/ios": "next",
|
|
54
54
|
"@ionic/eslint-config": "^0.4.0",
|
|
55
55
|
"@ionic/prettier-config": "~1.0.1",
|
|
56
56
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
57
57
|
"eslint": "^8.57.0",
|
|
58
58
|
"prettier": "~2.3.0",
|
|
59
59
|
"prettier-plugin-java": "~1.0.2",
|
|
60
|
-
"rimraf": "^
|
|
61
|
-
"rollup": "^
|
|
60
|
+
"rimraf": "^6.0.1",
|
|
61
|
+
"rollup": "^4.26.0",
|
|
62
62
|
"swiftlint": "^1.0.1",
|
|
63
63
|
"typescript": "~4.1.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@capacitor/core": "
|
|
66
|
+
"@capacitor/core": "next"
|
|
67
67
|
},
|
|
68
68
|
"prettier": "@ionic/prettier-config",
|
|
69
69
|
"swiftlint": "@ionic/swiftlint-config",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "023f53b42a81049b7cdef6c7b0102b85b4df1c01"
|
|
85
85
|
}
|