From 36085bd4901839d2992f02b88ed28350638b629e Mon Sep 17 00:00:00 2001 From: John Borges Date: Tue, 2 Mar 2021 16:43:30 -0500 Subject: [PATCH 1/4] refactor(appcenter-shared): remove shared class --- .../ios/Plugin.xcodeproj/project.pbxproj | 4 -- .../ios/Plugin/AppCenterShared.swift | 55 ------------------- 2 files changed, 59 deletions(-) delete mode 100644 appcenter-shared/ios/Plugin/AppCenterShared.swift diff --git a/appcenter-shared/ios/Plugin.xcodeproj/project.pbxproj b/appcenter-shared/ios/Plugin.xcodeproj/project.pbxproj index f335dd5..fb9faeb 100644 --- a/appcenter-shared/ios/Plugin.xcodeproj/project.pbxproj +++ b/appcenter-shared/ios/Plugin.xcodeproj/project.pbxproj @@ -15,7 +15,6 @@ 50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFFA52020D75100D50D53 /* Capacitor.framework */; }; 50ADFFA82020EE4F00D50D53 /* AppCenterPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFFA72020EE4F00D50D53 /* AppCenterPlugin.m */; }; 50E1A94820377CB70090CE1A /* AppCenterPlugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E1A94720377CB70090CE1A /* AppCenterPlugin.swift */; }; - 6C0B8C1E25DC7ED20021E4AF /* AppCenterShared.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0B8C1D25DC7ED20021E4AF /* AppCenterShared.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -40,7 +39,6 @@ 50ADFFA72020EE4F00D50D53 /* AppCenterPlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppCenterPlugin.m; sourceTree = ""; }; 50E1A94720377CB70090CE1A /* AppCenterPlugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppCenterPlugin.swift; sourceTree = ""; }; 5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig"; sourceTree = ""; }; - 6C0B8C1D25DC7ED20021E4AF /* AppCenterShared.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppCenterShared.swift; sourceTree = ""; }; 91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig"; sourceTree = ""; }; 96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig"; sourceTree = ""; }; F65BB2953ECE002E1EF3E424 /* Pods-PluginTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.release.xcconfig"; sourceTree = ""; }; @@ -96,7 +94,6 @@ 50ADFF8B201F53D600D50D53 /* AppCenterPlugin.h */, 50ADFFA72020EE4F00D50D53 /* AppCenterPlugin.m */, 50ADFF8C201F53D600D50D53 /* Info.plist */, - 6C0B8C1D25DC7ED20021E4AF /* AppCenterShared.swift */, ); path = Plugin; sourceTree = ""; @@ -308,7 +305,6 @@ files = ( 50E1A94820377CB70090CE1A /* AppCenterPlugin.swift in Sources */, 50ADFFA82020EE4F00D50D53 /* AppCenterPlugin.m in Sources */, - 6C0B8C1E25DC7ED20021E4AF /* AppCenterShared.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/appcenter-shared/ios/Plugin/AppCenterShared.swift b/appcenter-shared/ios/Plugin/AppCenterShared.swift deleted file mode 100644 index ce15ef8..0000000 --- a/appcenter-shared/ios/Plugin/AppCenterShared.swift +++ /dev/null @@ -1,55 +0,0 @@ -import Foundation -import AppCenter - -class AppCenterShared { - var appSecret: String? - var logUrl: String? - var wrapperSdk: WrapperSdk? - - func setAppSecret(secret: String) { - appSecret = secret - } - - func setUserId(id: String) { - AppCenter.userId = id - } - - func getAppSecretWithSettings(settings: Dictionary) -> String { - if(appSecret != nil) { - appSecret = settings["secret"] - } - - return appSecret! - } - - func configureWithSettings(settings: Dictionary) { - - if AppCenter.isConfigured { - return - } - - var wrapperSdk = WrapperSdk(wrapperSdkVersion: "0.0.1", wrapperSdkName: "appcenter.capacitor", wrapperRuntimeVersion: nil, liveUpdateReleaseLabel: nil, liveUpdateDeploymentKey: nil, liveUpdatePackageHash: nil) - - self.wrapperSdk = wrapperSdk - AppCenter.configure(withAppSecret: self.getAppSecretWithSettings(settings: settings)) - -// NSString *logLevel = [settings cordovaSettingForKey:@"LOG_LEVEL"]; -// MSLogLevel logLevelValue = [logLevel intValue]; -// [MSAppCenter setLogLevel: logLevelValue]; -// -// logUrl = [settings cordovaSettingForKey:@"LOG_URL"]; -// if (logUrl != nil) { -// [MSAppCenter setLogUrl:logUrl]; -// } - - } - - func getWrapperSdk() -> WrapperSdk { - return wrapperSdk! - } - - func setWrapperSdk(sdk: WrapperSdk) { - wrapperSdk = sdk - AppCenter.wrapperSdk = sdk - } -} From a593094781355f312459be6fc57b42b804332222 Mon Sep 17 00:00:00 2001 From: John Borges Date: Tue, 2 Mar 2021 16:45:04 -0500 Subject: [PATCH 2/4] chore(appcenter-shared): update to latest beta --- appcenter-shared/package-lock.json | 49 +++++++++++++++--------------- appcenter-shared/package.json | 8 ++--- 2 files changed, 28 insertions(+), 29 deletions(-) diff --git a/appcenter-shared/package-lock.json b/appcenter-shared/package-lock.json index 83a2e35..40190ba 100644 --- a/appcenter-shared/package-lock.json +++ b/appcenter-shared/package-lock.json @@ -9,10 +9,10 @@ "version": "0.0.1", "license": "MIT", "devDependencies": { - "@capacitor/android": "^3.0.0-beta.2", - "@capacitor/core": "3.0.0-beta.2", + "@capacitor/android": "^3.0.0-beta.6", + "@capacitor/core": "3.0.0-beta.6", "@capacitor/docgen": "^0.0.10", - "@capacitor/ios": "^3.0.0-beta.2", + "@capacitor/ios": "^3.0.0-beta.6", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -25,7 +25,7 @@ "typescript": "~4.0.3" }, "peerDependencies": { - "@capacitor/core": "^3.0.0-beta.2" + "@capacitor/core": "^3.0.0-beta.6" } }, "node_modules/@babel/code-frame": { @@ -117,20 +117,19 @@ } }, "node_modules/@capacitor/android": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.0.0-beta.2.tgz", - "integrity": "sha512-lDanxEnbzXGh7C8CumqIDJ/c1jJng+CGHQ/WMLhJ1qxGADCHFrFv7Hh4PSIljYhAkDkln6bQjtq7zOOtz6yYYw==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.0.0-beta.6.tgz", + "integrity": "sha512-8bvgsNfzueyikIASHkwmD4fvLrwq82V2+JMtHoB+c/oulun23oJmMN2P0VxX6YRXRNrMndNH4KnJMw8vi65WjQ==", "dev": true, "peerDependencies": { - "@capacitor/core": "~3.0.0-beta.2" + "@capacitor/core": "~3.0.0-beta.6" } }, "node_modules/@capacitor/core": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.2.tgz", - "integrity": "sha512-BTYVh4LMTY9lnT1qMwyAg8ursJCQyLilhZO8Uw1GFdNFKPCrTKwabzzOCM02EzhxZJDLNCVpoBufdBRlgEzz9Q==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.6.tgz", + "integrity": "sha512-zu2vcwq98CZJD4hVdvEBLB5pvPuKmHZf3e1ERcOGqxFosYfd8tbY+BkfWCa0FOYHxmrITJVoeaU/ljR4aE99FQ==", "dev": true, - "license": "MIT", "dependencies": { "tslib": "^2.1.0" } @@ -154,12 +153,12 @@ } }, "node_modules/@capacitor/ios": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.2.tgz", - "integrity": "sha512-tUXJ/xjzhB3kW9HEGowaaOhPztiB/KFchG7g4PlreBLZX0wIa0l1+Q+w9GTGuDF8hBZnRBxFNXECsPisYMpfZQ==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.6.tgz", + "integrity": "sha512-k7hAndLvBn4LwPgAeoBWdxKITDjrFBb6u+DdFY5eoaFTxyH4rz6bujq6O3n+pGYU9Ks8IvePK15bRlTeEjckkg==", "dev": true, "peerDependencies": { - "@capacitor/core": "~3.0.0-beta.2" + "@capacitor/core": "~3.0.0-beta.6" } }, "node_modules/@eslint/eslintrc": { @@ -2949,16 +2948,16 @@ } }, "@capacitor/android": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.0.0-beta.2.tgz", - "integrity": "sha512-lDanxEnbzXGh7C8CumqIDJ/c1jJng+CGHQ/WMLhJ1qxGADCHFrFv7Hh4PSIljYhAkDkln6bQjtq7zOOtz6yYYw==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/android/-/android-3.0.0-beta.6.tgz", + "integrity": "sha512-8bvgsNfzueyikIASHkwmD4fvLrwq82V2+JMtHoB+c/oulun23oJmMN2P0VxX6YRXRNrMndNH4KnJMw8vi65WjQ==", "dev": true, "requires": {} }, "@capacitor/core": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.2.tgz", - "integrity": "sha512-BTYVh4LMTY9lnT1qMwyAg8ursJCQyLilhZO8Uw1GFdNFKPCrTKwabzzOCM02EzhxZJDLNCVpoBufdBRlgEzz9Q==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.6.tgz", + "integrity": "sha512-zu2vcwq98CZJD4hVdvEBLB5pvPuKmHZf3e1ERcOGqxFosYfd8tbY+BkfWCa0FOYHxmrITJVoeaU/ljR4aE99FQ==", "dev": true, "requires": { "tslib": "^2.1.0" @@ -2977,9 +2976,9 @@ } }, "@capacitor/ios": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.2.tgz", - "integrity": "sha512-tUXJ/xjzhB3kW9HEGowaaOhPztiB/KFchG7g4PlreBLZX0wIa0l1+Q+w9GTGuDF8hBZnRBxFNXECsPisYMpfZQ==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.6.tgz", + "integrity": "sha512-k7hAndLvBn4LwPgAeoBWdxKITDjrFBb6u+DdFY5eoaFTxyH4rz6bujq6O3n+pGYU9Ks8IvePK15bRlTeEjckkg==", "dev": true, "requires": {} }, diff --git a/appcenter-shared/package.json b/appcenter-shared/package.json index 51db7e8..480c3e6 100644 --- a/appcenter-shared/package.json +++ b/appcenter-shared/package.json @@ -44,10 +44,10 @@ "prepublishOnly": "npm run build" }, "devDependencies": { - "@capacitor/android": "^3.0.0-beta.2", - "@capacitor/core": "3.0.0-beta.2", + "@capacitor/android": "^3.0.0-beta.6", + "@capacitor/core": "3.0.0-beta.6", "@capacitor/docgen": "^0.0.10", - "@capacitor/ios": "^3.0.0-beta.2", + "@capacitor/ios": "^3.0.0-beta.6", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -60,7 +60,7 @@ "typescript": "~4.0.3" }, "peerDependencies": { - "@capacitor/core": "^3.0.0-beta.2" + "@capacitor/core": "^3.0.0-beta.6" }, "prettier": "@ionic/prettier-config", "swiftlint": "@ionic/swiftlint-config", From 2fd5121a353049f8e7f77e1b9f4fbd7a6e4ac8de Mon Sep 17 00:00:00 2001 From: John Borges Date: Tue, 2 Mar 2021 16:45:27 -0500 Subject: [PATCH 3/4] chore(example): update to latest cap 3 beta --- example/package-lock.json | 62 +++++++++++++++++++-------------------- example/package.json | 8 ++--- 2 files changed, 35 insertions(+), 35 deletions(-) diff --git a/example/package-lock.json b/example/package-lock.json index c3247a8..9128f49 100644 --- a/example/package-lock.json +++ b/example/package-lock.json @@ -10,11 +10,11 @@ "dependencies": { "@capacitor-community/appcenter-shared": "file:../appcenter-shared", "@capacitor/app": "^0.3.3", - "@capacitor/cli": "^3.0.0-beta.2", - "@capacitor/core": "^3.0.0-beta.2", + "@capacitor/cli": "^3.0.0-beta.6", + "@capacitor/core": "^3.0.0-beta.6", "@capacitor/device": "^0.5.3", "@capacitor/haptics": "^0.3.3", - "@capacitor/ios": "^3.0.0-beta.2", + "@capacitor/ios": "^3.0.0-beta.6", "@capacitor/keyboard": "^0.5.3" }, "devDependencies": { @@ -27,10 +27,10 @@ "version": "0.0.1", "license": "MIT", "devDependencies": { - "@capacitor/android": "^3.0.0-beta.2", - "@capacitor/core": "3.0.0-beta.2", + "@capacitor/android": "^3.0.0-beta.6", + "@capacitor/core": "3.0.0-beta.6", "@capacitor/docgen": "^0.0.10", - "@capacitor/ios": "^3.0.0-beta.2", + "@capacitor/ios": "^3.0.0-beta.6", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -43,7 +43,7 @@ "typescript": "~4.0.3" }, "peerDependencies": { - "@capacitor/core": "^3.0.0-beta.2" + "@capacitor/core": "^3.0.0-beta.6" } }, "node_modules/@capacitor-community/appcenter-shared": { @@ -59,9 +59,9 @@ } }, "node_modules/@capacitor/cli": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-3.0.0-beta.2.tgz", - "integrity": "sha512-xQVa6M0Xk25gebgXM9Q0DcdH381qalNFW1XvZvOqHA+aGzqwBksSFPYzCuAyZMkD0v6lGdZBBuYhm5Xw4HCojw==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-3.0.0-beta.6.tgz", + "integrity": "sha512-9/E7UyDNLwrbhIe2J2jkmn0805+9LjYvndmwhj65c0lhbJUc0XhHACzJH0b/oLXM8sU/KW1LmpcXKEivaXF6dg==", "dependencies": { "@ionic/cli-framework-output": "^2.2.1", "@ionic/utils-fs": "^3.1.5", @@ -78,7 +78,7 @@ "semver": "^7.3.2", "tar": "^6.0.5", "tslib": "^2.1.0", - "xml2js": "^0.4.19" + "xml2js": "^0.4.23" }, "bin": { "cap": "bin/capacitor", @@ -94,9 +94,9 @@ "integrity": "sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==" }, "node_modules/@capacitor/core": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.2.tgz", - "integrity": "sha512-BTYVh4LMTY9lnT1qMwyAg8ursJCQyLilhZO8Uw1GFdNFKPCrTKwabzzOCM02EzhxZJDLNCVpoBufdBRlgEzz9Q==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.6.tgz", + "integrity": "sha512-zu2vcwq98CZJD4hVdvEBLB5pvPuKmHZf3e1ERcOGqxFosYfd8tbY+BkfWCa0FOYHxmrITJVoeaU/ljR4aE99FQ==", "dependencies": { "tslib": "^2.1.0" } @@ -123,11 +123,11 @@ } }, "node_modules/@capacitor/ios": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.2.tgz", - "integrity": "sha512-tUXJ/xjzhB3kW9HEGowaaOhPztiB/KFchG7g4PlreBLZX0wIa0l1+Q+w9GTGuDF8hBZnRBxFNXECsPisYMpfZQ==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.6.tgz", + "integrity": "sha512-k7hAndLvBn4LwPgAeoBWdxKITDjrFBb6u+DdFY5eoaFTxyH4rz6bujq6O3n+pGYU9Ks8IvePK15bRlTeEjckkg==", "peerDependencies": { - "@capacitor/core": "~3.0.0-beta.2" + "@capacitor/core": "~3.0.0-beta.6" } }, "node_modules/@capacitor/keyboard": { @@ -1016,10 +1016,10 @@ "@capacitor-community/appcenter-shared": { "version": "file:../appcenter-shared", "requires": { - "@capacitor/android": "^3.0.0-beta.2", - "@capacitor/core": "3.0.0-beta.2", + "@capacitor/android": "^3.0.0-beta.6", + "@capacitor/core": "3.0.0-beta.6", "@capacitor/docgen": "^0.0.10", - "@capacitor/ios": "^3.0.0-beta.2", + "@capacitor/ios": "^3.0.0-beta.6", "@ionic/eslint-config": "^0.3.0", "@ionic/prettier-config": "^1.0.1", "@ionic/swiftlint-config": "^1.1.2", @@ -1039,9 +1039,9 @@ "requires": {} }, "@capacitor/cli": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-3.0.0-beta.2.tgz", - "integrity": "sha512-xQVa6M0Xk25gebgXM9Q0DcdH381qalNFW1XvZvOqHA+aGzqwBksSFPYzCuAyZMkD0v6lGdZBBuYhm5Xw4HCojw==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-3.0.0-beta.6.tgz", + "integrity": "sha512-9/E7UyDNLwrbhIe2J2jkmn0805+9LjYvndmwhj65c0lhbJUc0XhHACzJH0b/oLXM8sU/KW1LmpcXKEivaXF6dg==", "requires": { "@ionic/cli-framework-output": "^2.2.1", "@ionic/utils-fs": "^3.1.5", @@ -1058,7 +1058,7 @@ "semver": "^7.3.2", "tar": "^6.0.5", "tslib": "^2.1.0", - "xml2js": "^0.4.19" + "xml2js": "^0.4.23" }, "dependencies": { "tslib": { @@ -1069,9 +1069,9 @@ } }, "@capacitor/core": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.2.tgz", - "integrity": "sha512-BTYVh4LMTY9lnT1qMwyAg8ursJCQyLilhZO8Uw1GFdNFKPCrTKwabzzOCM02EzhxZJDLNCVpoBufdBRlgEzz9Q==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/core/-/core-3.0.0-beta.6.tgz", + "integrity": "sha512-zu2vcwq98CZJD4hVdvEBLB5pvPuKmHZf3e1ERcOGqxFosYfd8tbY+BkfWCa0FOYHxmrITJVoeaU/ljR4aE99FQ==", "requires": { "tslib": "^2.1.0" }, @@ -1096,9 +1096,9 @@ "requires": {} }, "@capacitor/ios": { - "version": "3.0.0-beta.2", - "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.2.tgz", - "integrity": "sha512-tUXJ/xjzhB3kW9HEGowaaOhPztiB/KFchG7g4PlreBLZX0wIa0l1+Q+w9GTGuDF8hBZnRBxFNXECsPisYMpfZQ==", + "version": "3.0.0-beta.6", + "resolved": "https://registry.npmjs.org/@capacitor/ios/-/ios-3.0.0-beta.6.tgz", + "integrity": "sha512-k7hAndLvBn4LwPgAeoBWdxKITDjrFBb6u+DdFY5eoaFTxyH4rz6bujq6O3n+pGYU9Ks8IvePK15bRlTeEjckkg==", "requires": {} }, "@capacitor/keyboard": { diff --git a/example/package.json b/example/package.json index bda97f8..9b09933 100644 --- a/example/package.json +++ b/example/package.json @@ -8,7 +8,7 @@ "dist/" ], "scripts": { - "build": "stencil build", + "build": "stencil build --dev", "start": "stencil build --dev --watch --serve", "test": "stencil test --spec --e2e", "test.watch": "stencil test --spec --e2e --watch", @@ -21,11 +21,11 @@ "dependencies": { "@capacitor-community/appcenter-shared": "file:../appcenter-shared", "@capacitor/app": "^0.3.3", - "@capacitor/cli": "^3.0.0-beta.2", - "@capacitor/core": "^3.0.0-beta.2", + "@capacitor/cli": "^3.0.0-beta.6", + "@capacitor/core": "^3.0.0-beta.6", "@capacitor/device": "^0.5.3", "@capacitor/haptics": "^0.3.3", - "@capacitor/ios": "^3.0.0-beta.2", + "@capacitor/ios": "^3.0.0-beta.6", "@capacitor/keyboard": "^0.5.3" } } From aa6c04adc1c417520f64c9954f100964ed6314d9 Mon Sep 17 00:00:00 2001 From: John Borges Date: Tue, 2 Mar 2021 18:22:28 -0500 Subject: [PATCH 4/4] docs(appcenter-shared): docs cleanup & ver. bump --- README.md | 24 +++++++++++------------- appcenter-shared/CHANGELOG.md | 0 appcenter-shared/README.md | 2 +- appcenter-shared/package.json | 2 +- 4 files changed, 13 insertions(+), 15 deletions(-) create mode 100644 appcenter-shared/CHANGELOG.md diff --git a/README.md b/README.md index 99374a9..8b04314 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,21 @@ # App Center SDK for Capacitor -> 🚧 This project is currently in active development and is not ready to be used. Check back later. +> ### :rotating_light: This project is currently in active development and is not ready to be used. Check back later. :rotating_light: App Center is mission control for mobile apps. Get faster release cycles, higher-quality apps, and the insights to build what users want. -The Capacitor App Center SDK consists of a several plugins so you can use any or all of the following services: +## Plugins -1. App Center Analytics: App Center Analytics helps you understand user behavior and customer engagement to improve your app. The SDK automatically captures session count, device properties like model, OS version, etc. You can define your own custom events to measure things that matter to you. All the information captured is available in the App Center portal for you to analyze the data. +The Capacitor App Center SDK consists of a several plugins so you can use any or all of the supported App Center services: -2. App Center Crashes: App Center Crashes will automatically generate a crash log every time your app crashes. The log is first written to the device's storage and when the user starts the app again, the crash report will be sent to App Center. Collecting crashes works for both beta and live apps, i.e. those submitted to the App Store. Crash logs contain valuable information for you to help fix the crash. +| Package | Source | Version | +| --- | --- | --- | +| [`@capacitor-community/appcenter-shared`](https://capacitorjs.com/docs/v3/apis/action-sheet) | [`./appcenter-shared`](./appcenter-shared) | [![npm badge](https://img.shields.io/npm/v/@capacitor-community/appcenter-shared?style=flat-square)](https://www.npmjs.com/package/@capacitor-community/appcenter-shared) +| [`@capacitor-community/appcenter-analytics`](https://capacitorjs.com/docs/v3/apis/appcenter-analytics) | [`./appcenter-analytics`](./appcenter-analytics) | [![npm badge](https://img.shields.io/npm/v/@capacitor-community/appcenter-analytics?style=flat-square)](https://www.npmjs.com/package/@capacitor-community/appcenter-analytics) +| [`@capacitor-community/appcenter-crashes`](https://capacitorjs.com/docs/v3/apis/appcenter-crashes) | [`./appcenter-crashes`](./appcenter-crashes) | [![npm badge](https://img.shields.io/npm/v/@capacitor-community/appcenter-crashes?style=flat-square)](https://www.npmjs.com/package/@capacitor-community/appcenter-crashes) +| -3. App Center Shared: Contains additional APIs suitable for some projects: -> `@capacitor-community/appcenter-shared` is used as a dependancy for the other App Center plugins and does not need to be installed manually. -- Adjusting the Log Level -- Identify Users and Instalations -- Control SDK Services -- Custom Properties - -## Example application +## Example Mobile App You can get familiar with SDK quickly by cloning this repository and running sample app in `example` directory. For further instructions please refer to [example's README](example/README.md) @@ -26,7 +24,7 @@ You can get familiar with SDK quickly by cloning this repository and running sam Add the App Center plugin(s) that fit your needs directly from the CLI: ```bash -npm i @capacitor-community/appcenter-analytics @capacitor-community/appcenter-crashes +npm i @capacitor-community/appcenter-analytics @capacitor-community/appcenter-shared npx cap sync ``` diff --git a/appcenter-shared/CHANGELOG.md b/appcenter-shared/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/appcenter-shared/README.md b/appcenter-shared/README.md index 2e6109e..6ad0c30 100644 --- a/appcenter-shared/README.md +++ b/appcenter-shared/README.md @@ -3,7 +3,7 @@

App Center Shared

@capacitor-community/appcenter-shared

- Capacitor Plugin for Microsoft's Visual Studio App Center SDK. Contains additional APIs suitable for some projects. This plugin is used as a dependancy for the other App Center plugins and should not need to be installed manually. + Capacitor Plugin for Microsoft's Visual Studio App Center SDK. Contains additional helper APIs suitable for some projects.

diff --git a/appcenter-shared/package.json b/appcenter-shared/package.json index 480c3e6..a9bcfd7 100644 --- a/appcenter-shared/package.json +++ b/appcenter-shared/package.json @@ -1,6 +1,6 @@ { "name": "@capacitor-community/appcenter-shared", - "version": "0.0.1", + "version": "0.1.0", "description": "Capacitor Plugin for Microsoft's Visual Studio App Center SDK.", "main": "dist/plugin.cjs.js", "module": "dist/esm/index.js",