Skip to content

Commit

Permalink
APP UPDATE
Browse files Browse the repository at this point in the history
Update UI and Add TTS feature
  • Loading branch information
Raj-m01 committed Jun 17, 2022
1 parent d586ed1 commit b59b7c1
Show file tree
Hide file tree
Showing 73 changed files with 2,162 additions and 854 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
.DS_Store
/build
/captures
/gradle.properties
bin/
gen/
# Proguard folder generated by Eclipse
proguard/
.externalNativeBuild
.cxx
local.properties
1 change: 1 addition & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 31 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added apk/News.apk
Binary file not shown.
68 changes: 37 additions & 31 deletions app/build.gradle
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'

}
22 changes: 14 additions & 8 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.newsapp">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

<queries>
<intent>
<action android:name="android.intent.action.TTS_SERVICE" />
</intent>
</queries>

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="News App"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.NewsApp">
<activity
android:name=".ReadNewsActivity"
android:exported="false" />
<activity
android:name=".MainActivity"
android:exported="true"
Expand All @@ -20,13 +29,10 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<activity
android:name=".SavedNews"
android:parentActivityName=".MainActivity"
android:label="Saved News">

</activity>
android:name=".SavedNewsActivity"
android:label="Saved News"
android:parentActivityName=".MainActivity" />
</application>

</manifest>
108 changes: 0 additions & 108 deletions app/src/main/java/com/example/newsapp/CustomAdapter.kt

This file was deleted.

Loading

0 comments on commit b59b7c1

Please sign in to comment.