File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 4141
4242To add the Contentstack Android SDK to your existing project manually, perform the steps given below:
4343
44- 1 . [ Download the Android SDK] ( https://docs.contentstack. com/platforms/ android/android_sdk_latest )
44+ 1 . [ Download the Android SDK] ( https://github. com/contentstack/contentstack- android/archive/refs/heads/master.zip )
4545 and extract the ZIP file to your local disk.
46462 . Add references/dependencies using Eclipse/Android Studio:
4747
Original file line number Diff line number Diff line change @@ -160,10 +160,25 @@ dependencies {
160160 implementation ' com.github.rjeschke:txtmark:0.12'
161161 // // Retrofit
162162 implementation(" com.squareup.retrofit2:retrofit:2.9.0" )
163- implementation ' com.squareup.retrofit2:converter-gson:2.9.0 '
163+ implementation ' com.squareup.retrofit2:converter-gson'
164164 // // OkHttp
165- implementation ' com.squareup.okhttp3:okhttp:4.9.3 '
165+ implementation ' com.squareup.okhttp3:okhttp'
166166 // implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3'
167+
168+ constraints {
169+ implementation(' com.squareup.retrofit2:converter-gson:2.9.0' ) {
170+ because ' gson 2.8.5 used by retrofit has a vulnerability'
171+ }
172+ implementation(' com.google.code.gson:gson@2.8.9' ) {
173+ because ' gson 2.8.5 used by retrofit has a vulnerability'
174+ }
175+ implementation(' com.squareup.okhttp3:okhttp:4.9.3' ) {
176+ because ' kotlin stdlib 1.4.10 used by okhttp has a vulnerability'
177+ }
178+ implementation(' org.jetbrains.kotlin:kotlin-stdlib@1.6.0' ) {
179+ because ' kotlin stdlib 1.4.10 used by okhttp has a vulnerability'
180+ }
181+ }
167182}
168183tasks. register(' clearJar' , Delete ) { delete ' build/libs/contentstack.jar' }
169184tasks. register(' unzip' , Copy ) {
You can’t perform that action at this time.
0 commit comments