Bubble android client. Fork of https://git.zx2c4.com/wireguard-android/
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

105 líneas
3.8 KiB

  1. apply plugin: 'com.android.application'
  2. apply from: 'nonnull.gradle'
  3. // Create a variable called keystorePropertiesFile, and initialize it to your
  4. // keystore.properties file, in the rootProject folder.
  5. final def keystorePropertiesFile = rootProject.file("keystore.properties")
  6. android {
  7. buildToolsVersion '29.0.2'
  8. compileOptions {
  9. sourceCompatibility JavaVersion.VERSION_1_8
  10. targetCompatibility JavaVersion.VERSION_1_8
  11. }
  12. compileSdkVersion 29
  13. dataBinding.enabled true
  14. defaultConfig {
  15. applicationId 'com.wireguard.android'
  16. minSdkVersion 21
  17. targetSdkVersion 29
  18. versionCode 459
  19. versionName '0.0.20191120'
  20. buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
  21. }
  22. // If the keystore file exists
  23. if (keystorePropertiesFile.exists()) {
  24. // Initialize a new Properties() object called keystoreProperties.
  25. final def keystoreProperties = new Properties()
  26. // Load your keystore.properties file into the keystoreProperties object.
  27. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  28. signingConfigs {
  29. release {
  30. keyAlias keystoreProperties['keyAlias']
  31. keyPassword keystoreProperties['keyPassword']
  32. storeFile file(keystoreProperties['storeFile'])
  33. storePassword keystoreProperties['storePassword']
  34. }
  35. }
  36. }
  37. buildTypes {
  38. release {
  39. if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
  40. externalNativeBuild {
  41. cmake {
  42. arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}"
  43. }
  44. }
  45. minifyEnabled true
  46. proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
  47. }
  48. debug {
  49. applicationIdSuffix ".debug"
  50. versionNameSuffix "-debug"
  51. externalNativeBuild {
  52. cmake {
  53. arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}${applicationIdSuffix}"
  54. }
  55. }
  56. }
  57. }
  58. externalNativeBuild {
  59. cmake {
  60. path 'tools/CMakeLists.txt'
  61. }
  62. }
  63. }
  64. ext {
  65. annotationsVersion = '1.1.0'
  66. appcompatVersion = '1.1.0'
  67. cardviewVersion = '1.0.0'
  68. databindingVersion = '3.5.3'
  69. materialComponentsVersion = '1.0.0'
  70. jsr305Version = '3.0.2'
  71. preferenceVersion = '1.1.0'
  72. streamsupportVersion = '1.7.1'
  73. threetenabpVersion = '1.2.1'
  74. // ZXING switched minSdk to 24 so we cannot upgrade to 4.0.2 without following suit.
  75. // If you choose to upgrade to minSDK 24 then you should also disable Jetifier from
  76. // gradle.properties.
  77. zxingEmbeddedVersion = '3.6.0'
  78. eddsaVersion = '0.3.0'
  79. }
  80. dependencies {
  81. implementation "androidx.annotation:annotation:$annotationsVersion"
  82. implementation "androidx.appcompat:appcompat:$appcompatVersion"
  83. implementation "androidx.cardview:cardview:$cardviewVersion"
  84. implementation "androidx.databinding:databinding-runtime:$databindingVersion"
  85. implementation "androidx.preference:preference:$preferenceVersion"
  86. implementation "com.google.android.material:material:$materialComponentsVersion"
  87. implementation "com.google.code.findbugs:jsr305:$jsr305Version"
  88. implementation "com.jakewharton.threetenabp:threetenabp:$threetenabpVersion"
  89. implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
  90. implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion"
  91. implementation "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion"
  92. implementation "net.i2p.crypto:eddsa:$eddsaVersion"
  93. }
  94. tasks.withType(JavaCompile) {
  95. options.compilerArgs << '-Xlint:unchecked'
  96. options.deprecation = true
  97. }