mirror of
https://github.com/flutter/samples.git
synced 2026-04-24 07:51:04 +00:00
Graduating add-to-app (#180)
This commit is contained in:
58
add_to_app/android_using_prebuilt_module/app/build.gradle
Normal file
58
add_to_app/android_using_prebuilt_module/app/build.gradle
Normal file
@@ -0,0 +1,58 @@
|
||||
apply plugin: 'com.android.application'
|
||||
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
android {
|
||||
compileSdkVersion 28
|
||||
buildToolsVersion "29.0.2"
|
||||
defaultConfig {
|
||||
applicationId "dev.flutter.example.androidusingprebuiltmodule"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 28
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility 1.8
|
||||
targetCompatibility 1.8
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
// This maven repo is created when you run `flutter build aar`. It contains compiled code
|
||||
// and resources for flutter_module itself.
|
||||
url '../../flutter_module/build/host/outputs/repo'
|
||||
}
|
||||
maven {
|
||||
// This maven repo contains artifacts for Flutter's Android embedding.
|
||||
url 'http://download.flutter.io'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
releaseImplementation ('dev.flutter.example.flutter_module:flutter_release:1.0@aar') {
|
||||
transitive = true
|
||||
}
|
||||
|
||||
debugImplementation ('dev.flutter.example.flutter_module:flutter_debug:1.0@aar') {
|
||||
transitive = true
|
||||
}
|
||||
|
||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
implementation 'androidx.appcompat:appcompat:1.1.0'
|
||||
implementation 'androidx.core:core-ktx:1.1.0'
|
||||
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
||||
testImplementation 'junit:junit:4.12'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||||
}
|
||||
Reference in New Issue
Block a user