Comments (4)
Actually I realized it's the same in the KaMPKit.
The difference is that they use build.gradle.kts in both
from bikeshare.
in case you are interested, I just setup my /app/build.gradle.kts
which works with Compose
===
plugins {
id("com.android.application")
kotlin("android")
kotlin("android.extensions")
}
android {
compileSdkVersion(Versions.compile_sdk)
buildToolsVersion = Versions.buildToolsVersion
defaultConfig {
applicationId = "my.app"
minSdkVersion(Versions.min_sdk)
targetSdkVersion(Versions.target_sdk)
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
packagingOptions {
exclude("META-INF/*.kotlin_module")
}
buildTypes {
getByName("release") {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
lintOptions {
isWarningsAsErrors = true
isAbortOnError = true
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerVersion = Versions.kotlin
kotlinCompilerExtensionVersion = Versions.compose
}
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:${Versions.kotlin}")
implementation(project(":common"))
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("androidx.core:core-ktx:1.3.1")
implementation("com.google.android.material:material:1.2.0")
implementation("androidx.compose.ui:ui:${Versions.compose}")
implementation("androidx.compose.ui:ui-graphics:${Versions.compose}")
implementation("androidx.ui:ui-tooling:${Versions.compose}")
implementation("androidx.compose.foundation:foundation-layout:${Versions.compose}")
implementation("androidx.compose.material:material:${Versions.compose}")
}
from bikeshare.
thanks @dbaroncelli .....I had meant to update that one as well (to be .kts file) but never got a chance.....will update this weekend.
from bikeshare.
migrated to build.gradle.kts
from bikeshare.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bikeshare.