mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Closes https://github.com/flutter/flutter/issues/141043. Nothing in this change should impact: - End-user apps - Testing and/or CI I've added what I believe is the minimum required to get a reasonable Android Studio experience with the `shell/platform/android` folder. More could definitely be done, but this unblocks me (i.e. https://github.com/flutter/flutter/issues/139702) and adds instructions for the next person. _I'm open to suggestions on how to improve this further, but unless they are critical, I'd rather land this as-is and review your PRs tweaking my documentation further (I have limited time to work exclusively on docs)._ --- Example after this: 
37 lines
637 B
Groovy
37 lines
637 B
Groovy
// This file only exists to provide IDE support to Android Studio.
|
|
//
|
|
// See ./README.md for details.
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "com.android.tools.build:gradle:7.0.4"
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
apply plugin: "com.android.library"
|
|
|
|
android {
|
|
compileSdk 34
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java.srcDirs './'
|
|
java.include './io.flutter/**'
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'androidx.annotation:annotation-jvm:1.7.1'
|
|
}
|