Guest User

Duobangongnstack-build

a guest
Oct 28th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. apply plugin: 'com.android.library'
  2.  
  3. buildscript {
  4. repositories {
  5. google()
  6. jcenter()
  7. mavenCentral()
  8.  
  9. }
  10. dependencies {
  11. classpath 'com.android.tools.build:gradle:3.1.2'
  12. }
  13.  
  14. System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true'
  15. }
  16.  
  17. dependencies {
  18. implementation fileTree(include: '*.jar', dir: 'libs')
  19. }
  20.  
  21.  
  22. android {
  23. compileSdkVersion 25
  24. buildToolsVersion "27.0.3"
  25.  
  26. defaultConfig {
  27. minSdkVersion 7
  28. targetSdkVersion 11
  29. multiDexEnabled true
  30.  
  31. /*externalNativeBuild {
  32. cmake {
  33. cFlags "-D_EXAMPLE_C_FLAG1", "-D_EXAMPLE_C_FLAG2"
  34. cppFlags "-D__STDC_FORMAT_MACROS"
  35. }
  36. }
  37. ndk {
  38. abiFilters 'x86', 'armeabi', 'armeabi-v7a'
  39. }*/
  40. }
  41. // lintOptions {
  42. // checkReleaseBuilds false
  43. // disable 'MissingTranslation'
  44. // abortOnError false
  45. // }
  46.  
  47.  
  48. /*externalNativeBuild {
  49. cmake {
  50. path "../../doubango/CMakeLists.txt"
  51. }
  52. }*/
  53.  
  54. sourceSets {
  55. main {
  56. manifest.srcFile 'AndroidManifest.xml'
  57. java.srcDirs = ['src']
  58. resources.srcDirs = ['src']
  59. aidl.srcDirs = ['src']
  60. renderscript.srcDirs = ['src']
  61. res.srcDirs = ['res']
  62. assets.srcDirs = ['assets']
  63. jniLibs.srcDirs = ['libs']
  64. }
  65.  
  66. // Move the tests to tests/java, tests/res, etc...
  67. // instrumentTest.setRoot('tests')
  68.  
  69. // Move the build types to build-types/<type>
  70. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  71. // This moves them out of them default location under src/<type>/... which would
  72. // conflict with src/ being used by the main source set.
  73. // Adding new build types or product flavors should be accompanied
  74. // by a similar customization.
  75. debug.setRoot('build-types/debug')
  76. release.setRoot('build-types/release')
  77. }
  78. }
  79. repositories {
  80. google()
  81. }
Add Comment
Please, Sign In to add comment