Commit 5345be00 authored by Konstantin Tskhovrebov's avatar Konstantin Tskhovrebov 🤖

Add prod sign params.

parent aa2350e4
# Build files and folders
.gradle/
build/
keys/
# Properties
local.properties
......
......@@ -25,6 +25,11 @@ android {
buildConfigField "String", "WEB_AUTH_USER_AGENT", '"gitfox_user_agent"'
buildConfigField "String", "ORIGIN_GITLAB_ENDPOINT", '"https://gitlab.com/"'
//todo: put prod value for release
buildConfigField "String", "OAUTH_APP_ID", '"808b7f51c6634294afd879edd75d5eaf55f1a75e7fe5bd91ca8b7140a5af639d"'
buildConfigField "String", "OAUTH_SECRET", '"a9dd39c8d2e781b65814007ca0f8b555d34f79b4d30c9356c38bb7ad9909c6f3"'
buildConfigField "String", "OAUTH_CALLBACK", '"app://gitlab.client/"'
vectorDrawables.useSupportLibrary true
javaCompileOptions {
......@@ -34,6 +39,16 @@ android {
}
}
signingConfigs {
//todo put key params for release
prod {
storeFile file("./keys/play/key.jks")
storePassword "pass"
keyAlias "alias"
keyPassword "pass"
}
}
buildTypes {
debugPG {
initWith debug
......@@ -48,6 +63,7 @@ android {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.prod
}
}
}
......
......@@ -2,6 +2,7 @@ package ru.terrakok.gitlabclient.toothpick.module
import com.google.gson.Gson
import okhttp3.OkHttpClient
import ru.terrakok.gitlabclient.BuildConfig
import ru.terrakok.gitlabclient.model.data.server.GitlabApi
import ru.terrakok.gitlabclient.model.data.server.MarkDownUrlResolver
import ru.terrakok.gitlabclient.model.interactor.auth.AuthInteractor
......@@ -44,13 +45,8 @@ class ServerModule(serverUrl: String) : Module() {
bind(MarkDownUrlResolver::class.java)
//Auth
//todo: before release change and move to private config
bind(OAuthParams::class.java).toInstance(
OAuthParams(
"808b7f51c6634294afd879edd75d5eaf55f1a75e7fe5bd91ca8b7140a5af639d",
"a9dd39c8d2e781b65814007ca0f8b555d34f79b4d30c9356c38bb7ad9909c6f3",
"app://gitlab.client/"
)
OAuthParams(BuildConfig.OAUTH_APP_ID, BuildConfig.OAUTH_SECRET, BuildConfig.OAUTH_CALLBACK)
)
bind(AuthRepository::class.java).singletonInScope()
bind(AuthInteractor::class.java).singletonInScope()
......
......@@ -5,7 +5,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0-alpha08'
classpath 'com.android.tools.build:gradle:3.3.0-alpha10'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
......
#Sun Sep 02 22:20:37 MSK 2018
#Wed Sep 12 23:31:42 MSK 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment