Skip to content

Commit

Permalink
Rename the whole project to Mooviez (#11)
Browse files Browse the repository at this point in the history
* Massively rename package name to net.marcoromano.mooviez (including directories)
* Some last manual tweaks
* New firebase json
  • Loading branch information
julioromano authored Mar 14, 2023
1 parent 30f6651 commit 1660780
Show file tree
Hide file tree
Showing 54 changed files with 80 additions and 80 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# TMDB Explorer
## Unofficial Android client app for tmdb.org
# Mooviez
## Browse information about movies and tv shows.

This is meant to be a showcase app featuring modern Android development practices.
The data presented by this app is kindly provided by themoviedb.org
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

android {
namespace = "net.marcoromano.tmdb.app"
namespace = "net.marcoromano.mooviez.app"
signingConfigs {
create("release") {
storeFile = file(".secrets/keystore.jks")
Expand All @@ -30,7 +30,7 @@ android {
buildToolsVersion = libs.versions.android.buildTools.get()
compileSdk = libs.versions.android.compileSdk.get().toInt()
defaultConfig {
applicationId = "net.marcoromano.tmdb"
applicationId = "net.marcoromano.mooviez"
minSdk = libs.versions.android.minSdk.get().toInt()
targetSdk = libs.versions.android.targetSdk.get().toInt()
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
16 changes: 8 additions & 8 deletions app/google-services.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"project_info": {
"project_number": "613195079771",
"project_id": "tmdb-explorer-bbf2a",
"storage_bucket": "tmdb-explorer-bbf2a.appspot.com"
"project_number": "514276520428",
"project_id": "mooviez-d64ab",
"storage_bucket": "mooviez-d64ab.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:613195079771:android:67d1b6616df0d59c9edf7e",
"mobilesdk_app_id": "1:514276520428:android:96ebfcc92f70c41989d0c9",
"android_client_info": {
"package_name": "net.marcoromano.tmdb"
"package_name": "net.marcoromano.mooviez"
}
},
"oauth_client": [
{
"client_id": "613195079771-5m56hfai0d4sbtrgo7rbaehv0vg2lfhq.apps.googleusercontent.com",
"client_id": "514276520428-l640oei88908m7oub18un85eqri6mojm.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyAhyWAOTU8800vwrQ9FhX0iV_vT7fAM0DY"
"current_key": "AIzaSyAI2eSCwUZMk6WBKt1qnZMnu966v0bJKdo"
}
],
"services": {
"appinvite_service": {
"other_platform_oauth_client": [
{
"client_id": "613195079771-5m56hfai0d4sbtrgo7rbaehv0vg2lfhq.apps.googleusercontent.com",
"client_id": "514276520428-l640oei88908m7oub18un85eqri6mojm.apps.googleusercontent.com",
"client_type": 3
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb
package net.marcoromano.mooviez.app

import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.junit4.createComposeRule
Expand All @@ -8,7 +8,6 @@ import androidx.compose.ui.test.performTextInput
import androidx.test.core.app.launchActivity
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import net.marcoromano.tmdb.app.MainActivity
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.Test
Expand All @@ -29,7 +28,7 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("net.marcoromano.tmdb", appContext.packageName)
assertEquals("net.marcoromano.mooviez", appContext.packageName)
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.app
package net.marcoromano.mooviez.app

import android.app.Application
import dagger.hilt.android.HiltAndroidApp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.app
package net.marcoromano.mooviez.app

import android.app.Application
import dagger.Module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package net.marcoromano.tmdb.app
package net.marcoromano.mooviez.app

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.core.view.WindowCompat
import dagger.hilt.android.AndroidEntryPoint
import net.marcoromano.tmdb.app.ui.AppUi
import net.marcoromano.tmdb.app.ui.theme.AppTheme
import net.marcoromano.mooviez.app.ui.AppUi
import net.marcoromano.mooviez.app.ui.theme.AppTheme

@AndroidEntryPoint
class MainActivity : ComponentActivity() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package net.marcoromano.tmdb.app.ui
package net.marcoromano.mooviez.app.ui

import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.google.accompanist.navigation.animation.AnimatedNavHost
import com.google.accompanist.navigation.animation.rememberAnimatedNavController
import net.marcoromano.tmdb.movie.MovieNavigation
import net.marcoromano.tmdb.trending.TrendingNavigation
import net.marcoromano.mooviez.movie.MovieNavigation
import net.marcoromano.mooviez.trending.TrendingNavigation

@OptIn(ExperimentalAnimationApi::class)
@Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.app.ui
package net.marcoromano.mooviez.app.ui

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.app.ui.theme
package net.marcoromano.mooviez.app.ui.theme

import androidx.compose.ui.graphics.Color

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.app.ui.theme
package net.marcoromano.mooviez.app.ui.theme

import android.app.Activity
import android.os.Build
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.app.ui.theme
package net.marcoromano.mooviez.app.ui.theme

import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">TMDB Explorer</string>
<string name="app_name">Mooviez</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb
package net.marcoromano.mooviez

import org.junit.Assert.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.database
package net.marcoromano.mooviez.database

import dagger.Module
import dagger.Provides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.database
package net.marcoromano.mooviez.database

import com.squareup.sqldelight.sqlite.driver.JdbcSqliteDriver

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.database
package net.marcoromano.mooviez.database

import org.junit.Assert.assertNotNull
import org.junit.Test
Expand Down
2 changes: 1 addition & 1 deletion database/impl-wiring/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ dependencies {
}

android {
namespace = "net.marcoromano.tmdb.database.wiring"
namespace = "net.marcoromano.mooviez.database.wiring"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.database
package net.marcoromano.mooviez.database

import android.app.Application
import dagger.Module
Expand Down
2 changes: 1 addition & 1 deletion database/impl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ dependencies {
}

android {
namespace = "net.marcoromano.tmdb.database"
namespace = "net.marcoromano.mooviez.database"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.database
package net.marcoromano.mooviez.database

import android.content.Context
import androidx.sqlite.db.SupportSQLiteDatabase
Expand All @@ -8,7 +8,7 @@ public fun DatabaseImpl(context: Context): Database = Database(
driver = AndroidSqliteDriver(
schema = Database.Schema,
context = context,
name = "net.marcoromano.tmdb.database",
name = "net.marcoromano.mooviez.database",
callback = object : AndroidSqliteDriver.Callback(Database.Schema) {
override fun onConfigure(db: SupportSQLiteDatabase) {
super.onConfigure(db)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.database
package net.marcoromano.mooviez.database

import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
Expand Down
2 changes: 1 addition & 1 deletion database/public/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

sqldelight {
database("Database") {
packageName = "net.marcoromano.tmdb.database"
packageName = "net.marcoromano.mooviez.database"
schemaOutputDirectory = file("src/main/sqldelight/schema")
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import dagger.Module
import dagger.Provides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import com.squareup.moshi.Moshi
import com.squareup.moshi.adapter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import dagger.Module
import dagger.Provides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import com.squareup.moshi.Moshi
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import retrofit2.http.GET
import retrofit2.http.Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

public enum class MediaType(private val mediaType: String) {
ALL("all"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import com.squareup.moshi.JsonClass

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

public enum class TimeWindow(private val timeWindow: String) {
DAY("day"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.httpapi
package net.marcoromano.mooviez.httpapi

import com.squareup.moshi.JsonClass

Expand Down
2 changes: 1 addition & 1 deletion movie/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

android {
namespace = "net.marcoromano.tmdb.movie"
namespace = "net.marcoromano.mooviez.movie"
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.junit4.createComposeRule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import androidx.compose.ui.test.assertTextEquals
import androidx.compose.ui.test.junit4.createComposeRule
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import net.marcoromano.tmdb.httpapi.Movie
import net.marcoromano.mooviez.httpapi.Movie

internal fun demoMovie() = Movie(
id = 261414,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import androidx.compose.animation.ExperimentalAnimationApi
import androidx.navigation.NavController
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import android.content.res.Configuration
import androidx.compose.foundation.layout.Box
Expand All @@ -25,7 +25,7 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import net.marcoromano.tmdb.movie.widgets.Movie
import net.marcoromano.mooviez.movie.widgets.Movie

@Composable
internal fun MovieScreen(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import net.marcoromano.tmdb.httpapi.Movie
import net.marcoromano.mooviez.httpapi.Movie

internal data class MovieState(
val isLoading: Boolean = false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.movie
package net.marcoromano.mooviez.movie

import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
Expand All @@ -10,8 +10,8 @@ import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import net.marcoromano.tmdb.httpapi.HttpApi
import net.marcoromano.tmdb.httpapi.Movie
import net.marcoromano.mooviez.httpapi.HttpApi
import net.marcoromano.mooviez.httpapi.Movie
import java.util.UUID
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.marcoromano.tmdb.movie.widgets
package net.marcoromano.mooviez.movie.widgets

import android.graphics.Color
import android.graphics.drawable.ColorDrawable
Expand All @@ -24,8 +24,8 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import coil.compose.rememberAsyncImagePainter
import coil.request.ImageRequest
import net.marcoromano.tmdb.httpapi.Movie
import net.marcoromano.tmdb.movie.demoMovie
import net.marcoromano.mooviez.httpapi.Movie
import net.marcoromano.mooviez.movie.demoMovie

@Composable
internal fun Movie(
Expand Down
Loading

0 comments on commit 1660780

Please sign in to comment.