Skip to content

Commit

Permalink
Merge pull request #6 from icanerdogan/release/1.0.0
Browse files Browse the repository at this point in the history
Release/1.0.0
  • Loading branch information
icanerdogan authored Oct 13, 2024
2 parents f0d3758 + 9a54a8a commit f9032d4
Show file tree
Hide file tree
Showing 97 changed files with 331 additions and 264 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

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

3 changes: 2 additions & 1 deletion .idea/misc.xml

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

88 changes: 77 additions & 11 deletions .idea/other.xml

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

13 changes: 7 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ plugins {
id 'com.google.dagger.hilt.android'
id 'kotlin-parcelize'
}

def versionMajor = 1
def versionMinor = 0
def versionPatch = 0
android {
namespace 'com.loc.newsapp'
namespace 'com.canerdogan.jetnews'
compileSdk 33

defaultConfig {
applicationId "com.loc.newsapp"
applicationId "com.canerdogan.jetnews"
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"

versionCode versionMajor * 100 + versionMinor * 10 + versionPatch
versionName "${versionMajor}.${versionMinor}.${versionPatch}"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
Expand Down
Binary file added app/release/app-release.aab
Binary file not shown.
Binary file added app/signing/NewsApp.jks
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.loc.newsapp
package com.canerdogan.jetnews

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.loc.newsapp", appContext.packageName)
assertEquals("com.canerdogan.jetnews", appContext.packageName)
}
}
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:icon="@mipmap/icon_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:roundIcon="@mipmap/icon_launcher_round"
android:supportsRtl="true"
android:theme="@style/App.Starting.Theme"
tools:targetApi="31">
Expand Down
Binary file added app/src/main/icon_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.loc.newsapp
package com.canerdogan.jetnews

import android.os.Bundle
import androidx.activity.ComponentActivity
Expand All @@ -14,8 +14,8 @@ import androidx.compose.ui.graphics.Color
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.core.view.WindowCompat
import com.google.accompanist.systemuicontroller.rememberSystemUiController
import com.loc.newsapp.ui.navigation.graph.NavGraph
import com.loc.newsapp.ui.theme.NewsAppTheme
import com.canerdogan.jetnews.ui.navigation.graph.NavGraph
import com.canerdogan.jetnews.ui.theme.NewsAppTheme
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package com.loc.newsapp
package com.canerdogan.jetnews

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.loc.newsapp.domain.usecases.manager.AppEntryUseCase
import com.loc.newsapp.ui.navigation.graph.Route
import com.canerdogan.jetnews.domain.usecases.manager.AppEntryUseCase
import com.canerdogan.jetnews.ui.navigation.graph.Route
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.launchIn
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.loc.newsapp
package com.canerdogan.jetnews

import android.app.Application
import dagger.hilt.android.HiltAndroidApp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.loc.newsapp.data.database
package com.canerdogan.jetnews.data.database

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.loc.newsapp.domain.model.Article
import com.canerdogan.jetnews.domain.model.Article
import kotlinx.coroutines.flow.Flow

@Dao
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.loc.newsapp.data.database
package com.canerdogan.jetnews.data.database

import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.loc.newsapp.domain.model.Article
import com.canerdogan.jetnews.domain.model.Article

@Database(entities = [Article::class], version = 3)
@TypeConverters(NewsTypeConvertor::class)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.loc.newsapp.data.database
package com.canerdogan.jetnews.data.database

import androidx.room.ProvidedTypeConverter
import androidx.room.TypeConverter
import com.loc.newsapp.domain.model.Source
import com.canerdogan.jetnews.domain.model.Source

@ProvidedTypeConverter
class NewsTypeConvertor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.loc.newsapp.data.manager
package com.canerdogan.jetnews.data.manager

import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.preferencesDataStore
import com.loc.newsapp.domain.manager.LocalUserManager
import com.loc.newsapp.util.Constants
import com.loc.newsapp.util.Constants.USER_SETTINGS
import com.canerdogan.jetnews.domain.manager.LocalUserManager
import com.canerdogan.jetnews.util.Constants
import com.canerdogan.jetnews.util.Constants.USER_SETTINGS
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.loc.newsapp.data.network
package com.canerdogan.jetnews.data.network

import com.loc.newsapp.BuildConfig
import com.loc.newsapp.data.network.dto.NewsResponse
import com.canerdogan.jetnews.BuildConfig
import com.canerdogan.jetnews.data.network.dto.NewsResponse
import retrofit2.http.GET
import retrofit2.http.Query

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.loc.newsapp.data.network.dto
package com.canerdogan.jetnews.data.network.dto

import com.loc.newsapp.domain.model.Article
import com.canerdogan.jetnews.domain.model.Article

data class NewsResponse(
val articles: List<Article>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.loc.newsapp.data.network.paging
package com.canerdogan.jetnews.data.network.paging

import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.loc.newsapp.data.network.NewsAPI
import com.loc.newsapp.domain.model.Article
import com.canerdogan.jetnews.data.network.NewsAPI
import com.canerdogan.jetnews.domain.model.Article

class NewsPagingSource(
private val newsApi: NewsAPI,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.loc.newsapp.data.network.paging
package com.canerdogan.jetnews.data.network.paging

import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.loc.newsapp.data.network.NewsAPI
import com.loc.newsapp.domain.model.Article
import com.canerdogan.jetnews.data.network.NewsAPI
import com.canerdogan.jetnews.domain.model.Article

class SearchNewsPagingSource(
private val newsApi: NewsAPI,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.loc.newsapp.data.repository
package com.canerdogan.jetnews.data.repository

import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.loc.newsapp.data.database.NewsDao
import com.loc.newsapp.data.network.NewsAPI
import com.loc.newsapp.data.network.paging.NewsPagingSource
import com.loc.newsapp.data.network.paging.SearchNewsPagingSource
import com.loc.newsapp.domain.model.Article
import com.loc.newsapp.domain.repository.NewsRepository
import com.canerdogan.jetnews.data.database.NewsDao
import com.canerdogan.jetnews.data.network.NewsAPI
import com.canerdogan.jetnews.data.network.paging.NewsPagingSource
import com.canerdogan.jetnews.data.network.paging.SearchNewsPagingSource
import com.canerdogan.jetnews.domain.model.Article
import com.canerdogan.jetnews.domain.repository.NewsRepository
import kotlinx.coroutines.flow.Flow

class NewsRepositoryImpl(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.loc.newsapp.dependencyinjection
package com.canerdogan.jetnews.dependencyinjection

import android.app.Application
import androidx.room.Room
import com.loc.newsapp.BuildConfig
import com.loc.newsapp.data.database.NewsDao
import com.loc.newsapp.data.database.NewsDatabase
import com.loc.newsapp.data.database.NewsTypeConvertor
import com.canerdogan.jetnews.BuildConfig
import com.canerdogan.jetnews.data.database.NewsDao
import com.canerdogan.jetnews.data.database.NewsDatabase
import com.canerdogan.jetnews.data.database.NewsTypeConvertor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
Expand Down
Loading

0 comments on commit f9032d4

Please sign in to comment.