Bubble android client. Fork of https://git.zx2c4.com/wireguard-android/
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

95 рядки
3.3 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 '28.0.1'
  8. compileOptions {
  9. sourceCompatibility JavaVersion.VERSION_1_8
  10. targetCompatibility JavaVersion.VERSION_1_8
  11. }
  12. compileSdkVersion 27
  13. dataBinding.enabled true
  14. defaultConfig {
  15. applicationId 'com.wireguard.android'
  16. minSdkVersion 21
  17. targetSdkVersion 27
  18. versionCode 438
  19. versionName '0.0.20180729'
  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. }
  46. debug {
  47. applicationIdSuffix ".debug"
  48. versionNameSuffix "-debug"
  49. externalNativeBuild {
  50. cmake {
  51. arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}${applicationIdSuffix}"
  52. }
  53. }
  54. }
  55. }
  56. externalNativeBuild {
  57. cmake {
  58. path 'tools/CMakeLists.txt'
  59. }
  60. }
  61. }
  62. ext {
  63. databindingVersion = '3.1.3'
  64. supportLibsVersion = '27.1.1'
  65. streamsupportVersion = '1.6.0'
  66. jsr305Version = '3.0.2'
  67. zxingEmbeddedVersion = '3.6.0'
  68. acraVersion = '5.2.0-rc2'
  69. }
  70. dependencies {
  71. implementation "com.android.databinding:library:$databindingVersion"
  72. implementation "com.android.support:appcompat-v7:$supportLibsVersion"
  73. implementation "com.android.support:cardview-v7:$supportLibsVersion"
  74. implementation "com.android.support:design:$supportLibsVersion"
  75. implementation "com.android.support:preference-v14:$supportLibsVersion"
  76. implementation "com.android.support:support-annotations:$supportLibsVersion"
  77. implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion"
  78. implementation "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion"
  79. implementation "com.google.code.findbugs:jsr305:$jsr305Version"
  80. implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
  81. implementation "ch.acra:acra-http:$acraVersion"
  82. }
  83. tasks.withType(JavaCompile) {
  84. options.compilerArgs << '-Xlint:unchecked'
  85. options.deprecation = true
  86. }