Skip to content

Commit

Permalink
- Intégration of GitHub Package
Browse files Browse the repository at this point in the history
  • Loading branch information
Armel committed May 20, 2021
1 parent 56390cb commit 1de3475
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("local.properties")))
//def githubProperties = new Properties()
//githubProperties.load(new FileInputStream(rootProject.file("local.properties")))

buildscript {
ext.kotlin_version = '1.3.50'
Expand Down Expand Up @@ -29,8 +29,8 @@ allprojects {
name = "android-sdk"
url = uri("https://maven.pkg.github.com/kkiapay/android-sdk")
credentials {
username = System.getenv('GITHUB_USER') ?: project.properties['GITHUB_USER']
password = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') ?: project.properties['GITHUB_PERSONAL_ACCESS_TOKEN']
username = System.getenv('GITHUB_USER') //?: project.properties['GITHUB_USER']
password = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') //?: project.properties['GITHUB_PERSONAL_ACCESS_TOKEN']
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions deploy.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
//apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'

def githubProperties = new Properties()
githubProperties.load(new FileInputStream(rootProject.file("local.properties")))
//def githubProperties = new Properties()
//githubProperties.load(new FileInputStream(rootProject.file("local.properties")))

publishing {
repositories {
maven {
name = "GithubPackages"
url = uri("https://maven.pkg.github.com/kkiapay/android-sdk")
credentials {
username = System.getenv('GITHUB_USER') ?: githubProperties['GITHUB_USER']
password = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') ?: githubProperties['GITHUB_PERSONAL_ACCESS_TOKEN']
username = System.getenv('GITHUB_USER') //?: githubProperties['GITHUB_USER']
password = System.getenv('GITHUB_PERSONAL_ACCESS_TOKEN') //?: githubProperties['GITHUB_PERSONAL_ACCESS_TOKEN']
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.2.15
VERSION_CODE=42
VERSION_NAME=1.2.16
VERSION_CODE=43
org.gradle.jvmargs=-Xmx1536m
android.useAndroidX=true
android.enableJetifier=true

0 comments on commit 1de3475

Please sign in to comment.