From 48e313ce3ca1bba1c456db685a11664fa2a7c718 Mon Sep 17 00:00:00 2001 From: Daniel Freiling Date: Fri, 24 Jun 2016 17:44:03 +0200 Subject: [PATCH] Renamed package into @nota scope --- demo/app/main-view-model.ts | 2 +- demo/package.json | 52 ++++++++++++++++---------------- package.json | 8 ++--- platforms/android/include.gradle | 13 -------- 4 files changed, 31 insertions(+), 44 deletions(-) diff --git a/demo/app/main-view-model.ts b/demo/app/main-view-model.ts index 4553ee0..f519aa3 100644 --- a/demo/app/main-view-model.ts +++ b/demo/app/main-view-model.ts @@ -1,5 +1,5 @@ import {Observable} from 'data/observable'; -import {AudioPlayer, Playlist, MediaTrack, PlaybackEventListener, PlaybackEvent} from 'nativescript-audioplayer'; +import {AudioPlayer, Playlist, MediaTrack, PlaybackEventListener, PlaybackEvent} from '@nota/nativescript-audioplayer'; export class HelloWorldModel extends Observable implements PlaybackEventListener { public message: string; diff --git a/demo/package.json b/demo/package.json index d19e4f1..caf0deb 100644 --- a/demo/package.json +++ b/demo/package.json @@ -1,27 +1,27 @@ { - "name": "nativescript-audioplayer-demo", - "version": "0.0.3", - "nativescript": { - "id": "org.nativescript.demo", - "tns-android": { - "version": "2.0.1" - }, - "tns-ios": { - "version": "2.0.0" - } - }, - "dependencies": { - "nativescript-audioplayer": "file:..", - "tns-core-modules": "~2.0.1" - }, - "devDependencies": { - "babel-traverse": "6.9.0", - "babel-types": "6.9.1", - "babylon": "6.8.0", - "filewalker": "0.1.2", - "lazy": "1.0.11", - "nativescript-dev-typescript": "^0.3.2", - "tns-platform-declarations": "^2.0.0", - "typescript": "^1.8.10" - } -} + "name": "nativescript-audioplayer-demo", + "version": "0.0.3", + "nativescript": { + "id": "org.nativescript.demo", + "tns-ios": { + "version": "2.0.1" + }, + "tns-android": { + "version": "2.0.0" + } + }, + "dependencies": { + "@nota/nativescript-audioplayer": "file:..", + "tns-core-modules": "~2.0.1" + }, + "devDependencies": { + "babel-traverse": "6.9.0", + "babel-types": "6.9.1", + "babylon": "6.8.0", + "filewalker": "0.1.2", + "lazy": "1.0.11", + "nativescript-dev-typescript": "^0.3.2", + "tns-platform-declarations": "^2.0.0", + "typescript": "^1.8.10" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 6689787..bc50276 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "nativescript-audioplayer", - "version": "0.0.7", - "description": "Fully featured AudioPlayer NativeScript plugin.", + "name": "@nota/nativescript-audioplayer", + "version": "0.0.8", + "description": "Fully featured AudioPlayer for NativeScript. Gapless playlist playback with playbackrate and platform-specific notification and remote controls during playback", "nativescript": { "platforms": { "android": "2.0.0", @@ -15,7 +15,7 @@ "demo.ios": "npm run prepdemo && cd demo && tns emulate ios", "demo.android": "npm run prepdemo && cd demo && tns run android", "prepdemo": "npm run build && npm run reload", - "reload": "cd demo && tns plugin remove nativescript-audioplayer && tns plugin add .. && tns install", + "reload": "cd demo && tns plugin remove @nota/nativescript-audioplayer && tns plugin add .. && tns install", "apk": "cd demo && tns build android --copy-to .", "gen.typings.ios": "cd demo && TNS_TYPESCRIPT_DECLARATIONS_PATH=\"$(pwd)/../gen-typings\" tns build ios && cd .. && cp gen-typings-i386/objc!LYTAudioPlayer.d.ts src/LYTAudioPlayer.gen.d.ts" }, diff --git a/platforms/android/include.gradle b/platforms/android/include.gradle index 435faff..bc96a07 100644 --- a/platforms/android/include.gradle +++ b/platforms/android/include.gradle @@ -1,16 +1,3 @@ -android { - productFlavors { - 'nativescript-audioplayer' { - dimension 'nativescript-audioplayer' - - // Setting below requires 'android.useDeprecatedNdk=true' in user of plugin's platforms/android/gradle.properties file. - ndk { - abiFilters 'armeabi-v7a'//, 'mips' - } - } - } -} - dependencies { compile 'dk.nota.lyt:libvlc-service:0.2.3' // compile 'com.android.support:appcompat-v7:23+'