Skip to content

Commit 8ec873c

Browse files
Leandro SouzaLeandro Souza
authored andcommitted
Added Analytics for Android
1 parent 0354816 commit 8ec873c

File tree

106 files changed

+11152
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+11152
-6
lines changed

.github/issue_template.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
### Make sure to check the demo app(s) for sample usage
2+
3+
### Make sure to check the existing issues in this repository
4+
5+
### If the demo apps cannot help and there is no issue for your problem, tell us about it
6+
Please, ensure your title is less than 63 characters long and starts with a capital
7+
letter.
8+
9+
### Which platform(s) does your issue occur on?
10+
- iOS/Android/Both
11+
- iOS/Android versions
12+
- emulator or device. What type of device?
13+
14+
### Please, provide the following version numbers that your issue occurs with:
15+
16+
- CLI: (run `tns --version` to fetch it)
17+
- Cross-platform modules: (check the 'version' attribute in the
18+
`node_modules/tns-core-modules/package.json` file in your project)
19+
- Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project)
20+
- Plugin(s): (look for the version numbers in the `package.json` file of your
21+
project and paste your dependencies and devDependencies here)
22+
23+
### Please, tell us how to recreate the issue in as much detail as possible.
24+
Describe the steps to reproduce it.
25+
26+
### Is there any code involved?
27+
- provide a code example to recreate the problem
28+
- (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible.

.github/pull_request_template.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--
2+
We, the rest of the NativeScript community, thank you for your
3+
contribution!
4+
To help the rest of the community review your change, please follow the instructions in the template.
5+
-->
6+
7+
<!-- PULL REQUEST TEMPLATE -->
8+
<!-- (Update "[ ]" to "[x]" to check a box) -->
9+
10+
## PR Checklist
11+
12+
- [ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
13+
- [ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
14+
- [ ] All existing tests are passing
15+
- [ ] Tests for the changes are included
16+
17+
## What is the current behavior?
18+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
19+
20+
## What is the new behavior?
21+
<!-- Describe the changes. -->
22+
23+
Fixes/Implements/Closes #[Issue Number].
24+
25+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
26+
27+
<!--
28+
BREAKING CHANGES:
29+
30+
31+
[Describe the impact of the changes here.]
32+
33+
Migration steps:
34+
[Provide a migration path for existing applications.]
35+
-->
36+

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.vscode
2+
.idea
3+
.DS_Store
4+
*.js
5+
*.js.map
6+
*.log
7+
src/*.d.ts
8+
!src/index.d.ts
9+
!src/references.d.ts
10+
!src/scripts/*.js
11+
!seed-tests/*.js
12+
seed-tests/seed-copy/**/*.*
13+
seed-tests/seed-copy-new-git-repo/**/*.*
14+
!demo/karma.conf.js
15+
!demo/app/tests/*.js
16+
demo/*.d.ts
17+
!demo/references.d.ts
18+
demo/lib
19+
demo/platforms
20+
node_modules
21+
publish/src
22+
publish/package
23+
demo/report/report.html
24+
demo/report/stats.json

.travis.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
matrix:
2+
include:
3+
- stage: "Lint"
4+
language: node_js
5+
os: linux
6+
node_js: "6"
7+
script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint
8+
- stage: "WebPack, Build and Test"
9+
os: osx
10+
env:
11+
- WebPack="iOS"
12+
osx_image: xcode9.2
13+
language: node_js
14+
node_js: "6"
15+
jdk: oraclejdk8
16+
script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify
17+
- language: android
18+
os: linux
19+
env:
20+
- WebPack="Android"
21+
jdk: oraclejdk8
22+
before_install: nvm install 6.10.3
23+
script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot
24+
- language: android
25+
env:
26+
- BuildAndroid="26"
27+
os: linux
28+
jdk: oraclejdk8
29+
before_install: nvm install stable
30+
script:
31+
- cd src && npm i && npm run tsc && cd ../demo && tns build android
32+
- os: osx
33+
env:
34+
- BuildiOS="11"
35+
- Xcode="9.2"
36+
osx_image: xcode9.2
37+
language: node_js
38+
node_js: "6"
39+
jdk: oraclejdk8
40+
script:
41+
- cd src && npm i && npm run tsc && cd ../demo && tns build ios
42+
- os: linux
43+
language: android
44+
dist: precise
45+
sudo: required
46+
jdk: oraclejdk8
47+
before_script:
48+
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
49+
- emulator -avd test -no-audio -no-window &
50+
- android-wait-for-emulator
51+
before_install:
52+
- nvm install 6
53+
script: cd src && npm run test.android
54+
- os: osx
55+
language: node_js
56+
node_js: "6"
57+
jdk: oraclejdk8
58+
osx_image: xcode9.2
59+
script: cd src && npm run test.ios
60+
61+
android:
62+
components:
63+
- tools
64+
- platform-tools
65+
- build-tools-26.0.1
66+
- android-26
67+
- android-23
68+
- extra-android-m2repository
69+
- sys-img-armeabi-v7a-android-21
70+
71+
install:
72+
- echo no | npm install -g nativescript
73+
- tns usage-reporting disable
74+
- tns error-reporting disable

LICENSE

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Apache License
1+
Apache License
22
Version 2.0, January 2004
33
http://www.apache.org/licenses/
44

@@ -178,15 +178,15 @@
178178
APPENDIX: How to apply the Apache License to your work.
179179

180180
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
181+
boilerplate notice, with the fields enclosed by brackets "{}"
182182
replaced with your own identifying information. (Don't include
183183
the brackets!) The text should be enclosed in the appropriate
184184
comment syntax for the file format. We also recommend that a
185185
file or class name and description of purpose be included on the
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright [yyyy] [name of copyright owner]
189+
Copyright (c) 2015-2018 Telerik AD
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
@@ -198,4 +198,4 @@
198198
distributed under the License is distributed on an "AS IS" BASIS,
199199
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200200
See the License for the specific language governing permissions and
201-
limitations under the License.
201+
limitations under the License.

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
1-
# nativescript-microsoft-appcenter
2-
Microsoft App Center plugin for NativeScript
1+
# App Center plugin for NativeScript
2+
3+
## Installation
4+
5+
```javascript
6+
tns plugin add nativescript-app-center
7+
```
8+
9+
## Analytics Features
10+
11+
| Feature | Android | iOS |
12+
| --- | --- | --- |
13+
| **Overview:** Active users, daily sessions per user, session duration, top devices, countries, languages and active users per version. | YES | NOT YET |
14+
| **Events:** Event name, Count, Trend, Users, User Change and Per User. | YES | NOT YET |
15+
| **Log flow** | YES | NOT YET |
16+
17+
## Diagnostics Features
18+
19+
| Feature | Android | iOS |
20+
| --- | --- | --- |
21+
| Diagnostics | NOT YET | NOT YET |
22+
23+
## Push Features
24+
25+
| Feature | Android | iOS |
26+
| --- | --- | --- |
27+
| Notifications | NOT YET | NOT YET |
28+
| Audiences | NOT YET | NOT YET |
29+
30+
## License
31+
32+
Apache License Version 2.0, January 2004
33+
34+
Developed by **Leandro Souza** and **Nuno Barreto**
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Add your native dependencies here:
2+
3+
// Uncomment to add recyclerview-v7 dependency
4+
//dependencies {
5+
// compile 'com.android.support:recyclerview-v7:+'
6+
//}
7+
8+
android {
9+
defaultConfig {
10+
generatedDensities = []
11+
applicationId = "org.nativescript.demo"
12+
}
13+
aaptOptions {
14+
additionalParameters "--no-version-vectors"
15+
}
16+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="__PACKAGE__"
4+
android:versionCode="1"
5+
android:versionName="1.0">
6+
7+
<supports-screens
8+
android:smallScreens="true"
9+
android:normalScreens="true"
10+
android:largeScreens="true"
11+
android:xlargeScreens="true"/>
12+
13+
<uses-sdk
14+
android:minSdkVersion="17"
15+
android:targetSdkVersion="__APILEVEL__"/>
16+
17+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
18+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
19+
<uses-permission android:name="android.permission.INTERNET"/>
20+
21+
<application
22+
android:name="com.tns.NativeScriptApplication"
23+
android:allowBackup="true"
24+
android:icon="@drawable/icon"
25+
android:label="@string/app_name"
26+
android:theme="@style/AppTheme">
27+
28+
<activity
29+
android:name="com.tns.NativeScriptActivity"
30+
android:label="@string/title_activity_kimera"
31+
android:configChanges="keyboardHidden|orientation|screenSize"
32+
android:theme="@style/LaunchScreenTheme">
33+
34+
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
35+
36+
<intent-filter>
37+
<action android:name="android.intent.action.MAIN" />
38+
<category android:name="android.intent.category.LAUNCHER" />
39+
</intent-filter>
40+
</activity>
41+
<activity android:name="com.tns.ErrorReportActivity"/>
42+
</application>
43+
</manifest>
3.42 KB
Loading
10.7 KB
Loading

0 commit comments

Comments
 (0)