build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. // Bumping the plugin compileSdkVersion requires all clients of this plugin
  23. // to bump the version in their app.
  24. compileSdkVersion 31
  25. // Bumping the plugin ndkVersion requires all clients of this plugin to bump
  26. // the version in their app and to download a newer version of the NDK.
  27. ndkVersion "21.1.6352462"
  28. // Invoke the shared CMake build with the Android Gradle Plugin.
  29. externalNativeBuild {
  30. cmake {
  31. path "../src/CMakeLists.txt"
  32. // The default CMake version for the Android Gradle Plugin is 3.10.2.
  33. // https://developer.android.com/studio/projects/install-ndk#vanilla_cmake
  34. //
  35. // The Flutter tooling requires that developers have CMake 3.10 or later
  36. // installed. You should not increase this version, as doing so will cause
  37. // the plugin to fail to compile for some customers of the plugin.
  38. // version "3.10.2"
  39. }
  40. }
  41. compileOptions {
  42. sourceCompatibility JavaVersion.VERSION_1_8
  43. targetCompatibility JavaVersion.VERSION_1_8
  44. }
  45. defaultConfig {
  46. minSdkVersion 16
  47. }
  48. }