Skip to content

Commit 71f5bd6

Browse files
committed
新增短信/Cookies登录
1 parent 87aaaaa commit 71f5bd6

File tree

6 files changed

+436
-2
lines changed

6 files changed

+436
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,18 @@
141141
android:name="android.support.FILE_PROVIDER_PATHS"
142142
android:resource="@xml/provider_paths" />
143143
</provider>
144+
144145
<activity
145146
android:name=".mobile.activities.VideoPlayerActivity"
146147
android:configChanges="orientation|screenSize"
147148
android:exported="true"
148149
android:label="@string/title_mobile_activity_video_player"
149150
android:theme="@style/Theme.BVMobile" />
151+
<activity
152+
android:name=".mobile.activities.LoginActivity"
153+
android:exported="false"
154+
android:label="@string/title_mobile_activity_login"
155+
android:theme="@style/Theme.BVMobile" />
150156
</application>
151157

152158
</manifest>

app/src/main/kotlin/dev/aaa1115910/bv/component/settings/CookiesDialog.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fun CookiesDialog(
146146
}
147147

148148
@Serializable
149-
private data class CookiesData(
149+
data class CookiesData(
150150
@SerialName("DedeUserID")
151151
val uid: Long,
152152
@SerialName("DedeUserID__ckMd5")
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package dev.aaa1115910.bv.mobile.activities
2+
3+
import android.os.Bundle
4+
import androidx.activity.ComponentActivity
5+
import androidx.activity.compose.setContent
6+
import dev.aaa1115910.bv.mobile.screen.LoginScreen
7+
import dev.aaa1115910.bv.mobile.theme.BVMobileTheme
8+
9+
class LoginActivity : ComponentActivity() {
10+
override fun onCreate(savedInstanceState: Bundle?) {
11+
super.onCreate(savedInstanceState)
12+
setContent {
13+
BVMobileTheme {
14+
LoginScreen()
15+
}
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)