@@ -4,17 +4,19 @@ plugins {
44}
55
66import com.vanniktech.maven.publish.SonatypeHost
7+
78android. buildFeatures. buildConfig true
89
910mavenPublishing {
1011 publishToMavenCentral(SonatypeHost . DEFAULT )
1112 signAllPublications()
12- coordinates(" com.contentstack.sdk" , " android" , " 3.12.4-rc2-SNAPSHOT " )
13+ coordinates(" com.contentstack.sdk" , " android" , " 3.12.5 " )
1314
1415 pom {
1516 name = " contentstack-android"
1617 description = " The Content Delivery SDK facilitates the retrieval of content from your Contentstack account, enabling seamless delivery to your web or mobile properties.."
1718 inceptionYear = " 2018"
19+ packaging ' aar'
1820 url = " https://github.com/contentstack/contentstack-android"
1921 licenses {
2022 license {
@@ -32,7 +34,7 @@ mavenPublishing {
3234 }
3335 scm {
3436 url = " scm:git@github.com:contentstack/contentstack-android"
35- connection = " scm:git:git://github.com/username/mylibrary .git"
37+ connection = " scm:git:git://github.com/contentstack/contentstack-android .git"
3638 developerConnection = " scm:git@github.com:contentstack/contentstack-android.git"
3739 }
3840 }
@@ -52,17 +54,18 @@ tasks.register('jacocoTestReport', JacocoReport) {
5254 }))
5355 }
5456}
57+
5558android {
56- namespace " com.contentstack.sdk"
59+ // namespace "com.contentstack.sdk"
5760 packagingOptions {
58- exclude ' META-INF/DEPENDENCIES'
59- exclude ' META-INF/LICENSE.md '
60- exclude ' META-INF/LICENSE-notice.md '
61- exclude ' META-INF/license.txt'
62- exclude ' META-INF/NOTICE'
63- exclude ' META-INF/NOTICE.txt'
64- exclude ' META-INF/notice.txt'
65- exclude ' META-INF/ASL2.0'
61+ exclude( " META-INF/DEPENDENCIES" )
62+ exclude( " META-INF/LICENSE" )
63+ exclude( " META-INF/LICENSE.txt " )
64+ exclude( " META-INF/license.txt" )
65+ exclude( " META-INF/NOTICE" )
66+ exclude( " META-INF/NOTICE.txt" )
67+ exclude( " META-INF/notice.txt" )
68+ exclude( " META-INF/ASL2.0" )
6669 exclude(" META-INF/*.kotlin_module" )
6770 }
6871
@@ -75,22 +78,23 @@ android {
7578 }
7679 signingConfigs {
7780 debug {
78- storeFile file(" /Users/shaileshmishra/keystore/release .keystore" )
81+ storeFile file(" /Users/shaileshmishra/keystore/key .keystore" )
7982 storePassword ' android'
80- keyAlias ' androiddebugkey '
83+ keyAlias ' key0 '
8184 keyPassword ' android'
8285 }
8386 release {
84- storeFile file(" /Users/shaileshmishra/keystore/release .keystore" )
87+ storeFile file(" /Users/shaileshmishra/keystore/key .keystore" )
8588 storePassword ' android'
86- keyAlias ' androiddebugkey '
89+ keyAlias ' key0 '
8790 keyPassword ' android'
8891 }
8992 }
90- compileSdk 26
93+ compileSdk 30
9194 defaultConfig {
95+ // Required when setting minSdkVersion to 20 or lower
9296 multiDexEnabled true
93- minSdkVersion 19
97+ minSdkVersion 23
9498 versionCode 1
9599 versionName " 1.0"
96100 useLibrary ' org.apache.http.legacy'
@@ -105,6 +109,8 @@ android {
105109 debug {
106110 debuggable true
107111 testCoverageEnabled true
112+ proguardFiles getDefaultProguardFile(' proguard-android.txt' ), ' proguard-rules.pro'
113+
108114 buildConfigField " String" , " host" , localProperties[' host' ]
109115 buildConfigField " String" , " APIKey" , localProperties[' APIKey' ]
110116 buildConfigField " String" , " deliveryToken" , localProperties[' deliveryToken' ]
@@ -118,26 +124,32 @@ android {
118124 }
119125 }
120126 // flavorDimensions "default"
121- lintOptions { abortOnError false }
127+ // lintOptions { abortOnError false }
122128 compileOptions {
123- // coreLibraryDesugaringEnabled true
129+ // Flag to enable support for the new language APIs
130+ coreLibraryDesugaringEnabled true
131+ // Sets Java compatibility to Java 8
124132 sourceCompatibility JavaVersion . VERSION_1_8
125133 targetCompatibility JavaVersion . VERSION_1_8
126134 }
127135}
128136configurations { archives }
129137dependencies {
130- def multidex_version = " 2.0.1"
138+ def multidex = " 2.0.1"
139+ // def sdk_utils = "1.2.6"
140+ def volley = " 1.2.1"
141+ def junit = " 4.13.2"
131142 configurations. configureEach { resolutionStrategy. force ' com.android.support:support-annotations:23.1.0' }
132143 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
133- implementation ' com.contentstack.sdk:utils:1.2.6'
134- implementation ' com.android.volley:volley:1.2.1'
135- implementation ' junit:junit:4.13.2'
144+ // implementation "com.contentstack.sdk:utils:$sdk_utils"
145+ implementation " com.android.volley:volley:$volley "
146+ implementation " junit:junit:$junit "
147+ // For AGP 7.4+
136148 coreLibraryDesugaring ' com.android.tools:desugar_jdk_libs:2.0.4'
137- implementation " androidx.multidex:multidex:$multidex_version "
138-
149+ // implementation "androidx.multidex:multidex:$multidex"
139150 testImplementation ' junit:junit:4.13.2'
140151 androidTestImplementation ' androidx.test:core:1.5.0'
152+ // testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
141153 androidTestImplementation(' com.android.support.test.espresso:espresso-core:3.0.2' , {
142154 exclude group : ' com.android.support' , module : ' support-annotations'
143155 })
0 commit comments