Skip to content

Commit 73ea995

Browse files
feat: add comments
1 parent 06f59ff commit 73ea995

File tree

15 files changed

+118
-5
lines changed

15 files changed

+118
-5
lines changed

app/src/main/java/com/davedevab/composetutorial/app/ComposeTutorial.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package com.davedevab.composetutorial.app
2-
2+
/*
3+
* Name: FreeGames
4+
* Dev: David Butrón
5+
* Profile Github: https://github.com/DaveDeveloper117/
6+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
7+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
8+
*/
39
import android.app.Application
410
import dagger.hilt.android.HiltAndroidApp
511

app/src/main/java/com/davedevab/composetutorial/data/remote/GameApi.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
package com.davedevab.composetutorial.data.remote
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import com.davedevab.composetutorial.data.remote.model.GameModel
412
import com.davedevab.composetutorial.util.Constants.Companion.GAMES_ENDPOINT
513
import retrofit2.Response
614
import retrofit2.http.GET
715

8-
916
interface GameApi {
1017
@GET(GAMES_ENDPOINT)
1118
suspend fun getGames(): Response<List<GameModel>>

app/src/main/java/com/davedevab/composetutorial/data/remote/GameService.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.data.remote
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import com.davedevab.composetutorial.data.remote.model.GameModel
412
import kotlinx.coroutines.Dispatchers
513
import kotlinx.coroutines.withContext

app/src/main/java/com/davedevab/composetutorial/data/remote/model/GameModel.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
package com.davedevab.composetutorial.data.remote.model
2-
2+
/*
3+
* Name: FreeGames
4+
* Dev: David Butrón
5+
* Profile Github: https://github.com/DaveDeveloper117/
6+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
7+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
8+
*/
39
data class GameModel(
410
val id: Int,
511
val title: String,

app/src/main/java/com/davedevab/composetutorial/di/RetrofitModule.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.di
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import com.davedevab.composetutorial.data.remote.GameApi
412
import com.davedevab.composetutorial.util.Constants.Companion.BASE_URL
513
import dagger.Module

app/src/main/java/com/davedevab/composetutorial/domain/GetGameUseCase.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.domain
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import com.davedevab.composetutorial.domain.item.GameItem
412
import com.davedevab.composetutorial.repo.GameRepository
513
import javax.inject.Inject

app/src/main/java/com/davedevab/composetutorial/domain/item/GameItem.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.domain.item
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import com.davedevab.composetutorial.data.remote.model.GameModel
412

513
data class GameItem(

app/src/main/java/com/davedevab/composetutorial/repo/GameRepository.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.repo
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import com.davedevab.composetutorial.data.remote.GameService
412
import com.davedevab.composetutorial.domain.item.GameItem
513
import com.davedevab.composetutorial.domain.item.toGameItem

app/src/main/java/com/davedevab/composetutorial/ui/home/Home.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.ui.home
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import android.content.Intent
412
import android.net.Uri
513
import androidx.activity.compose.rememberLauncherForActivityResult
@@ -57,7 +65,6 @@ fun GameCard(game: GameItem){
5765
val image = rememberAsyncImagePainter(model = game.thumbnail)
5866
var isExpanded by remember { mutableStateOf(false) }
5967
val openUrl = rememberLauncherForActivityResult(ActivityResultContracts.StartActivityForResult()) { result ->
60-
// Aquí puedes manejar la respuesta si es necesario, pero en este caso, no es necesario.
6168
}
6269

6370
Card(

app/src/main/java/com/davedevab/composetutorial/ui/home/HomeViewModel.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
package com.davedevab.composetutorial.ui.home
22

3+
/*
4+
* Name: FreeGames
5+
* Dev: David Butrón
6+
* Profile Github: https://github.com/DaveDeveloper117/
7+
* License: https://github.com/DaveDeveloper117/ComposeTutorial/blob/master/LICENSE
8+
* Github Repo: https://github.com/DaveDeveloper117/ComposeTutorial
9+
*/
10+
311
import androidx.lifecycle.ViewModel
412
import androidx.lifecycle.viewModelScope
513
import com.davedevab.composetutorial.domain.GetGameUseCase

0 commit comments

Comments
 (0)