From 7898a51252dc24335e6e1acd618de907c9cbc3be Mon Sep 17 00:00:00 2001 From: Thomas Andres Gomez Date: Fri, 7 May 2021 22:22:24 +0200 Subject: [PATCH] Change app signature to the previous one. --- app/build.gradle | 33 +++++++++++++++++-- .../com/pixelized/biblib/utils/Constant.kt | 10 ------ 2 files changed, 31 insertions(+), 12 deletions(-) delete mode 100644 app/src/main/java/com/pixelized/biblib/utils/Constant.kt diff --git a/app/build.gradle b/app/build.gradle index d105eac..463bda3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -13,7 +13,7 @@ android { minSdk 23 targetSdk 30 versionCode 1 - versionName "1.0" + versionName "0.1.2" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { @@ -21,8 +21,29 @@ android { } } - buildTypes { + signingConfigs { + debug { + storeFile file(project.properties["PIXELIZED_DEBUG_STORE_FILE"]) + storePassword project.properties["PIXELIZED_DEBUG_STORE_PASSWORD"] + keyAlias project.properties["PIXELIZED_DEBUG_KEY_ALIAS"] + keyPassword project.properties["PIXELIZED_DEBUG_KEY_PASSWORD"] + } release { + storeFile file(project.properties["PIXELIZED_RELEASE_STORE_FILE"]) + storePassword project.properties["PIXELIZED_RELEASE_STORE_PASSWORD"] + keyAlias project.properties["PIXELIZED_RELEASE_KEY_ALIAS"] + keyPassword project.properties["PIXELIZED_RELEASE_KEY_PASSWORD"] + } + } + + buildTypes { + debug { + signingConfig signingConfigs.release + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + release { + signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } @@ -73,6 +94,14 @@ dependencies { // ConstraintLayout implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha06" + // Google sign in. + implementation 'com.google.android.gms:play-services-auth:19.0.0' + + // RetroFit & Gson for webservice call + implementation 'com.squareup.retrofit2:retrofit:2.9.0' + implementation 'com.squareup.retrofit2:converter-gson:2.9.0' + implementation 'com.google.code.gson:gson:2.8.6' + // Test testImplementation 'junit:junit:4.13.2' androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.0.0-beta06" diff --git a/app/src/main/java/com/pixelized/biblib/utils/Constant.kt b/app/src/main/java/com/pixelized/biblib/utils/Constant.kt deleted file mode 100644 index 1817690..0000000 --- a/app/src/main/java/com/pixelized/biblib/utils/Constant.kt +++ /dev/null @@ -1,10 +0,0 @@ -package com.pixelized.biblib.utils - -object Constant { - const val BASE_URL = "https://bib.bibulle.fr" - - const val THUMBNAIL_URL = "$BASE_URL/api/book/thumbnail" - const val COVER_URL = "$BASE_URL/api/book/cover" - - const val REGISTER_URL = "$BASE_URL/signup" -} \ No newline at end of file