@capgo/capacitor-android-age-signals 8.1.9 → 8.1.10

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,17 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'CapgoCapacitorAndroidAgeSignals'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '15.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
17
+ end
package/Package.swift ADDED
@@ -0,0 +1,28 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "CapgoCapacitorAndroidAgeSignals",
6
+ platforms: [.iOS(.v15)],
7
+ products: [
8
+ .library(
9
+ name: "CapgoCapacitorAndroidAgeSignals",
10
+ targets: ["AgeSignalsPlugin"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
14
+ ],
15
+ targets: [
16
+ .target(
17
+ name: "AgeSignalsPlugin",
18
+ dependencies: [
19
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
+ .product(name: "Cordova", package: "capacitor-swift-pm")
21
+ ],
22
+ path: "ios/Sources/AgeSignalsPlugin"),
23
+ .testTarget(
24
+ name: "AgeSignalsPluginTests",
25
+ dependencies: ["AgeSignalsPlugin"],
26
+ path: "ios/Tests/AgeSignalsPluginTests")
27
+ ]
28
+ )
@@ -31,7 +31,7 @@ android {
31
31
  buildTypes {
32
32
  release {
33
33
  minifyEnabled false
34
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
34
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
35
35
  }
36
36
  }
37
37
  lintOptions {
@@ -15,7 +15,7 @@ import com.getcapacitor.annotation.CapacitorPlugin;
15
15
  @CapacitorPlugin(name = "AgeSignals")
16
16
  public class AgeSignalsPlugin extends Plugin {
17
17
 
18
- private final String pluginVersion = "8.1.9";
18
+ private final String pluginVersion = "8.1.10";
19
19
  public static final String TAG = "AgeSignals";
20
20
  private static final String ERROR_UNKNOWN = "An unknown error occurred.";
21
21
 
@@ -7,7 +7,7 @@ import Capacitor
7
7
  */
8
8
  @objc(AgeSignalsPlugin)
9
9
  public class AgeSignalsPlugin: CAPPlugin, CAPBridgedPlugin {
10
- private let pluginVersion: String = "8.1.9"
10
+ private let pluginVersion: String = "8.1.10"
11
11
  public let identifier = "AgeSignalsPlugin"
12
12
  public let jsName = "AgeSignals"
13
13
  public let pluginMethods: [CAPPluginMethod] = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-android-age-signals",
3
- "version": "8.1.9",
3
+ "version": "8.1.10",
4
4
  "description": "Capacitor plugin that exposes Google Play Age Signals to your app.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -9,9 +9,11 @@
9
9
  "files": [
10
10
  "android/src/main/",
11
11
  "android/build.gradle",
12
- "ios/Sources/",
13
- "ios/Tests/",
14
12
  "dist/",
13
+ "ios/Sources",
14
+ "ios/Tests",
15
+ "Package.swift",
16
+ "CapgoCapacitorAndroidAgeSignals.podspec",
15
17
  "src/",
16
18
  "README.md"
17
19
  ],
@@ -37,15 +39,17 @@
37
39
  "verify:ios": "xcodebuild -scheme CapgoCapacitorAndroidAgeSignals -destination generic/platform=iOS",
38
40
  "verify:android": "cd android && ./gradlew clean build test && cd ..",
39
41
  "verify:web": "bun run build",
40
- "lint": "bun run eslint && bun run prettier -- --check",
41
- "fmt": "bun run eslint -- --fix && bun run prettier -- --write",
42
+ "lint": "bun run eslint && bun run prettier -- --check && bun run swiftlint -- lint",
43
+ "fmt": "bun run eslint -- --fix && bun run prettier -- --write && bun run swiftlint -- --fix --format",
42
44
  "eslint": "eslint . --ext .ts",
43
45
  "prettier": "prettier-pretty-check \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
46
+ "swiftlint": "node-swiftlint",
44
47
  "docgen": "docgen --api AgeSignalsPlugin --output-readme README.md --output-json dist/docs.json",
45
48
  "build": "bun run clean && bun run docgen && tsc && rollup -c rollup.config.mjs",
46
49
  "clean": "rimraf ./dist",
47
50
  "watch": "tsc --watch",
48
- "prepublishOnly": "bun run build"
51
+ "prepublishOnly": "bun run build",
52
+ "check:wiring": "node scripts/check-capacitor-plugin-wiring.mjs"
49
53
  },
50
54
  "devDependencies": {
51
55
  "@capacitor/android": "^8.0.0",
@@ -55,6 +59,7 @@
55
59
  "@capacitor/ios": "^8.0.0",
56
60
  "@ionic/eslint-config": "^0.4.0",
57
61
  "@ionic/prettier-config": "^4.0.0",
62
+ "@ionic/swiftlint-config": "^2.0.0",
58
63
  "@types/node": "^24.10.1",
59
64
  "eslint": "^8.57.1",
60
65
  "eslint-plugin-import": "^2.31.0",
@@ -62,6 +67,7 @@
62
67
  "prettier-plugin-java": "^2.7.7",
63
68
  "rimraf": "^6.1.0",
64
69
  "rollup": "^4.53.2",
70
+ "swiftlint": "^2.0.0",
65
71
  "typescript": "^5.9.3",
66
72
  "prettier-pretty-check": "^0.2.0"
67
73
  },
@@ -72,12 +78,13 @@
72
78
  "extends": "@ionic/eslint-config/recommended"
73
79
  },
74
80
  "prettier": "@ionic/prettier-config",
81
+ "swiftlint": "@ionic/swiftlint-config",
75
82
  "capacitor": {
76
- "android": {
77
- "src": "android"
78
- },
79
83
  "ios": {
80
84
  "src": "ios"
85
+ },
86
+ "android": {
87
+ "src": "android"
81
88
  }
82
89
  }
83
90
  }