Bubble android client. Fork of https://git.zx2c4.com/wireguard-android/
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

110 linhas
4.1 KiB

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