Matan Lurey f0ed60a2a5 Make shell/platform/android IDE-friendly, and add documentation (flutter/engine#49612)
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:


![image](https://github.com/flutter/engine/assets/168174/97dfd46b-b617-4bb5-9144-0802d88e2864)
2024-01-09 14:01:04 -08:00

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'
}