From 73a3cbbefbe23e0990cd1c64f39540f6c6d2146f Mon Sep 17 00:00:00 2001 From: mofneko Date: Sun, 15 Jul 2018 15:04:58 +0900 Subject: [PATCH] Move JitPack.io --- README.md | 19 +++++++++++++++++-- build.gradle | 2 +- library/build.gradle | 14 +++----------- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index b4dae71..197aa20 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # EmulatorDetector ============================================= -[ ![Download](https://api.bintray.com/packages/nekolaboratory/EmulatorDetector/EmulatorDetector/images/download.svg) ](https://bintray.com/nekolaboratory/EmulatorDetector/EmulatorDetector/_latestVersion) +[![Release](https://jitpack.io/v/mofneko/EmulatorDetector.svg)](https://jitpack.io/#mofneko/EmulatorDetector) This module help you to emulator detection to your Android project suported Unity. @@ -16,8 +16,23 @@ This module help you to emulator detection to your Android project suported Unit # How to use ##### Java and Kotlin + +Users of your library will need add the jitpack.io repository: + +```gradle +allprojects { + repositories { + jcenter() + maven { url "https://jitpack.io" } + } +} +``` +and: + ```gradle -compile 'com.nekolaboratory:EmulatorDetector:1.0.0' +dependencies { + compile 'com.github.mofneko:EmulatorDetector:1.0.0' +} ``` ```java EmulatorDetector.isEmulator(this); diff --git a/build.gradle b/build.gradle index 1132559..27a385a 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.1.3' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - classpath 'com.novoda:bintray-release:0.8.1' + classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/library/build.gradle b/library/build.gradle index 7217c3f..66c9245 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,5 +1,7 @@ apply plugin: 'com.android.library' -apply plugin: 'com.novoda.bintray-release' +apply plugin: 'com.github.dcendents.android-maven' + +group='com.github.mofneko' android { compileSdkVersion 27 @@ -21,16 +23,6 @@ android { } -publish { - userOrg = 'nekolaboratory' - groupId = 'com.nekolaboratory' - artifactId = 'EmulatorDetector' - publishVersion = '1.0.0' - desc = 'Android Emulator Detector Unity Compatible.' - website = 'https://github.com/mofneko/EmulatorDetector' - repoName = 'EmulatorDetector' -} - dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])