Skip to content

Commit

Permalink
Merge pull request #1 from capacitor-community/appcenter-refactor
Browse files Browse the repository at this point in the history
appcenter-shared refactor
  • Loading branch information
johnborges authored Mar 2, 2021
2 parents d92ef1a + aa6c04a commit 7febb78
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 138 deletions.
24 changes: 11 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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
```

Expand Down
Empty file added appcenter-shared/CHANGELOG.md
Empty file.
2 changes: 1 addition & 1 deletion appcenter-shared/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h3 align="center">App Center Shared</h3>
<p align="center"><strong><code>@capacitor-community/appcenter-shared</code></strong></p>
<p align="center">
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.
</p>

<p align="center">
Expand Down
4 changes: 0 additions & 4 deletions appcenter-shared/ios/Plugin.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -40,7 +39,6 @@
50ADFFA72020EE4F00D50D53 /* AppCenterPlugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppCenterPlugin.m; sourceTree = "<group>"; };
50E1A94720377CB70090CE1A /* AppCenterPlugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppCenterPlugin.swift; sourceTree = "<group>"; };
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 = "<group>"; };
6C0B8C1D25DC7ED20021E4AF /* AppCenterShared.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppCenterShared.swift; sourceTree = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
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 = "<group>"; };
Expand Down Expand Up @@ -96,7 +94,6 @@
50ADFF8B201F53D600D50D53 /* AppCenterPlugin.h */,
50ADFFA72020EE4F00D50D53 /* AppCenterPlugin.m */,
50ADFF8C201F53D600D50D53 /* Info.plist */,
6C0B8C1D25DC7ED20021E4AF /* AppCenterShared.swift */,
);
path = Plugin;
sourceTree = "<group>";
Expand Down Expand Up @@ -308,7 +305,6 @@
files = (
50E1A94820377CB70090CE1A /* AppCenterPlugin.swift in Sources */,
50ADFFA82020EE4F00D50D53 /* AppCenterPlugin.m in Sources */,
6C0B8C1E25DC7ED20021E4AF /* AppCenterShared.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
55 changes: 0 additions & 55 deletions appcenter-shared/ios/Plugin/AppCenterShared.swift

This file was deleted.

49 changes: 24 additions & 25 deletions appcenter-shared/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions appcenter-shared/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Loading

0 comments on commit 7febb78

Please sign in to comment.