Skip to content

Commit

Permalink
Move JitPack.io
Browse files Browse the repository at this point in the history
  • Loading branch information
mofneko committed Jul 15, 2018
1 parent eb40c9a commit 73a3cbb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
19 changes: 17 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 3 additions & 11 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'])

Expand Down

0 comments on commit 73a3cbb

Please sign in to comment.