Files
super-app/app/build.gradle

226 lines
7.3 KiB
Groovy
Raw Normal View History

2019-10-31 15:23:40 +05:30
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'maven'
apply plugin: 'com.google.firebase.crashlytics'
def BASE_URL = baseUrl()
def RAZORPAY_KEY = razorpayKey()
def VERSION_NAME = "1.0"
2020-03-16 13:15:38 +05:30
android {
2019-10-31 15:23:40 +05:30
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
2019-12-09 15:44:05 +05:30
applicationId "com.navi"
2019-10-31 15:23:40 +05:30
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName VERSION_NAME
2019-11-15 14:46:08 +05:30
multiDexEnabled true
2019-10-31 15:23:40 +05:30
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release {
if (project.hasProperty('RELEASE_STORE_PASSWORD') && project.hasProperty('RELEASE_KEY_PASSWORD') && project.hasProperty('RELEASE_KEY_ALIAS')) {
storeFile file("navi-release-key.jks")
storePassword "$RELEASE_STORE_PASSWORD"
keyPassword "$RELEASE_KEY_PASSWORD"
keyAlias "$RELEASE_KEY_ALIAS"
}
}
}
2019-10-31 15:23:40 +05:30
buildTypes {
2019-11-15 14:46:08 +05:30
debug {
versionNameSuffix "-debug"
}
2019-10-31 15:23:40 +05:30
release {
2020-03-16 13:15:38 +05:30
// minifyEnabled true
// shrinkResources true
2019-11-15 14:46:08 +05:30
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
2019-10-31 15:23:40 +05:30
}
}
dataBinding {
enabled true
}
flavorDimensions "app"
productFlavors {
qa {
dimension "app"
2019-12-09 17:23:21 +05:30
applicationId "com.navi.dev"
}
dev {
2019-12-09 15:44:05 +05:30
applicationId "com.navi.dev"
dimension "app"
}
prod {
dimension "app"
}
}
packagingOptions {
exclude 'META-INF'
}
}
android.buildTypes.each { type ->
type.buildConfigField 'String', 'BASE_URL', BASE_URL
type.buildConfigField 'String', 'RAZORPAY_KEY', RAZORPAY_KEY
}
def flavor() {
if (project.hasProperty('FLAVOR'))
return formatString("$FLAVOR")
else
return "DEV"
}
def baseUrl() {
if (project.hasProperty('BASE_URL'))
return formatString("$BASE_URL")
else if (flavor() == "QA")
return formatString("https://qa-api.navi.com/")
else
return formatString("https://dev-api.navi.com/")
}
def razorpayKey() {
if (project.hasProperty('RAZORPAY_KEY'))
return formatString("$RAZORPAY_KEY")
else if (flavor() == "QA")
return formatString("rzp_test_2AzdRR7RBQYvd5")
else
return formatString("rzp_test_fJz4xuuEDwtpjP")
}
static def formatString(String value) {
return '"' + value + '"'
}
artifacts {
if (project.hasProperty('FLAVOR')) {
if ("$FLAVOR" == "PROD")
archives file('build/outputs/apk/prod/release/app-prod-release.apk')
else if ("$FLAVOR" == "QA")
archives file('build/outputs/apk/qa/release/app-qa-release.apk')
else
archives file('build/outputs/apk/dev/release/app-dev-release.apk')
}
2019-10-31 15:23:40 +05:30
}
2019-11-15 14:46:08 +05:30
ext {
version_retrofit = '2.6.2'
version_kotlin_coroutines = '1.3.2'
lottie_version = '3.2.2'
2019-11-15 14:46:08 +05:30
}
repositories {
mavenCentral()
google()
}
uploadArchives {
repositories {
mavenDeployer {
if (project.hasProperty('NEXUS_URL') && project.hasProperty('FLAVOR')) {
repository(url: "$NEXUS_URL") {
authentication(userName: "$NEXUS_USERNAME", password: "$NEXUS_PASSWORD")
}
pom.version = "$FLAVOR-$VERSION_NAME-SNAPSHOT"
pom.artifactId = "android-customer-app"
pom.groupId = "com.navi"
}
}
}
}
2019-10-31 15:23:40 +05:30
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'
2019-10-31 15:23:40 +05:30
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
2019-11-04 16:41:28 +05:30
implementation "com.squareup.retrofit2:retrofit:$version_retrofit"
2019-11-04 19:42:58 +05:30
implementation "com.squareup.retrofit2:converter-gson:$version_retrofit"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version_kotlin_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version_kotlin_coroutines"
implementation 'com.google.android.material:material:1.0.0'
2019-11-15 14:46:08 +05:30
implementation 'com.android.support:multidex:1.0.3'
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
implementation 'com.android.support:cardview-v7:29.0.2'
implementation 'com.android.support:design:29.0.2'
2019-11-12 12:13:21 +05:30
implementation 'com.jakewharton.timber:timber:4.7.1'
implementation 'android.arch.work:work-runtime-ktx:1.0.1'
implementation 'com.camerakit:camerakit:1.0.0-beta3.11'
implementation 'com.camerakit:jpegkit:0.1.0'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.60'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2'
implementation "com.google.android.gms:play-services-location:17.0.0"
implementation 'com.github.bumptech.glide:glide:4.10.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
implementation 'com.otaliastudios:cameraview:2.6.0'
2019-12-03 17:01:37 +05:30
implementation 'com.facebook.stetho:stetho:1.5.1'
2020-03-10 15:51:47 +05:30
implementation("com.facebook.stetho:stetho-okhttp3:1.5.1") {
exclude group: 'com.facebook.stetho'
}
2019-12-09 17:23:21 +05:30
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation "com.airbnb.android:lottie:$lottie_version"
// for firebase push notification
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation group: 'joda-time', name: 'joda-time', version: '2.10.5'
implementation 'org.joda:joda-money:1.0.1'
// for razorpay payment integration
implementation 'com.razorpay:checkout:1.5.13'
//Appsflyer sdk integration
implementation 'com.appsflyer:af-android-sdk:5.1.0'
implementation 'com.android.installreferrer:installreferrer:1.0'
// Add the Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-analytics:17.2.3'
//Digio: for adhaar verification
implementation project(":digio-kyc-1.0.0")
// implementation 'com.squareup.okhttp3:okhttp:4.2.1'
2020-03-20 11:11:03 +05:30
//Digio e-nach
implementation project(":digio-esign-v2.6")
// Add the Firebase SDK for Crashlytics.
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta02'
// AndroidJUnitRunner and JUnit Rules
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
// Espresso dependencies
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
testImplementation 'org.mockito:mockito-core:2.19.0'
androidTestImplementation 'android.arch.core:core-testing:1.1.1'
testImplementation 'android.arch.core:core-testing:1.0.0'
testImplementation 'org.mockito:mockito-inline:2.13.0'
implementation "com.airbnb.android:lottie:$lottie_version"
Feature/get loan (#197) * Shashidhara | Add get loan module [ch3193] * Feature/add bank details (#184) * 3171 | Sandhya | Add basic setup for bank details screen * 3171 | Sandhya | Display name of the user in consent * 3171 | Sandhya | Add validation * Feature/kyc screen (#185) * 3197 | Reyaz | Create Kyc Fragment * 3197 | Reyaz | Create From Tile item adpater * 3197 | Reyaz | Add recycler view for selfie and aadhaar * 3197 | Reyaz | Refactor code * 3197 | Reyaz | Add firebase Api response * 3197 | Reyaz | Refactor code * 3197 | Reyaz | Add Tabs and listeners * 3197 | Reyaz | Add address layout and removed recycler viw * 3197 | Reyaz | Enable and disable next button as Ui changes * 3197 | Reyaz | Add preview of image taken * 3197 | Reyaz | Add next button listener * Login ,OTP and Profile screen styling and validation (#187) * refactor login and otp fragments * add validations and styling for profile screen * add text change listener for dob field * display error messages in profile fragment * fix button changing position in otp layout * show and hide loader in work screen * refactor code * Reyaz | Fix switch issue (#186) * 3267 | Reyaz | Change GetLoanListener to Fragment Interaction Listener * Reyaz | Refactor code * Reyaz | Refactor code * Feature/loan details (#191) * Shashidhara | Add loan details screen with fetch quote [ch3193] * Shashidhara | Add loan parameters and amount details [ch3193] * Shashidhara | Update user input on progress change and vice versa [ch3193] * Shashidhara | Animate amount details card view toggle [ch3193] * Shashidhara | Refactor seekbar progress to slider value [ch3193] * Shashidhara | Refactor form slider view to hold init values [ch3193] * Shashidhara | Add loan agreement as part of get loan journey and integrate journey [ch3393]
2020-01-30 17:09:04 +05:30
// Pdf Viewer
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
2019-10-31 15:23:40 +05:30
}
2019-12-09 17:23:21 +05:30
apply plugin: 'com.google.gms.google-services'