build.gradle 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // The Android Gradle Plugin builds the native code with the Android NDK.
  2. group 'com.example.spine_flutter'
  3. version '1.0'
  4. buildscript {
  5. repositories {
  6. google()
  7. mavenCentral()
  8. }
  9. dependencies {
  10. // The Android Gradle Plugin knows how to build native code with the NDK.
  11. classpath 'com.android.tools.build:gradle:7.1.2'
  12. }
  13. }
  14. rootProject.allprojects {
  15. repositories {
  16. google()
  17. mavenCentral()
  18. }
  19. }
  20. apply plugin: 'com.android.library'
  21. android {
  22. namespace "com.esotericsoftware.spine.flutter"
  23. // Bumping the plugin compileSdkVersion requires all clients of this plugin
  24. // to bump the version in their app.
  25. compileSdkVersion 31
  26. // Bumping the plugin ndkVersion requires all clients of this plugin to bump
  27. // the version in their app and to download a newer version of the NDK.
  28. ndkVersion "21.1.6352462"
  29. // Invoke the shared CMake build with the Android Gradle Plugin.
  30. externalNativeBuild {
  31. cmake {
  32. path "../src/CMakeLists.txt"
  33. // The default CMake version for the Android Gradle Plugin is 3.10.2.
  34. // https://developer.android.com/studio/projects/install-ndk#vanilla_cmake
  35. //
  36. // The Flutter tooling requires that developers have CMake 3.10 or later
  37. // installed. You should not increase this version, as doing so will cause
  38. // the plugin to fail to compile for some customers of the plugin.
  39. // version "3.10.2"
  40. }
  41. }
  42. compileOptions {
  43. sourceCompatibility JavaVersion.VERSION_1_8
  44. targetCompatibility JavaVersion.VERSION_1_8
  45. }
  46. defaultConfig {
  47. minSdkVersion 16
  48. }
  49. }