Modern-Apps.git
Publicgit clone https://git.maproj.org/Modern-Apps.gitModern-Apps.git / email / build.gradle.kts
build.gradle.kts48 lines · 1.4 KiBRaw
| 1 | plugins { |
| 2 | id("common-conventions-app") |
| 3 | id("common-conventions-preview-metadata") |
| 4 | } |
| 5 | |
| 6 | launcherIcon { |
| 7 | symbol = "mail" |
| 8 | } |
| 9 | |
| 10 | android { |
| 11 | namespace = "com.vayunmathur.email" |
| 12 | defaultConfig { |
| 13 | applicationId = "com.vayunmathur.email" |
| 14 | |
| 15 | // Outlook OAuth — own Azure public client (PKCE, no secret) |
| 16 | val outlookClientId = (project.findProperty("EMAIL_OUTLOOK_CLIENT_ID") |
| 17 | ?: "4ee55fe9-12c1-4392-82e6-6c7a2a7954c8").toString() |
| 18 | |
| 19 | buildConfigField("String", "OUTLOOK_OAUTH_CLIENT_ID", "\"$outlookClientId\"") |
| 20 | buildConfigField("String", "OAUTH_REDIRECT_URI", "\"com.vayunmathur.email://oauth\"") |
| 21 | buildConfigField("String", "OUTLOOK_REDIRECT_URI", "\"com.vayunmathur.email://oauth\"") |
| 22 | } |
| 23 | |
| 24 | buildFeatures { |
| 25 | buildConfig = true |
| 26 | } |
| 27 | |
| 28 | packaging { |
| 29 | resources { |
| 30 | excludes += "/META-INF/{AL2.0,LGPL2.1}" |
| 31 | excludes += "META-INF/NOTICE.md" |
| 32 | excludes += "META-INF/LICENSE.md" |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | dependencies { |
| 38 | implementation(libs.androidx.browser) |
| 39 | implementation(libs.kotlinx.serialization.json) |
| 40 | implementRoom(libs) |
| 41 | implementation(project(":library:room")) |
| 42 | implementation(libs.androidx.work.runtime.ktx) |
| 43 | implementation(libs.androidx.glance) |
| 44 | implementation(libs.androidx.glance.appwidget) |
| 45 | implementation(libs.androidx.glance.material3) |
| 46 | implementation(project(":library:widgets")) |
| 47 | implementation(project(":library:network")) |
| 48 | } |