diff --git a/README.md b/README.md
index c452e05..a6851d6 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-
+
# StackOverflow - Community Version
@@ -25,7 +25,7 @@ Users can also search for a particular problem they are having by typing in a se
* [Preferences DataStore](https://developer.android.com/topic/libraries/architecture/datastore) for storing and retrieving key-value pairs of primitive data types
# Installation
-This App requires a minimum API level of 21. Clone the repository. You will need an API key from [Stack Exchange API](https://api.stackexchange.com/) to receive a higher request quota. Locate the StringConstants.java file and edit the following line to add your API key:
+This App requires a minimum API level of 26. Clone the repository. You will need an API key from [Stack Exchange API](https://api.stackexchange.com/) to receive a higher request quota. Locate the StringConstants.java file and edit the following line to add your API key:
````
API_KEY = "YOUR_API_KEY"
diff --git a/android_glide_lint.xml b/android_glide_lint.xml
new file mode 100644
index 0000000..90c96a4
--- /dev/null
+++ b/android_glide_lint.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 3609b47..2ac4741 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -1,18 +1,19 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
-apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'
+apply plugin: 'kotlin-kapt'
+apply plugin: 'com.google.dagger.hilt.android'
android {
- compileSdkVersion 31
- buildToolsVersion "29.0.3"
+ namespace 'com.josycom.mayorjay.flowoverstack'
+ compileSdk 34
defaultConfig {
applicationId "com.josycom.mayorjay.flowoverstack"
- minSdkVersion 21
- targetSdkVersion 31
- versionCode 8
- versionName "1.8"
+ minSdk 26
+ targetSdk 34
+ versionCode 200
+ versionName "2.00"
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -50,20 +51,30 @@ android {
buildFeatures {
viewBinding true
+ buildConfig true
}
compileOptions {
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
+ sourceCompatibility = 17
+ targetCompatibility = 17
}
kotlinOptions {
- jvmTarget = JavaVersion.VERSION_1_8
+ jvmTarget = JavaVersion.VERSION_17
freeCompilerArgs += [
"-Xjvm-default=all",
]
}
+ kapt {
+ correctErrorTypes true
+ }
+
+ lint {
+ // https://github.com/bumptech/glide/issues/4940
+ lintConfig = file("$rootDir/android_glide_lint.xml")
+ }
+
}
dependencies {
@@ -106,10 +117,6 @@ dependencies {
// LiveData
implementation "androidx.lifecycle:lifecycle-livedata:2.4.0"
- // RxAndroid and RxJava
- implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
- implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
-
// SwipeRefreshLayout
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
@@ -124,20 +131,19 @@ dependencies {
implementation 'com.github.mukeshsolanki:MarkdownView-Android:1.0.8'
// Image cropper
- implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
+ implementation 'com.vanniktech:android-image-cropper:4.3.3'
// ML Kit
implementation 'com.google.android.gms:play-services-mlkit-text-recognition:17.0.0'
- // Dagger
- implementation 'com.google.dagger:dagger:2.35.1'
- implementation 'com.google.dagger:dagger-android:2.35.1'
- implementation 'com.google.dagger:dagger-android-support:2.27'
- annotationProcessor 'com.google.dagger:dagger-compiler:2.35.1'
- annotationProcessor 'com.google.dagger:dagger-android-processor:2.35.1'
+ // Hilt
+ implementation "com.google.dagger:hilt-android:$hilt_version"
+ kapt "com.google.dagger:hilt-compiler:$hilt_version"
// Play core
- implementation 'com.google.android.play:core:1.10.2'
+ implementation 'com.google.android.play:asset-delivery:2.2.2'
+ implementation 'com.google.android.play:feature-delivery:2.1.0'
+ implementation 'com.google.android.play:app-update:2.1.0'
// Kotlin
implementation 'androidx.core:core-ktx:1.6.0'
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index b7827c7..dd2379d 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,10 +1,15 @@
+
+
-
+
-
+
-
-
-
-
\ No newline at end of file
diff --git a/app/src/main/java/com/josycom/mayorjay/flowoverstack/MyApplication.java b/app/src/main/java/com/josycom/mayorjay/flowoverstack/MyApplication.java
deleted file mode 100644
index 11b3ede..0000000
--- a/app/src/main/java/com/josycom/mayorjay/flowoverstack/MyApplication.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package com.josycom.mayorjay.flowoverstack;
-
-import android.app.Application;
-
-import com.josycom.mayorjay.flowoverstack.di.component.DaggerAppComponent;
-import com.josycom.mayorjay.flowoverstack.util.AppLogger;
-
-import javax.inject.Inject;
-
-import dagger.android.AndroidInjector;
-import dagger.android.DispatchingAndroidInjector;
-import dagger.android.HasAndroidInjector;
-
-public class MyApplication extends Application implements HasAndroidInjector {
-
- @Inject
- DispatchingAndroidInjector