This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4b69ed
commit 79117e3
Showing
140 changed files
with
1,264 additions
and
1,552 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build CI | ||
|
||
# Trigger the workflow on push | ||
on: [push] | ||
|
||
jobs: | ||
job1: | ||
name: Android Build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Base Setup | ||
run: npm run ci.base.setup | ||
|
||
- name: Lint | ||
run: npm run ci.tslint | ||
|
||
- name: Build Vanilla Android Demo App | ||
run: npm run ci.vanilla.android.build | ||
|
||
# - name: Install Android sdkmanager | ||
# run: | | ||
# wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip | ||
# sudo unzip -d $ANDROID_HOME android-sdk.zip > /dev/null | ||
# - name: Install required Android tools | ||
# run: | | ||
# echo "y" | sudo $ANDROID_HOME/tools/bin/sdkmanager "ndk;${ANDROID_NDK}" > /dev/null | ||
# - name: Android Test | ||
# run: | | ||
# echo no | android create avd --force -n test -b armeabi-v7a | ||
# emulator -avd test -no-audio -no-window & | ||
# android-wait-for-emulator | ||
# cd src && npm i && npm run tsc && cd ../demo && tns build android | ||
# tns test android --justlaunch | ||
|
||
job2: | ||
name: iOS Build | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Base Setup | ||
run: npm run ci.base.setup && npm run ci.pip.install | ||
|
||
- name: Build Vanilla iOS Demo App | ||
run: npm run ci.vanilla.ios.build |
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,4 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true | ||
"semi": true, | ||
"arrowParens": "avoid", | ||
"trailingComma": "none" | ||
} |
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 |
---|---|---|
|
@@ -10,27 +10,23 @@ | |
<a href="https://www.npmjs.com/package/@nstudio/nativescript-cardview"> | ||
<img src="https://img.shields.io/npm/dt/@nstudio/nativescript-cardview.svg?label=npm%20downloads" alt="npm"> | ||
</a> | ||
<a href="https://github.com/nstudio/nativescript-cardview/stargazers"> | ||
<img src="https://img.shields.io/github/stars/nstudio/nativescript-cardview.svg" alt="stars"> | ||
</a> | ||
<a href="https://travis-ci.org/nstudio/nativescript-cardview"> | ||
<img src="https://travis-ci.org/nstudio/nativescript-cardview.svg?branch=master" alt="build status"> | ||
</a> | ||
<br /> | ||
<a href="https://nstudio.io"> | ||
<img src="https://github.com/nstudio/media/blob/master/images/nstudio-banner.png?raw=true" alt="nStudio banner"> | ||
</a> | ||
<h5 align="center">Do you need assistance on your project or plugin? Contact the nStudio team anytime at <a href="mailto:[email protected]">[email protected]</a> to get up to speed with the best practices in mobile and web app development. | ||
</h5> | ||
</p> | ||
|
||
--- | ||
|
||
## Installation | ||
|
||
`tns plugin add @nstudio/nativescript-cardview` | ||
NativeScript 7+: | ||
|
||
```bash | ||
ns plugin add @nstudio/nativescript-cardview | ||
``` | ||
|
||
NativeScript prior to 7: | ||
|
||
Be sure to run a new build after adding plugins to avoid any issues. Here is a post with some details: [Plugin Not Working after adding to project.](https://bradmartin.net/2016/07/20/ahhh-this-nativescript-plugin-doesnt-work) | ||
```bash | ||
tns plugin add @nstudio/[email protected] | ||
``` | ||
|
||
--- | ||
|
||
|
@@ -77,7 +73,7 @@ _iOS note: Setting a background-color will help if you do not see the card on th | |
### NativeScript Angular | ||
|
||
```typescript | ||
import { registerElement } from 'nativescript-angular/element-registry'; | ||
import { registerElement } from '@nativescript/angular'; | ||
import { CardView } from '@nstudio/nativescript-cardview'; | ||
registerElement('CardView', () => CardView); | ||
``` | ||
|
@@ -227,7 +223,6 @@ shadowRadius = 1; | |
|
||
```bash | ||
git clone https://github.com/nstudio/nativescript-cardview.git | ||
cd nativescript-cardview/src && npm run setup | ||
|
||
npm run demo.ios | ||
|
||
|
@@ -239,13 +234,3 @@ npm run demo.android | |
## [Changelog](./CHANGELOG.md) | ||
|
||
## [Contributing](./CONTRIBUTING.md) | ||
|
||
#### Contributors | ||
|
||
| [<img alt="bradmartin" src="https://avatars3.githubusercontent.com/u/6006148?v=3&s=117" width="117">](https://github.com/bradmartin) | [<img alt="NathanWalker" src="https://avatars1.githubusercontent.com/u/457187?v=3&s=117" width="117">](https://github.com/NathanWalker) | [<img alt="manijak" src="https://avatars3.githubusercontent.com/u/3605066?v=3&s=117" width="117">](https://github.com/manijak) | [<img alt="NathanaelA" src="https://avatars0.githubusercontent.com/u/850871?v=3&s=117" width="117">](https://github.com/NathanaelA) | [<img alt="EddyVerbruggen" src="https://avatars2.githubusercontent.com/u/1426370?v=3&s=117" width="117">](https://github.com/EddyVerbruggen) | [<img alt="sis0k0" src="https://avatars1.githubusercontent.com/u/7893485?v=3&s=117" width="117">](https://github.com/sis0k0) | | ||
| :----------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------: | | ||
| [bradmartin](https://github.com/bradmartin) | [NathanWalker](https://github.com/NathanWalker) | [manijak](https://github.com/manijak) | [NathanaelA](https://github.com/NathanaelA) | [EddyVerbruggen](https://github.com/EddyVerbruggen) | [sis0k0](https://github.com/sis0k0) | | ||
|
||
| [<img alt="vladimirnani" src="https://avatars0.githubusercontent.com/u/3397077?v=3&s=117" width="117">](https://github.com/vladimirnani) | [<img alt="DickSmith" src="https://avatars0.githubusercontent.com/u/6675511?v=3&s=117" width="117">](https://github.com/DickSmith) | [<img alt="JoffTiquez" src="https://avatars0.githubusercontent.com/u/8638243?v=3&s=117" width="117">](https://github.com/jofftiquez) | | ||
| :--------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------: | | ||
| [vladimirnani](https://github.com/vladimirnani) | [DickSmith](https://github.com/DickSmith) | [Jofferson Tiquez](https://github.com/jofftiquez) | |
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,11 @@ | ||
import { NativeScriptConfig } from '@nativescript/core'; | ||
|
||
export default { | ||
id: 'org.nativescript.cardview.angular', | ||
appResourcesPath: 'App_Resources', | ||
android: { | ||
v8Flags: '--expose_gc', | ||
markingMode: 'none' | ||
}, | ||
appPath: 'src' | ||
} as NativeScriptConfig; |
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 |
---|---|---|
@@ -1,39 +1,34 @@ | ||
{ | ||
"nativescript": { | ||
"id": "org.nativescript.cardview.angular", | ||
"tns-android": { | ||
"version": "6.0.0" | ||
} | ||
}, | ||
"description": "NativeScript Application", | ||
"license": "SEE LICENSE IN <your-license-filename>", | ||
"repository": "<fill-your-repository-here>", | ||
"dependencies": { | ||
"@angular/animations": "~7.2.0", | ||
"@angular/common": "8.0.0", | ||
"@angular/compiler": "8.0.0", | ||
"@angular/core": "8.0.0", | ||
"@angular/forms": "8.0.0", | ||
"@angular/animations": "~10.1.0", | ||
"@angular/common": "10.1.0", | ||
"@angular/compiler": "10.1.0", | ||
"@angular/core": "10.1.0", | ||
"@angular/forms": "10.1.0", | ||
"@angular/http": "8.0.0-beta.10", | ||
"@angular/platform-browser": "8.0.0", | ||
"@angular/platform-browser-dynamic": "8.0.0", | ||
"@angular/router": "8.0.0", | ||
"nativescript-angular": "8.0.2", | ||
"@angular/platform-browser": "10.1.0", | ||
"@angular/platform-browser-dynamic": "10.1.0", | ||
"@angular/router": "10.1.0", | ||
"@nstudio/nativescript-cardview": "file:../src", | ||
"nativescript-theme-core": "~1.0.4", | ||
"reflect-metadata": "~0.1.12", | ||
"rxjs": "~6.3.0", | ||
"tns-core-modules": "6.0.1", | ||
"zone.js": "0.9.1" | ||
"zone.js": "0.9.1", | ||
"@nativescript/core": "~7.0.11", | ||
"@nativescript/angular": "~10.1.7" | ||
}, | ||
"devDependencies": { | ||
"@angular/compiler-cli": "~7.2.0", | ||
"@angular/compiler-cli": "~10.1.0", | ||
"@nativescript/schematics": "~0.5.0", | ||
"@ngtools/webpack": "~7.2.0", | ||
"awesome-typescript-loader": "~5.2.1", | ||
"nativescript-dev-webpack": "1.0.1", | ||
"typescript": "3.4.5" | ||
"typescript": "~3.9.7", | ||
"@nativescript/webpack": "~3.0.7" | ||
}, | ||
"gitHead": "f548ec926e75201ab1b7c4a3a7ceefe7a4db15af", | ||
"readme": "NativeScript Application" | ||
"readme": "NativeScript Application", | ||
"main": "main.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,18 +1,17 @@ | ||
import { NgModule } from "@angular/core"; | ||
import { NativeScriptRouterModule } from "nativescript-angular/router"; | ||
import { Routes } from "@angular/router"; | ||
|
||
import { ItemsComponent } from "./item/items.component"; | ||
import { ItemDetailComponent } from "./item/item-detail.component"; | ||
import { NgModule } from '@angular/core'; | ||
import { Routes } from '@angular/router'; | ||
import { NativeScriptRouterModule } from '@nativescript/angular'; | ||
import { ItemDetailComponent } from './item/item-detail.component'; | ||
import { ItemsComponent } from './item/items.component'; | ||
|
||
const routes: Routes = [ | ||
{ path: "", redirectTo: "/items", pathMatch: "full" }, | ||
{ path: "items", component: ItemsComponent }, | ||
{ path: "item/:id", component: ItemDetailComponent } | ||
{ path: '', redirectTo: '/items', pathMatch: 'full' }, | ||
{ path: 'items', component: ItemsComponent }, | ||
{ path: 'item/:id', component: ItemDetailComponent } | ||
]; | ||
|
||
@NgModule({ | ||
imports: [NativeScriptRouterModule.forRoot(routes)], | ||
exports: [NativeScriptRouterModule] | ||
}) | ||
export class AppRoutingModule { } | ||
export class AppRoutingModule {} |
Oops, something went wrong.