Skip to content

Commit

Permalink
add keep annotation for class to solve proguard problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MostafaMohamed2002 committed Nov 9, 2024
1 parent b838386 commit 6696733
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

-dontwarn com.google.devtools.ksp.UtilsKt
-dontwarn com.google.devtools.ksp.processing.CodeGenerator
-dontwarn com.google.devtools.ksp.processing.Dependencies
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mostafadevo.freegames.data.remote.cheapshark.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json

@Keep
data class CheaperStore(
@Json(name = "dealID")
val dealID: String?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mostafadevo.freegames.data.remote.cheapshark.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json

@Keep
data class CheapestPrice(
@Json(name = "date")
val date: Int?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mostafadevo.freegames.data.remote.cheapshark.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json

@Keep
data class DealDetailsDTO(
@Json(name = "cheaperStores")
val cheaperStores: List<CheaperStore>?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mostafadevo.freegames.data.remote.cheapshark.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json

@Keep
data class DealsDTOItem(
@Json(name = "dealID")
val dealID: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mostafadevo.freegames.data.remote.cheapshark.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json

@Keep
data class GameInfo(
@Json(name = "gameID")
val gameID: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package com.mostafadevo.freegames.data.remote.freetogame.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass


@Keep
@JsonClass(generateAdapter = true)
data class GameDTO(
@Json(name = "developer")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.mostafadevo.freegames.data.remote.freetogame.dto

import android.support.annotation.Keep
import com.squareup.moshi.Json

@Keep
data class GameDetailsDTO(
@Json(name = "description")
val description: String,
Expand Down Expand Up @@ -34,12 +36,16 @@ data class GameDetailsDTO(
@Json(name = "title")
val title: String
)

@Keep
data class Screenshot(
@Json(name = "id")
val id: Int,
@Json(name = "image")
val image: String
)

@Keep
data class MinimumSystemRequirements(
@Json(name = "graphics")
val graphics: String?,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.mostafadevo.freegames.data.remote.gamepower.dto

import android.support.annotation.Keep

@Keep
data class GiveawayDtoItem(
val description: String,
val end_date: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.mostafadevo.freegames.domain.model

import android.support.annotation.Keep
import androidx.compose.runtime.Stable

@Keep
@Stable
data class Game(
val id: Int,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.mostafadevo.freegames.domain.model

import android.support.annotation.Keep

@Keep
data class GameDetails(
val id: Int,
val title: String,
Expand All @@ -15,9 +18,13 @@ data class GameDetails(
val shortDescription: String,
val thumbnail: String
)

@Keep
data class Screenshot(
val image: String
)

@Keep
data class MinimumSystemRequirements(
val graphics: String? = null,
val memory: String? = null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.mostafadevo.freegames.domain.model

import android.support.annotation.Keep

@Keep
data class Giveaway(
val description: String,
val end_date: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.mostafadevo.freegames.domain.model

import android.support.annotation.Keep

@Keep
enum class ThemePreference {
LIGHT,
DARK,
Expand Down

0 comments on commit 6696733

Please sign in to comment.