build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. plugins {
  2. id 'org.tboox.gradle-xmake-plugin' version '1.2.2'
  3. }
  4. apply plugin: 'com.android.library'
  5. //apply plugin: "org.tboox.gradle-xmake-plugin"
  6. android {
  7. compileSdkVersion 29
  8. buildToolsVersion "30.0.2"
  9. defaultConfig {
  10. minSdkVersion 15
  11. targetSdkVersion 29
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. consumerProguardFiles 'consumer-rules.pro'
  16. ndk {
  17. abiFilters "armeabi-v7a", "arm64-v8a"
  18. }
  19. externalNativeBuild {
  20. /*
  21. cmake {
  22. cppFlags "-DTEST"
  23. abiFilters "armeabi-v7a", "arm64-v8a"
  24. }*/
  25. /*
  26. xmake {
  27. cppFlags "-DTEST", "-DTEST2"
  28. abiFilters "armeabi-v7a", "arm64-v8a"
  29. }*/
  30. }
  31. }
  32. externalNativeBuild {
  33. /*
  34. ndkBuild {
  35. path "jni/Android.mk"
  36. }
  37. */
  38. /*
  39. cmake {
  40. version "3.17.3"
  41. path "jni/CMakeLists.txt"
  42. }*/
  43. /*
  44. xmake {
  45. logLevel "verbose"
  46. path "jni/xmake.lua"
  47. buildMode "debug"
  48. //arguments "--test=y"
  49. //program /usr/local/bin/xmake
  50. stl "c++_shared"
  51. //stdcxx false
  52. //ndk "/Users/ruki/files/android-ndk-r20b/"
  53. //sdkver 21
  54. }*/
  55. }
  56. buildTypes {
  57. release {
  58. minifyEnabled false
  59. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  60. }
  61. }
  62. }
  63. dependencies {
  64. implementation fileTree(dir: 'libs', include: ['*.jar'])
  65. implementation 'androidx.appcompat:appcompat:1.0.2'
  66. testImplementation 'junit:junit:4.12'
  67. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  68. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  69. }