build.gradle 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. jcenter()
  5. google()
  6. }
  7. dependencies {
  8. classpath 'com.android.tools.build:gradle:3.3.2'
  9. }
  10. }
  11. apply plugin: 'com.android.application'
  12. repositories {
  13. jcenter()
  14. maven {
  15. url 'https://maven.google.com'
  16. }
  17. }
  18. dependencies {
  19. implementation 'com.android.support:support-compat:28.0.0'
  20. }
  21. android {
  22. compileSdkVersion 28
  23. buildToolsVersion "28.0.3"
  24. defaultConfig {
  25. applicationId "org.purplei2p.i2pd"
  26. targetSdkVersion 28
  27. minSdkVersion 14
  28. versionCode 2270
  29. versionName "2.27.0"
  30. ndk {
  31. abiFilters 'armeabi-v7a'
  32. abiFilters 'x86'
  33. //abiFilters 'arm64-v8a'
  34. //abiFilters 'x86_64'
  35. }
  36. externalNativeBuild {
  37. ndkBuild {
  38. arguments "-j3"
  39. }
  40. }
  41. }
  42. sourceSets {
  43. main {
  44. manifest.srcFile 'AndroidManifest.xml'
  45. java.srcDirs = ['src']
  46. res.srcDirs = ['res']
  47. jniLibs.srcDirs = ['libs']
  48. assets.srcDirs = ['assets']
  49. }
  50. }
  51. splits {
  52. abi {
  53. // change that to true if you need splitted apk
  54. enable false
  55. reset()
  56. include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  57. universalApk true
  58. }
  59. }
  60. signingConfigs {
  61. orignal {
  62. storeFile file("i2pdapk.jks")
  63. storePassword "android"
  64. keyAlias "i2pdapk"
  65. keyPassword "android"
  66. }
  67. }
  68. buildTypes {
  69. release {
  70. minifyEnabled true
  71. signingConfig signingConfigs.orignal
  72. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  73. }
  74. }
  75. externalNativeBuild {
  76. ndkBuild {
  77. path './jni/Android.mk'
  78. }
  79. }
  80. }