forked from AntonioCuevaUrraco/nativescript-mixpanel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from nstudio/develop
3.0.0
- Loading branch information
Showing
21 changed files
with
2,627 additions
and
2,881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
### Make sure to check the demo app(s) for sample usage | ||
### Make sure to check the demo app(s) for sample usage | ||
|
||
### Make sure to check the existing issues in this repository | ||
### Make sure to check the existing issues in this repository | ||
|
||
### If the demo apps cannot help and there is no issue for your problem, tell us about it | ||
|
||
Please, ensure your title is less than 63 characters long and starts with a capital | ||
letter. | ||
|
||
### Which platform(s) does your issue occur on? | ||
- iOS/Android/Both | ||
- iOS/Android versions | ||
|
||
- iOS/Android/Both | ||
- iOS/Android versions | ||
- emulator or device. What type of device? | ||
|
||
### Please, provide the following version numbers that your issue occurs with: | ||
|
||
- CLI: (run `tns --version` to fetch it) | ||
- CLI: (run `ns --version` to fetch it) | ||
- Cross-platform modules: (check the 'version' attribute in the | ||
`node_modules/tns-core-modules/package.json` file in your project) | ||
- Runtime(s): (look for the `"tns-android"` and `"tns-ios"` properties in the `package.json` file of your project) | ||
`node_modules/@nativescript/core/package.json` file in your project) | ||
- Runtime(s): (look for the `"@nativescript/android"` and `"@nativescript/ios"` properties in the `package.json` file of your project) | ||
- Plugin(s): (look for the version numbers in the `package.json` file of your | ||
project and paste your dependencies and devDependencies here) | ||
project and paste your dependencies and devDependencies here) | ||
|
||
### Please, tell us how to recreate the issue in as much detail as possible. | ||
|
||
### Please, tell us how to recreate the issue in as much detail as possible. | ||
Describe the steps to reproduce it. | ||
|
||
### Is there any code involved? | ||
- provide a code example to recreate the problem | ||
- (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible. | ||
### Is there any code involved? | ||
|
||
- provide a code example to recreate the problem | ||
- (EVEN BETTER) provide a .zip with application or refer to a repository with application where the problem is reproducible. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# IDE | ||
.vscode | ||
.idea | ||
|
||
# Files | ||
.DS_Store | ||
*.esm.json | ||
*.js | ||
*.js.map | ||
*.log | ||
src/*.d.ts | ||
!src/index.d.ts | ||
!src/references.d.ts | ||
!src/scripts/*.js | ||
!seed-tests/*.js | ||
seed-tests/seed-copy | ||
seed-tests/seed-copy-new-git-repo/**/*.* | ||
|
||
# Folders | ||
node_modules | ||
|
||
# Demo | ||
!demo/karma.conf.js | ||
!demo/app/tests/*.js | ||
demo/*.d.ts | ||
!demo/references.d.ts | ||
demo/lib | ||
demo/platforms | ||
node_modules | ||
publish/src | ||
publish/package | ||
demo/report/report.html | ||
demo/report/stats.json | ||
|
||
# Lib | ||
publish/src | ||
publish/package | ||
src/*.d.ts | ||
!src/index.d.ts | ||
!src/references.d.ts | ||
!src/scripts/*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# NativeScript Mixpanel | ||
|
||
[](https://github.com/nstudio/nativescript-mixpanel/actions?workflow=Build+CI) | ||
[](https://nativescript.org/) | ||
[](https://nativescript.org/) | ||
[](https://www.npmjs.com/package/@nstudio/nativescript-mixpanel) | ||
[](https://www.npmjs.com/package/@nstudio/nativescript-mixpanel) | ||
|
||
|
@@ -11,7 +11,11 @@ | |
|
||
From your command prompt/terminal go to your application's root folder and execute: | ||
|
||
`tns plugin add @nstudio/nativescript-mixpanel` | ||
`ns plugin add @nstudio/nativescript-mixpanel` | ||
|
||
### NativeScript 6.5 | ||
|
||
`tns plugin add @nstudio/[email protected]` | ||
|
||
# Usage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import * as app from "tns-core-modules/application"; | ||
import { Application } from "@nativescript/core"; | ||
|
||
app.run({ moduleName: "app-root" }); | ||
Application.run({ moduleName: "app-root" }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import * as observable from "tns-core-modules/data/observable"; | ||
import * as pages from "tns-core-modules/ui/page"; | ||
import { EventData, Page } from "@nativescript/core"; | ||
import { MainModel } from "./main-view-model"; | ||
|
||
// Event handler for Page 'loaded' event attached in main-page.xml | ||
export function pageLoaded(args: observable.EventData): void { | ||
export function pageLoaded(args: EventData): void { | ||
// Get the event sender | ||
const page = args.object as pages.Page; | ||
const page = args.object as Page; | ||
page.bindingContext = new MainModel(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { NativeScriptConfig } from "@nativescript/core"; | ||
|
||
const config: NativeScriptConfig = { | ||
id: "org.nativescript.demo", | ||
appResourcesPath: "app/App_Resources", | ||
android: { | ||
v8Flags: "--expose_gc", | ||
markingMode: "none", | ||
}, | ||
appPath: "app", | ||
}; | ||
|
||
// tslint:disable-next-line: no-default-export | ||
export default config; |
Oops, something went wrong.