@@ -3,6 +3,7 @@ plugins {
33 alias(libs. plugins. kotlin. android)
44 alias(libs. plugins. google. services)
55 alias(libs. plugins. firebase. crashlytics)
6+ alias(libs. plugins. ktlint)
67 // Removed problematic compose compiler alias for Kotlin 1.9.x compatibility
78 id ' jacoco'
89 id ' kotlin-parcelize'
@@ -11,24 +12,24 @@ plugins {
1112}
1213
1314android {
14- namespace ' com.pennapps.labs.pennmobile'
15+ namespace = ' com.pennapps.labs.pennmobile'
1516
1617 buildFeatures {
1718 buildConfig = true
18- viewBinding true
19- compose true
19+ viewBinding = true
20+ compose = true
2021 }
2122
2223 buildTypes {
2324 debug {
2425 matchingFallbacks = [' qa' , ' release' ]
25- enableUnitTestCoverage true
26- enableAndroidTestCoverage true
26+ enableUnitTestCoverage = true
27+ enableAndroidTestCoverage = true
2728 }
2829 release {}
2930 }
3031
31- compileSdk 35
32+ compileSdk = 35
3233
3334 composeOptions {
3435 // Matches Kotlin 1.9.24 defined in your libs.versions.toml
@@ -43,7 +44,7 @@ android {
4344 minSdkVersion 26
4445 targetSdkVersion 35
4546 vectorDrawables. useSupportLibrary = true
46- multiDexEnabled true
47+ multiDexEnabled = true
4748 buildConfigField (" String" , " PLATFORM_REDIRECT_URI" , getPlatformRedirectUri())
4849 buildConfigField (" String" , " PLATFORM_CLIENT_ID" , getPlatformClientID())
4950 }
@@ -56,6 +57,20 @@ android {
5657 }
5758}
5859
60+ ktlint {
61+ version. set(" 1.8.0" )
62+ android. set(true )
63+ ignoreFailures. set(false )
64+ verbose. set(true )
65+ outputToConsole. set(true )
66+ coloredOutput. set(true )
67+
68+ filter {
69+ exclude(" **/build/**" )
70+ exclude(" **/generated/**" )
71+ }
72+ }
73+
5974dependencies {
6075 implementation fileTree(include : [' *.jar' ], dir : ' libs' )
6176// If you want the foundation layout, use the bundle or the specific activity compose you have defined
@@ -64,6 +79,8 @@ dependencies {
6479 implementation libs. androidx. compose. ui. tooling. preview
6580// implementation libs.androidx.foundation.layout
6681
82+ ktlintRuleset libs. ktlint
83+
6784 androidTestImplementation libs. androidx. espresso. core
6885 androidTestImplementation libs. androidx. junit
6986 androidTestImplementation libs. kaspresso
0 commit comments