UnifiedPush / android-connector

Mirror of https://codeberg.org/UnifiedPush/android-connector/
Apache License 2.0
35 stars 8 forks source link

refactored for gradle build, jitpack and android studio #5

Closed sparchatus closed 3 years ago

sparchatus commented 3 years ago

Jitpack strongly encourages using the gradle wrapper system. You should now be able to use the gradle dependency as follows:

Add the jitpack repo to the project level build.gradle:

allprojects {
    repositories {
        // ...
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency to the app build.gradle. To for example use the version corresponding to this Pull Request:

dependencies {
    // ...
    implementation 'com.github.UnifiedPush:UP-lib:PR5-SNAPSHOT'
}
sparchatus commented 3 years ago

Specific changes that are required for jitpack compared to other gradle building https://github.com/UnifiedPush/UP-lib/pull/5/files#diff-34df173537a4b735a52c388af40cf79a1037dbcefa69255ea06911c4dc14b4cbR6 https://github.com/UnifiedPush/UP-lib/pull/5/files#diff-34df173537a4b735a52c388af40cf79a1037dbcefa69255ea06911c4dc14b4cbR45-R61