-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from Nenoeldeeb/main
Update the library and its dependencies & added SwitchState handler.
- Loading branch information
Showing
22 changed files
with
580 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
plugins { | ||
alias(libs.plugins.android.library) apply false | ||
alias(libs.plugins.android.application) apply false | ||
alias(libs.plugins.jetbrains.kotlin.android) apply false | ||
alias(libs.plugins.jetbrains.dokka) apply false | ||
alias(libs.plugins.jetbrains.compose.compiler) apply false | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
plugins { | ||
alias(libs.plugins.android.application) | ||
alias(libs.plugins.jetbrains.kotlin.android) | ||
alias(libs.plugins.jetbrains.compose.compiler) | ||
} | ||
|
||
android { | ||
compileSdk = libs.versions.compileSdk.get().toInt() | ||
|
||
defaultConfig { | ||
applicationId = "com.dsc.formbuilder" | ||
minSdk = libs.versions.minSdk.get().toInt() | ||
targetSdk = libs.versions.targetSdk.get().toInt() | ||
versionCode = libs.versions.appVersionCode.get().toInt() | ||
versionName = libs.versions.appVersionName.get() | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility(libs.versions.jvmTarget.get()) | ||
targetCompatibility(libs.versions.jvmTarget.get()) | ||
isCoreLibraryDesugaringEnabled = true | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(libs.versions.jvmTarget.get().toInt()) | ||
} | ||
buildFeatures { | ||
compose = true | ||
} | ||
packaging { | ||
resources { | ||
excludes += "/META-INF/{AL2.0,LGPL2.1}" | ||
} | ||
} | ||
namespace = "com.dsc.formbuilder" | ||
} | ||
|
||
dependencies { | ||
|
||
implementation(project(":form-builder")) | ||
// For using modern java 8 classes with older versions of android | ||
coreLibraryDesugaring(libs.core.java8) | ||
|
||
implementation(platform(libs.androidx.compose.bom)) | ||
implementation(libs.androidx.core.ktx) | ||
implementation(libs.androidx.appcompat) | ||
implementation(libs.androidx.activity.compose) | ||
implementation(libs.android.material) | ||
implementation(libs.androidx.lifecycle.runtime) | ||
|
||
implementation(libs.androidx.compose.ui) | ||
implementation(libs.androidx.compose.material) | ||
implementation(libs.androidx.compose.animation) | ||
implementation(libs.androidx.compose.ui.tooling.preview) | ||
|
||
debugImplementation(libs.androidx.compose.ui.tooling) | ||
|
||
implementation(libs.androidx.compose.material3) | ||
implementation(libs.androidx.compose.material3.window.size) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.