Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #334 from gini/PIA-2674-lower-compile-sdk-to-30
Browse files Browse the repository at this point in the history
Pia 2674 lower compile sdk to 30
  • Loading branch information
a-szotyori authored Jun 7, 2022
2 parents 81edd04 + 110ce90 commit ad444e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ task printLibraryVersion {
}

ext {
compileSdkVersion = 31
compileSdkVersion = 30
minSdkVersion = 19
targetSdkVersion = 30
versionCode = libVersionCode
Expand All @@ -72,7 +72,7 @@ ext {

ext.deps = [
// Android
androidxCore : '1.7.0',
androidxCore : '1.6.0',
androidxAppCompat : '1.3.1',
androidxFragment : '1.3.6',
androidxViewPager : '1.0.0',
Expand Down
2 changes: 1 addition & 1 deletion ginivision-accounting-network/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.annotation:annotation:$deps.androidxAnnotations"
implementation project(path: ':ginivision')
api('net.gini:gini-android-sdk:2.9.2@aar') {
api('net.gini:gini-android-sdk:2.9.0@aar') {
transitive = true
}

Expand Down
2 changes: 1 addition & 1 deletion ginivision-network/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "androidx.annotation:annotation:$deps.androidxAnnotations"
implementation project(path: ':ginivision')
api('net.gini:gini-android-sdk:2.10.0@aar') {
api('net.gini:gini-android-sdk:2.9.0@aar') {
transitive = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
import androidx.annotation.Nullable;
import androidx.annotation.XmlRes;

import javax.net.ssl.TrustManager;

import bolts.Continuation;
import bolts.Task;

Expand Down Expand Up @@ -349,7 +347,6 @@ public static class Builder {
private int mMaxNumberOfRetries;
private float mBackoffMultiplier;
private DocumentMetadata mDocumentMetadata;
private TrustManager mTrustManager;

Builder(@NonNull final Context context) {
mContext = context;
Expand Down Expand Up @@ -394,9 +391,6 @@ public GiniVisionDefaultNetworkService build() {
if (mBackoffMultiplier >= 0) {
sdkBuilder.setConnectionBackOffMultiplier(mBackoffMultiplier);
}
if (mTrustManager != null) {
sdkBuilder.setTrustManager(mTrustManager);
}
final Gini giniApi = sdkBuilder.build();
return new GiniVisionDefaultNetworkService(giniApi, mDocumentMetadata);
}
Expand Down Expand Up @@ -569,20 +563,6 @@ public Builder setDocumentMetadata(@NonNull final DocumentMetadata documentMetad
return this;
}

/**
* Set a custom {@link TrustManager} implementation to have full control over which certificates to trust.
* <p>
* Please be aware that if you set a custom TrustManager implementation here than it will override any
* <a href="https://developer.android.com/training/articles/security-config">network security configuration</a>
* you may have set.
*
* @param trustManager A {@link TrustManager} implementation.
* @return the {@link Builder} instance
*/
public Builder setTrustManager(@NonNull final TrustManager trustManager) {
mTrustManager = trustManager;
return this;
}
}

}

0 comments on commit ad444e5

Please sign in to comment.