-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update UI and Add TTS feature
- Loading branch information
Showing
73 changed files
with
2,162 additions
and
854 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,89 @@ | ||
|
||
plugins { | ||
id 'com.android.application' | ||
id 'kotlin-android' | ||
id 'kotlin-kapt' | ||
id 'androidx.navigation.safeargs.kotlin' | ||
} | ||
apply plugin: 'kotlin-android' | ||
|
||
|
||
android { | ||
compileSdk 30 | ||
|
||
|
||
defaultConfig { | ||
|
||
// configurations.all { | ||
// resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' } | ||
// } | ||
multiDexEnabled true | ||
|
||
applicationId "com.example.newsapp" | ||
minSdk 21 | ||
targetSdk 30 | ||
targetSdk 31 | ||
versionCode 1 | ||
versionName "1.0" | ||
compileSdk 31 | ||
compileSdk 32 | ||
|
||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
|
||
// Please ensure you have a valid API KEY for https://newsapi.org/ | ||
// to use this app | ||
// A valid key will need to be entered | ||
buildConfigField("String", 'API_KEY', API_KEY) | ||
// buildConfigField('String' , 'myParameter', 'someValue') | ||
|
||
} | ||
|
||
compileOptions { | ||
|
||
coreLibraryDesugaringEnabled true | ||
|
||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
|
||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
// buildTypes.each { | ||
// it.buildConfigField 'String', 'API_KEY', API_KEY | ||
// } | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
|
||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
namespace 'com.example.newsapp' | ||
} | ||
|
||
dependencies { | ||
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.1.3' | ||
def room_version = '2.4.2' | ||
def nav_version = '2.4.1' | ||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' | ||
|
||
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | ||
implementation 'androidx.viewpager2:viewpager2:1.0.0' | ||
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1' | ||
|
||
implementation "androidx.navigation:navigation-fragment-ktx:2.4.1" | ||
implementation "androidx.navigation:navigation-ui-ktx:$nav_version" | ||
|
||
implementation "androidx.room:room-runtime:$room_version" | ||
kapt "androidx.room:room-compiler:$room_version" | ||
|
||
implementation "androidx.activity:activity-ktx:1.4.0" | ||
|
||
implementation 'androidx.core:core-ktx:1.7.0' | ||
implementation 'androidx.appcompat:appcompat:1.4.1' | ||
implementation 'com.google.android.material:material:1.5.0' | ||
implementation 'androidx.core:core-ktx:1.8.0' | ||
implementation 'androidx.appcompat:appcompat:1.4.2' | ||
implementation 'com.google.android.material:material:1.6.1' | ||
implementation 'androidx.legacy:legacy-support-v4:1.0.0' | ||
testImplementation 'junit:junit:4.13.2' | ||
androidTestImplementation 'androidx.test.ext:junit:1.1.3' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | ||
|
||
def room_version = '2.4.2' | ||
implementation "androidx.room:room-runtime:$room_version" | ||
kapt "androidx.room:room-compiler:$room_version" | ||
|
||
implementation 'com.squareup.retrofit2:retrofit:2.9.0' | ||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0' | ||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0' | ||
|
||
// GSON | ||
|
||
implementation 'com.squareup.retrofit2:converter-gson:2.9.0' | ||
|
||
|
||
implementation 'com.squareup.picasso:picasso:2.71828' | ||
implementation "androidx.core:core-ktx:+" | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" | ||
|
||
implementation 'com.facebook.shimmer:shimmer:0.5.0' | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.