Какое-то шевеление

This commit is contained in:
Пытков Роман
2024-09-21 19:12:06 +03:00
parent 1f0001d2ed
commit f9cbec0c80
11 changed files with 72 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,37 @@
{
"version": 3,
"artifactType": {
"type": "APK",
"kind": "Directory"
},
"applicationId": "ru.freedominc.wallenc",
"variantName": "release",
"elements": [
{
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 1,
"versionName": "1.0",
"outputFile": "app-release.apk"
}
],
"elementType": "File",
"baselineProfiles": [
{
"minApi": 28,
"maxApi": 30,
"baselineProfiles": [
"baselineProfiles/1/app-release.dm"
]
},
{
"minApi": 31,
"maxApi": 2147483647,
"baselineProfiles": [
"baselineProfiles/0/app-release.dm"
]
}
],
"minSdkVersionForDexing": 24
}

View File

@@ -8,12 +8,13 @@
android:fullBackupContent="@xml/backup_rules" android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher" android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" android:label="@string/app_name"
android:name=".WallencApplication"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.Wallenc" android:theme="@style/Theme.Wallenc"
tools:targetApi="31"> tools:targetApi="31">
<activity <activity
android:name=".ui.MainActivity" android:name=".MainActivity"
android:exported="true" android:exported="true"
android:theme="@style/Theme.Wallenc"> android:theme="@style/Theme.Wallenc">
<intent-filter> <intent-filter>

View File

@@ -1,4 +1,4 @@
package ru.freedominc.wallenc.ui package ru.freedominc.wallenc
import android.os.Bundle import android.os.Bundle
import android.widget.Toast import android.widget.Toast
@@ -23,8 +23,10 @@ import com.yandex.authsdk.YandexAuthOptions
import com.yandex.authsdk.YandexAuthResult import com.yandex.authsdk.YandexAuthResult
import com.yandex.authsdk.YandexAuthSdk import com.yandex.authsdk.YandexAuthSdk
import com.yandex.authsdk.internal.strategy.LoginType import com.yandex.authsdk.internal.strategy.LoginType
import dagger.hilt.android.AndroidEntryPoint
import ru.freedominc.wallenc.ui.theme.WallencTheme import ru.freedominc.wallenc.ui.theme.WallencTheme
@AndroidEntryPoint
class MainActivity : ComponentActivity() { class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
@@ -39,7 +41,6 @@ class MainActivity : ComponentActivity() {
WallencTheme { WallencTheme {
Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding ->
Greeting(modifier = Modifier.padding(innerPadding)) { Greeting(modifier = Modifier.padding(innerPadding)) {
launcher.launch(loginOptions) launcher.launch(loginOptions)
} }
} }

View File

@@ -0,0 +1,9 @@
package ru.freedominc.wallenc
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class WallencApplication : Application() {
}

View File

@@ -0,0 +1,8 @@
package ru.freedominc.wallenc.ui.screens.main
import androidx.compose.runtime.Composable
@Composable
fun MainScreen(viewModel: MainViewModel) {
}

View File

@@ -0,0 +1,3 @@
package ru.freedominc.wallenc.ui.screens.main
data class MainScreenState(val value: Int)

View File

@@ -0,0 +1,9 @@
package ru.freedominc.wallenc.ui.screens.main
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
@HiltViewModel
class MainViewModel : ViewModel() {
}