diff --git a/CapacitorBranchDeepLinks.podspec b/CapacitorBranchDeepLinks.podspec index 9df0cc4..be87ec7 100644 --- a/CapacitorBranchDeepLinks.podspec +++ b/CapacitorBranchDeepLinks.podspec @@ -1,14 +1,17 @@ +require 'json' - Pod::Spec.new do |s| - s.name = 'CapacitorBranchDeepLinks' - s.version = '0.0.1' - s.summary = 'Capacitor plugin for Branch.io deep links' - s.license = 'MIT' - s.homepage = 'none' - s.author = 'Bound State Software' - s.source = { :git => 'none', :tag => s.version.to_s } - s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' - s.ios.deployment_target = '11.0' - s.dependency 'Capacitor' - s.dependency 'Branch' - end +package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) + +Pod::Spec.new do |s| + s.name = 'CapacitorBranchDeepLinks' + s.version = package['version'] + s.summary = package['description'] + s.license = package['license'] + s.homepage = package['homepage'] + s.author = package['author'] + s.source = { :git => 'https://github.com/boundstate/capacitor-branch-deep-links', :tag => s.version.to_s } + s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}' + s.ios.deployment_target = '11.0' + .dependency 'Capacitor' + s.dependency 'Branch' +end diff --git a/package.json b/package.json index 7184863..61cae15 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "watch": "tsc --watch", "prepublishOnly": "npm run build" }, - "author": "Bound State Software", + "author": "Bound State Software ", + "homepage": "https://github.com/boundstate/capacitor-branch-deep-links", "license": "MIT", "dependencies": { "@capacitor/core": "latest" @@ -27,11 +28,10 @@ "CapacitorBranchDeepLinks.podspec" ], "keywords": [ - "capacitor", - "plugin", - "native", "branch.io", - "deep link" + "capacitor", + "capacitor-plugin", + "deep-links" ], "capacitor": { "ios": {