2019-10-31 15:23:40 +05:30
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
|
|
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
|
|
|
|
|
2019-11-04 14:31:25 +05:30
|
|
|
apply plugin: 'kotlin-kapt'
|
|
|
|
|
|
2020-03-31 18:19:44 +05:30
|
|
|
apply plugin: 'maven'
|
|
|
|
|
|
2020-03-30 12:54:59 +05:30
|
|
|
apply plugin: 'com.google.firebase.crashlytics'
|
2019-11-14 10:22:14 +05:30
|
|
|
|
2020-03-31 18:19:44 +05:30
|
|
|
def BASE_URL = baseUrl()
|
|
|
|
|
def RAZORPAY_KEY = razorpayKey()
|
|
|
|
|
def VERSION_NAME = "1.0"
|
2020-03-16 13:15:38 +05:30
|
|
|
|
2020-03-31 18:19:44 +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
|
2020-03-31 18:19:44 +05:30
|
|
|
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"
|
|
|
|
|
}
|
2020-03-31 18:19:44 +05:30
|
|
|
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'
|
2020-03-31 18:19:44 +05:30
|
|
|
signingConfig signingConfigs.release
|
2019-10-31 15:23:40 +05:30
|
|
|
}
|
|
|
|
|
}
|
2019-11-04 14:31:25 +05:30
|
|
|
dataBinding {
|
|
|
|
|
enabled true
|
|
|
|
|
}
|
2019-12-03 12:07:59 +05:30
|
|
|
flavorDimensions "app"
|
|
|
|
|
productFlavors {
|
|
|
|
|
qa {
|
|
|
|
|
dimension "app"
|
2019-12-09 17:23:21 +05:30
|
|
|
applicationId "com.navi.dev"
|
2019-12-03 12:07:59 +05:30
|
|
|
}
|
|
|
|
|
dev {
|
2019-12-09 15:44:05 +05:30
|
|
|
applicationId "com.navi.dev"
|
2019-12-03 12:07:59 +05:30
|
|
|
dimension "app"
|
|
|
|
|
}
|
|
|
|
|
prod {
|
|
|
|
|
dimension "app"
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-03-31 18:19:44 +05:30
|
|
|
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")
|
2020-03-31 21:59:51 +05:30
|
|
|
return formatString("https://qa-api.navi.com/")
|
2020-03-31 18:19:44 +05:30
|
|
|
else
|
2020-03-31 21:59:51 +05:30
|
|
|
return formatString("https://dev-api.navi.com/")
|
2020-03-31 18:19:44 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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'
|
2019-11-29 17:39:25 +05:30
|
|
|
lottie_version = '3.2.2'
|
2019-11-15 14:46:08 +05:30
|
|
|
}
|
|
|
|
|
|
2019-11-22 12:15:08 +05:30
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
google()
|
|
|
|
|
}
|
|
|
|
|
|
2020-03-31 18:19:44 +05:30
|
|
|
uploadArchives {
|
|
|
|
|
repositories {
|
|
|
|
|
mavenDeployer {
|
|
|
|
|
if (project.hasProperty('NEXUS_URL') && project.hasProperty('FLAVOR')) {
|
|
|
|
|
repository(url: "$NEXUS_URL") {
|
|
|
|
|
authentication(userName: "$NEXUS_USERNAME", password: "$NEXUS_PASSWORD")
|
|
|
|
|
}
|
2020-04-02 21:46:25 +05:30
|
|
|
pom.version = "$VERSION_NAME-SNAPSHOT"
|
|
|
|
|
pom.artifactId = "$FLAVOR"
|
|
|
|
|
pom.groupId = "com.navi.android"
|
2020-03-31 18:19:44 +05:30
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-31 15:23:40 +05:30
|
|
|
dependencies {
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
2019-11-04 14:31:25 +05:30
|
|
|
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"
|
2019-11-07 14:11:18 +05:30
|
|
|
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'
|
2019-11-04 14:31:25 +05:30
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0'
|
2019-11-07 14:11:18 +05:30
|
|
|
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'
|
2019-11-20 14:48:00 +05:30
|
|
|
implementation 'android.arch.work:work-runtime-ktx:1.0.1'
|
2019-11-19 16:01:09 +05:30
|
|
|
implementation 'com.camerakit:camerakit:1.0.0-beta3.11'
|
|
|
|
|
implementation 'com.camerakit:jpegkit:0.1.0'
|
2019-11-27 12:30:12 +05:30
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.60'
|
2019-11-20 14:48:00 +05:30
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.2'
|
2019-12-02 12:13:26 +05:30
|
|
|
implementation "com.google.android.gms:play-services-location:17.0.0"
|
2019-11-22 12:15:08 +05:30
|
|
|
implementation 'com.github.bumptech.glide:glide:4.10.0'
|
|
|
|
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
|
2020-01-08 13:53:26 +05:30
|
|
|
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'
|
2019-12-23 13:00:46 +05:30
|
|
|
implementation "com.airbnb.android:lottie:$lottie_version"
|
|
|
|
|
|
2020-01-03 13:19:39 +05:30
|
|
|
// for firebase push notification
|
|
|
|
|
implementation 'com.google.firebase:firebase-messaging:20.1.0'
|
2020-01-23 17:43:39 +05:30
|
|
|
|
2020-01-13 18:17:54 +05:30
|
|
|
implementation group: 'joda-time', name: 'joda-time', version: '2.10.5'
|
2020-03-20 12:52:53 +05:30
|
|
|
implementation 'org.joda:joda-money:1.0.1'
|
2020-01-03 13:19:39 +05:30
|
|
|
|
2020-01-30 11:29:56 +05:30
|
|
|
// for razorpay payment integration
|
|
|
|
|
implementation 'com.razorpay:checkout:1.5.13'
|
|
|
|
|
|
2020-01-23 17:43:39 +05:30
|
|
|
//Appsflyer sdk integration
|
|
|
|
|
implementation 'com.appsflyer:af-android-sdk:5.1.0'
|
|
|
|
|
implementation 'com.android.installreferrer:installreferrer:1.0'
|
|
|
|
|
|
2020-02-12 10:46:47 +05:30
|
|
|
// Add the Firebase SDK for Google Analytics
|
2020-03-30 12:54:59 +05:30
|
|
|
implementation 'com.google.firebase:firebase-analytics:17.2.3'
|
2020-02-12 10:46:47 +05:30
|
|
|
|
2020-02-13 12:59:35 +05:30
|
|
|
//Digio: for adhaar verification
|
|
|
|
|
implementation project(":digio-kyc-1.0.0")
|
2020-03-10 16:37:17 +05:30
|
|
|
// implementation 'com.squareup.okhttp3:okhttp:4.2.1'
|
2020-02-13 12:59:35 +05:30
|
|
|
|
2020-03-20 11:11:03 +05:30
|
|
|
//Digio e-nach
|
|
|
|
|
implementation project(":digio-esign-v2.6")
|
2020-02-13 12:59:35 +05:30
|
|
|
|
2020-03-30 12:54:59 +05:30
|
|
|
// Add the Firebase SDK for Crashlytics.
|
|
|
|
|
implementation 'com.google.firebase:firebase-crashlytics:17.0.0-beta02'
|
|
|
|
|
|
2019-12-23 13:00:46 +05:30
|
|
|
// AndroidJUnitRunner and JUnit Rules
|
|
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
|
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
2019-11-27 19:17:35 +05:30
|
|
|
|
|
|
|
|
testImplementation 'junit:junit:4.12'
|
|
|
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
2019-12-23 13:00:46 +05:30
|
|
|
|
|
|
|
|
// Espresso dependencies
|
2019-11-27 19:17:35 +05:30
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
2020-02-06 11:12:17 +05:30
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-intents:3.2.0'
|
2019-12-23 13:00:46 +05:30
|
|
|
|
2019-11-29 12:37:18 +05:30
|
|
|
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'
|
|
|
|
|
|
2019-11-29 17:39:25 +05:30
|
|
|
implementation "com.airbnb.android:lottie:$lottie_version"
|
2020-01-30 17:09:04 +05:30
|
|
|
|
|
|
|
|
// Pdf Viewer
|
|
|
|
|
implementation 'com.github.barteksc:android-pdf-viewer:2.8.2'
|
2020-04-02 13:46:26 +05:30
|
|
|
|
|
|
|
|
implementation 'com.facebook.shimmer:shimmer:0.5.0'
|
2019-10-31 15:23:40 +05:30
|
|
|
}
|
2019-12-09 17:23:21 +05:30
|
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|