Refactor the Authentication Screen
introduction of new theming / navigation / animation.
This commit is contained in:
parent
9074b78046
commit
2a69b75d9d
64 changed files with 1809 additions and 395 deletions
116
app/build.gradle
116
app/build.gradle
|
|
@ -2,7 +2,7 @@ plugins {
|
|||
id 'com.android.application'
|
||||
id 'kotlin-android'
|
||||
id 'kotlin-kapt'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
id 'dagger.hilt.android.plugin'
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
@ -20,16 +20,20 @@ android {
|
|||
vectorDrawables {
|
||||
useSupportLibrary true
|
||||
}
|
||||
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
arguments += [
|
||||
"room.schemaLocation" : "$projectDir/schemas".toString(),
|
||||
"room.incremental" : "true",
|
||||
"room.expandProjection": "true"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signingConfigs {
|
||||
debug {
|
||||
storeFile file(project.properties["PIXELIZED_DEBUG_STORE_FILE"])
|
||||
storePassword project.properties["PIXELIZED_DEBUG_STORE_PASSWORD"]
|
||||
keyAlias project.properties["PIXELIZED_DEBUG_KEY_ALIAS"]
|
||||
keyPassword project.properties["PIXELIZED_DEBUG_KEY_PASSWORD"]
|
||||
}
|
||||
release {
|
||||
pixelized {
|
||||
storeFile file(project.properties["PIXELIZED_RELEASE_STORE_FILE"])
|
||||
storePassword project.properties["PIXELIZED_RELEASE_STORE_PASSWORD"]
|
||||
keyAlias project.properties["PIXELIZED_RELEASE_KEY_ALIAS"]
|
||||
|
|
@ -39,65 +43,81 @@ android {
|
|||
|
||||
buildTypes {
|
||||
debug {
|
||||
signingConfig signingConfigs.release
|
||||
signingConfig signingConfigs.pixelized
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
release {
|
||||
signingConfig signingConfigs.release
|
||||
minifyEnabled false
|
||||
signingConfig signingConfigs.pixelized
|
||||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose true
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
kotlinOptions {
|
||||
jvmTarget = "1.8"
|
||||
jvmTarget = '1.8'
|
||||
useIR = true
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
compose true
|
||||
}
|
||||
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion '1.0.0'
|
||||
kotlinCompilerExtensionVersion '1.1.0'
|
||||
}
|
||||
|
||||
packagingOptions {
|
||||
resources {
|
||||
excludes += '/META-INF/{AL2.0,LGPL2.1}'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Android core
|
||||
implementation 'androidx.core:core-ktx:1.7.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.4.0'
|
||||
implementation 'com.google.android.material:material:1.4.0'
|
||||
implementation 'androidx.appcompat:appcompat:1.4.1'
|
||||
implementation 'com.google.android.material:material:1.5.0'
|
||||
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
|
||||
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.4.1"
|
||||
implementation 'androidx.activity:activity-compose:1.4.0'
|
||||
|
||||
// Android Compose
|
||||
implementation "androidx.compose.ui:ui:1.2.0-alpha03"
|
||||
implementation "androidx.compose.material:material:1.1.1"
|
||||
implementation "androidx.compose.runtime:runtime-livedata:1.1.1"
|
||||
implementation "androidx.compose.ui:ui-tooling-preview:1.1.1"
|
||||
debugImplementation "androidx.compose.ui:ui-tooling:1.1.1"
|
||||
|
||||
// Android compose
|
||||
implementation "androidx.compose.ui:ui:1.0.5"
|
||||
// Tooling support (Previews, etc.)
|
||||
implementation "androidx.compose.ui:ui-tooling:1.0.5"
|
||||
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
|
||||
implementation "androidx.compose.foundation:foundation:1.0.5"
|
||||
// Material Design
|
||||
implementation "androidx.compose.material:material:1.0.5"
|
||||
// Material design icons
|
||||
implementation "androidx.compose.material:material-icons-core:1.0.5"
|
||||
implementation "androidx.compose.material:material-icons-extended:1.0.5"
|
||||
// Integration with activities
|
||||
implementation "androidx.activity:activity-compose:1.4.0"
|
||||
// Integration with ViewModels
|
||||
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0"
|
||||
// Integration with observables
|
||||
implementation "androidx.compose.runtime:runtime-livedata:1.0.5"
|
||||
// ConstraintLayout
|
||||
implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-rc02"
|
||||
implementation "androidx.compose.material:material-icons-core:1.1.1"
|
||||
implementation "androidx.compose.material:material-icons-extended:1.1.1"
|
||||
|
||||
// Injection
|
||||
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'
|
||||
implementation "com.google.dagger:hilt-android:2.40.5"
|
||||
kapt "com.google.dagger:hilt-compiler:2.40.5"
|
||||
|
||||
// Accompanist
|
||||
implementation "com.google.accompanist:accompanist-systemuicontroller:0.24.3-alpha"
|
||||
implementation "com.google.accompanist:accompanist-insets:0.24.3-alpha"
|
||||
|
||||
// Navigation
|
||||
implementation "androidx.navigation:navigation-compose:2.4.2"
|
||||
|
||||
// Splash Screen support prior to Android 12
|
||||
implementation "androidx.core:core-splashscreen:1.0.0-beta02"
|
||||
|
||||
// Google sign in.
|
||||
implementation "com.google.android.gms:play-services-auth:19.2.0"
|
||||
|
||||
// Paging
|
||||
implementation "androidx.paging:paging-compose:1.0.0-alpha14"
|
||||
implementation "com.google.android.gms:play-services-auth:20.1.0"
|
||||
|
||||
// RetroFit & Gson for webservice call
|
||||
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
||||
|
|
@ -108,18 +128,16 @@ dependencies {
|
|||
implementation "com.squareup.okhttp3:logging-interceptor:4.8.1"
|
||||
|
||||
// Room
|
||||
implementation "androidx.room:room-runtime:2.3.0"
|
||||
implementation "androidx.room:room-ktx:2.3.0"
|
||||
kapt "androidx.room:room-compiler:2.3.0"
|
||||
|
||||
// Test
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.0.5"
|
||||
implementation "androidx.room:room-runtime:2.4.2"
|
||||
implementation "androidx.room:room-ktx:2.4.2"
|
||||
kapt "androidx.room:room-compiler:2.4.2"
|
||||
implementation "androidx.paging:paging-compose:1.0.0-alpha14"
|
||||
}
|
||||
|
||||
static def generateVersionCode() {
|
||||
def result = "git rev-list HEAD --count".execute().text.trim() //unix
|
||||
if (result.empty) result = "PowerShell -Command git rev-list HEAD --count".execute().text.trim() //windows
|
||||
if (result.empty) result = "PowerShell -Command git rev-list HEAD --count".execute().text.trim()
|
||||
//windows
|
||||
if (result.empty) throw new RuntimeException("Could not generate versioncode on this platform? Cmd output: ${result.text}")
|
||||
return result.toInteger()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue