Skip to content

Commit 53b082b

Browse files
Project structure modified
Project structure modified
2 parents aeae99f + 19baa86 commit 53b082b

34 files changed

+132
-129
lines changed

app/src/main/java/com/github/code/gambit/network/FileUploadWorker.kt renamed to app/src/main/java/com/github/code/gambit/backgroundtask/FileUploadWorker.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network
1+
package com.github.code.gambit.backgroundtask
22

33
import android.app.NotificationChannel
44
import android.app.NotificationManager
@@ -13,12 +13,12 @@ import androidx.work.WorkerParameters
1313
import androidx.work.workDataOf
1414
import com.github.code.gambit.R
1515
import com.github.code.gambit.data.entity.network.FileNetworkEntity
16-
import com.github.code.gambit.network.api.ApiService
17-
import com.github.code.gambit.network.api.file.FileService
18-
import com.github.code.gambit.network.api.file.FileServiceImpl
16+
import com.github.code.gambit.data.remote.services.ApiService
17+
import com.github.code.gambit.data.remote.services.file.FileService
18+
import com.github.code.gambit.data.remote.services.file.FileServiceImpl
1919
import com.github.code.gambit.ui.activity.main.MainActivity
2020
import com.github.code.gambit.utility.AppConstant
21-
import com.github.code.gambit.utility.UserManager
21+
import com.github.code.gambit.utility.sharedpreference.UserManager
2222
import com.google.gson.GsonBuilder
2323
import io.ipfs.kotlin.defaults.InfuraIPFS
2424
import retrofit2.Retrofit

app/src/main/java/com/github/code/gambit/data/mapper/network/FileNetworkMapper.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package com.github.code.gambit.data.mapper.network
33
import com.github.code.gambit.data.EntityMapper
44
import com.github.code.gambit.data.entity.network.FileNetworkEntity
55
import com.github.code.gambit.data.model.File
6-
import com.github.code.gambit.utility.fromBase64
7-
import com.github.code.gambit.utility.toBase64
6+
import com.github.code.gambit.utility.extention.fromBase64
7+
import com.github.code.gambit.utility.extention.toBase64
88
import javax.inject.Inject
99

1010
class FileNetworkMapper

app/src/main/java/com/github/code/gambit/network/api/NetworkDataSource.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/NetworkDataSource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network.api
1+
package com.github.code.gambit.data.remote
22

33
import com.github.code.gambit.data.model.File
44
import com.github.code.gambit.data.model.Url

app/src/main/java/com/github/code/gambit/network/api/NetworkDataSourceImpl.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/NetworkDataSourceImpl.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
package com.github.code.gambit.network.api
1+
package com.github.code.gambit.data.remote
22

33
import com.github.code.gambit.data.mapper.network.FileNetworkMapper
44
import com.github.code.gambit.data.mapper.network.UrlNetworkMapper
55
import com.github.code.gambit.data.mapper.network.UserNetworkMapper
66
import com.github.code.gambit.data.model.File
77
import com.github.code.gambit.data.model.Url
88
import com.github.code.gambit.data.model.User
9-
import com.github.code.gambit.network.api.file.FileService
10-
import com.github.code.gambit.network.api.url.UrlService
11-
import com.github.code.gambit.network.api.user.UserService
9+
import com.github.code.gambit.data.remote.services.file.FileService
10+
import com.github.code.gambit.data.remote.services.url.UrlService
11+
import com.github.code.gambit.data.remote.services.user.UserService
1212

1313
class NetworkDataSourceImpl(
1414
val fileService: FileService,

app/src/main/java/com/github/code/gambit/network/api/ListResponse.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/responses/ListResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network.api
1+
package com.github.code.gambit.data.remote.responses
22

33
import com.google.gson.annotations.Expose
44
import com.google.gson.annotations.SerializedName

app/src/main/java/com/github/code/gambit/network/api/Response.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/responses/Response.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network.api
1+
package com.github.code.gambit.data.remote.responses
22

33
import com.google.gson.annotations.Expose
44
import com.google.gson.annotations.SerializedName

app/src/main/java/com/github/code/gambit/network/api/ApiService.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/services/ApiService.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
package com.github.code.gambit.network.api
1+
package com.github.code.gambit.data.remote.services
22

33
import com.github.code.gambit.data.entity.network.FileNetworkEntity
44
import com.github.code.gambit.data.entity.network.UrlNetworkEntity
55
import com.github.code.gambit.data.entity.network.UserNetworkEntity
6+
import com.github.code.gambit.data.remote.responses.ListResponse
7+
import com.github.code.gambit.data.remote.responses.Response
68
import com.github.code.gambit.utility.AppConstant
79
import retrofit2.http.Body
810
import retrofit2.http.DELETE

app/src/main/java/com/github/code/gambit/network/auth/AuthService.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/services/auth/AuthService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network.auth
1+
package com.github.code.gambit.data.remote.services.auth
22

33
import com.amplifyframework.auth.AuthUserAttribute
44
import com.amplifyframework.auth.cognito.AWSCognitoAuthSession

app/src/main/java/com/github/code/gambit/network/auth/AuthServiceImpl.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/services/auth/AuthServiceImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network.auth
1+
package com.github.code.gambit.data.remote.services.auth
22

33
import com.amplifyframework.auth.AuthException
44
import com.amplifyframework.auth.AuthUserAttribute
@@ -8,7 +8,7 @@ import com.amplifyframework.auth.options.AuthSignUpOptions
88
import com.amplifyframework.kotlin.core.Amplify
99
import com.github.code.gambit.helper.auth.AuthData
1010
import com.github.code.gambit.helper.auth.ServiceResult
11-
import com.github.code.gambit.utility.defaultBuilder
11+
import com.github.code.gambit.utility.extention.defaultBuilder
1212

1313
class AuthServiceImpl : AuthService {
1414

app/src/main/java/com/github/code/gambit/network/api/file/FileService.kt renamed to app/src/main/java/com/github/code/gambit/data/remote/services/file/FileService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.github.code.gambit.network.api.file
1+
package com.github.code.gambit.data.remote.services.file
22

33
import com.github.code.gambit.data.entity.network.FileNetworkEntity
44

0 commit comments

Comments
 (0)