File tree 5 files changed +20
-8
lines changed
src/main/java/com/troplo/privateuploader
5 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ android {
20
20
applicationId = " com.troplo.privateuploader"
21
21
minSdk = 28
22
22
targetSdk = 34
23
- versionCode = 9
24
- versionName = " 1.0.9 "
23
+ versionCode = 10
24
+ versionName = " 1.0.10 "
25
25
multiDexEnabled = true
26
26
buildConfigField(" String" , " SERVER_URL" , " \" https://privateuploader.com\" " )
27
27
buildConfigField(" String" , " BUILD_TIME" , " \" ${System .currentTimeMillis()} \" " )
@@ -78,7 +78,7 @@ android {
78
78
dependencies {
79
79
// Firebase
80
80
implementation(platform(" com.google.firebase:firebase-bom:32.1.1" ))
81
- implementation(" com.google.firebase:firebase-messaging-ktx:23.1.2 " )
81
+ implementation(" com.google.firebase:firebase-messaging-ktx:23.2.0 " )
82
82
implementation(" com.google.firebase:firebase-analytics-ktx:21.3.0" )
83
83
84
84
// TPU
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ data class State(
27
27
@Json(name = " inviteAFriend" )
28
28
val inviteAFriend : Boolean ,
29
29
@Json(name = " maintenance" )
30
- val maintenance : Boolean ,
30
+ val maintenance : Maintenance ,
31
31
@Json(name = " name" )
32
32
val name : String ,
33
33
@Json(name = " officialInstance" )
@@ -170,4 +170,15 @@ data class UploadGraph(
170
170
val `data`: List <Int >,
171
171
@Json(name = " labels" )
172
172
val labels : List <String >,
173
+ )
174
+
175
+ @JsonClass(generateAdapter = true )
176
+ @Keep
177
+ data class Maintenance (
178
+ @Json(name = " enabled" )
179
+ val enabled : Boolean ,
180
+ @Json(name = " message" )
181
+ val message : String ,
182
+ @Json(name = " statusPage" )
183
+ val statusPage : String ,
173
184
)
Original file line number Diff line number Diff line change @@ -115,6 +115,7 @@ fun ChatScreen(
115
115
val jumpToMessage = ChatStore .jumpToMessage.collectAsState()
116
116
val attachment = remember { mutableStateOf(false ) }
117
117
val replyId: MutableState <Int > = remember { mutableIntStateOf(0 ) }
118
+ val uploads = UploadStore .uploads
118
119
119
120
if (chatViewModel.loading.value && chatViewModel.messages.value == null ) {
120
121
Box (
@@ -158,7 +159,7 @@ fun ChatScreen(
158
159
.fillMaxWidth()
159
160
) {
160
161
161
- if (UploadStore . uploads.size > 0 ) {
162
+ if (uploads.size > 0 ) {
162
163
Card (
163
164
modifier = Modifier
164
165
.fillMaxWidth()
@@ -172,7 +173,7 @@ fun ChatScreen(
172
173
LazyRow (
173
174
modifier = Modifier .fillMaxSize()
174
175
) {
175
- UploadStore . uploads.forEach {
176
+ uploads.forEach {
176
177
item(
177
178
key = it.uri
178
179
) {
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- agp = " 8.2.0-alpha11 "
2
+ agp = " 8.2.0-alpha14 "
3
3
kotlin = " 1.8.10"
4
4
core-ktx = " 1.9.0"
5
5
junit = " 4.13.2"
Original file line number Diff line number Diff line change 1
1
# Fri Jun 23 17:55:51 AEST 2023
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.1 -bin.zip
4
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.2 -bin.zip
5
5
zipStoreBase =GRADLE_USER_HOME
6
6
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments