· 7 years ago · Apr 16, 2018, 03:44 AM
1apply plugin: 'com.android.application'
2apply plugin: 'realm-android'
3
4
5android {
6 compileSdkVersion 26
7 defaultConfig {
8 applicationId "com.propelrr.palawanexpress_agents"
9 minSdkVersion 23
10 targetSdkVersion 26
11 versionCode 1
12 versionName "1.0"
13 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
14
15 //For OAuth
16 buildConfigField "String", "OAUTH_CLIENT", "\"${oauth_client}\""
17 buildConfigField "String", "OAUTH_SECRET", "\"${oauth_secret}\""
18 buildConfigField "String", "GENERIC_USERNAME", "\"${username}\""
19 buildConfigField "String", "GENERIC_PASSWORD", "\"${password}\""
20 buildConfigField "String", "GRANT_TYPE", "\"${grant_type}\""
21
22 //For AES
23 buildConfigField "String", "AES_KEY", "\"${secret_key}\""
24 buildConfigField "String", "AES_IV", "\"${vector_parameter}\""
25
26 }
27 buildTypes {
28
29 debug{
30
31 buildConfigField "String", "BASE_URL", "\"${url_develop}\""
32 }
33
34 release {
35 minifyEnabled false
36 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
37 }
38 }
39}
40
41project.ext {
42 supportLibraryVersion = "26.1.0"
43 daggerVersion = "2.11"
44}
45
46
47dependencies {
48 implementation fileTree(dir: 'libs', include: ['*.jar'])
49 implementation 'com.android.support:appcompat-v7:26.1.0'
50 implementation 'com.android.support:recyclerview-v7:26.1.0'
51 testImplementation 'junit:junit:4.12'
52 androidTestImplementation 'com.android.support.test:runner:1.0.1'
53 androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
54 implementation "com.android.support:design:26.1.0"
55
56 //Memory Leaks
57 debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
58 releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
59 testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
60
61 //Glide
62 implementation 'com.github.bumptech.glide:glide:3.7.0'
63
64 //Log
65 implementation 'com.jakewharton.timber:timber:4.5.1'
66
67 //Networking
68 implementation "com.google.code.gson:gson:+"
69 implementation "com.squareup.retrofit2:retrofit:+"
70 implementation "com.squareup.retrofit2:converter-gson:+"
71 implementation "com.squareup.okhttp3:logging-interceptor:+"
72
73 //Rx adapter for retrofit
74 implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
75
76 //Rx
77 implementation 'io.reactivex:rxjava:1.1.6'
78 implementation 'io.reactivex:rxandroid:1.2.1'
79
80 //Dependencies injection
81 //Dagger Code
82 implementation "com.google.dagger:dagger:$project.daggerVersion"
83 annotationProcessor "com.google.dagger:dagger-compiler:$project.daggerVersion"
84
85 // Dagger Android
86 annotationProcessor "com.google.dagger:dagger-android-processor:$project.daggerVersion"
87 compile "com.google.dagger:dagger-android-support:$project.daggerVersion"
88
89 compileOnly 'javax.annotation:jsr250-api:1.0'
90
91 //Butterknife
92 implementation 'com.jakewharton:butterknife:8.5.1'
93 annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
94
95 //Firebase
96 implementation 'com.google.firebase:firebase-messaging:12.0.1'
97
98 //Bluetooth Printer
99 files('libs/btsdk.jar')
100
101 //Realm
102 implementation 'io.realm:android-adapters:2.0.0'
103}
104apply plugin: 'com.google.gms.google-services'