anitab-org / mentorship-android

Mentorship System is an application that matches women in tech to mentor each other, on career development, through 1:1 relations during a certain period of time. This is the Android application of this project.
https://github.com/anitab-org/mentorship-android/raw/apk/app-debug.apk
GNU General Public License v3.0
167 stars 379 forks source link

feat: Migrate SharedPreferences to DataStore #1178

Open Rohit-2602 opened 2 years ago

Rohit-2602 commented 2 years ago

Description

Fixes #1177

Type of Change:

Code/Quality Assurance Only

How Has This Been Tested?

I make the changes and try running this app on my device, but I got a 401 Authentication error on 1st run only. After that app runs fine as it should be.

https://user-images.githubusercontent.com/65807152/142908204-8bda3827-cda7-4f0c-949d-53f881097cd8.mp4

Checklist:

Code/Quality Assurance Only

Rohit-2602 commented 2 years ago

@epicadk I am getting build error. Can you please help? I just update the DataStore version but it is showing this error

The minCompileSdk (30) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-28).
Dependency: androidx.datastore:datastore-preferences:1.0.0.
AAR metadata file: W:\Android Gradle\caches\transforms-3\3298931b4e39777ba18ae456fda6204c\transformed\jetified-datastore-preferences-1.0.0\META-INF\com\android\build\gradle\aar-metadata.properties.

if I update the compileSDKVersion then it is showing random errors.

epicadk commented 2 years ago

@epicadk I am getting build error. Can you please help? I just update the DataStore version but it is showing this error

The minCompileSdk (30) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-28).
Dependency: androidx.datastore:datastore-preferences:1.0.0.
AAR metadata file: W:\Android Gradle\caches\transforms-3\3298931b4e39777ba18ae456fda6204c\transformed\jetified-datastore-preferences-1.0.0\META-INF\com\android\build\gradle\aar-metadata.properties.

if I update the compileSDKVersion then it is showing random errors.

bump compile sdk to 30

Rohit-2602 commented 2 years ago

@epicadk https://github.com/anitab-org/mentorship-android/pull/1180 sorry for creating new PR, I was having some problem with the project in my Android Studio so I have to refork the project.