From baf2cee7f3ee09b5987f97f051f1bd594fe66116 Mon Sep 17 00:00:00 2001 From: kl Date: Sun, 21 May 2023 02:30:22 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=B5-=D1=87=D1=82=D0=BE=20=D0=B8?= =?UTF-8?q?=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 2 + app/src/main/AndroidManifest.xml | 5 + app/src/main/java/com/example/game/Quiz.kt | 233 +++++++++--------- .../java/com/example/game/QuizQuestion.kt | 129 ++++++++++ app/src/main/res/values/strings.xml | 1 + 5 files changed, 247 insertions(+), 123 deletions(-) create mode 100644 app/src/main/java/com/example/game/QuizQuestion.kt diff --git a/app/build.gradle b/app/build.gradle index b3e64e0..526f966 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -74,6 +74,7 @@ dependencies { implementation 'com.google.firebase:firebase-database-ktx:20.2.1' implementation platform('androidx.compose:compose-bom:2022.10.00') implementation platform('androidx.compose:compose-bom:2022.10.00') + implementation platform('androidx.compose:compose-bom:2022.10.00') testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' @@ -81,6 +82,7 @@ dependencies { androidTestImplementation 'androidx.compose.ui:ui-test-junit4' androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00') androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00') + androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00') debugImplementation 'androidx.compose.ui:ui-tooling' debugImplementation 'androidx.compose.ui:ui-test-manifest' implementation 'com.airbnb.android:lottie:4.2.0' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 6832fbc..3b6ad50 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -16,6 +16,11 @@ android:supportsRtl="true" android:theme="@style/Theme.MyGame" tools:targetApi="31"> + = mutableListOf() +var ret: Int? = -1 class Quiz : AppCompatActivity() { private val GAME_ID = "3" @@ -46,8 +47,6 @@ class Quiz : AppCompatActivity() { //private var playerEmail: String ? = FirebaseAuth.getInstance().currentUser!!.email?.removeSuffix("@whatever.ru") private var playerEmail: String ? = "login" // !!! временно - private var enableQue: MutableList = mutableListOf() - override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) @@ -57,7 +56,7 @@ class Quiz : AppCompatActivity() { var castle1But = findViewById