Bubble android client. Fork of https://git.zx2c4.com/wireguard-android/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

98 lines
3.4 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.3'
  8. compileOptions {
  9. sourceCompatibility JavaVersion.VERSION_1_8
  10. targetCompatibility JavaVersion.VERSION_1_8
  11. }
  12. compileSdkVersion 28
  13. dataBinding.enabled true
  14. defaultConfig {
  15. applicationId 'com.wireguard.android'
  16. minSdkVersion 21
  17. targetSdkVersion 28
  18. versionCode 445
  19. versionName '0.0.20181210'
  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. annotationsVersion = '1.0.1'
  64. appcompatVersion = '1.0.2'
  65. cardviewVersion = '1.0.0'
  66. databindingVersion = '3.1.3'
  67. materialComponentsVersion = '1.0.0'
  68. jsr305Version = '3.0.2'
  69. preferenceVersion = '1.0.0'
  70. streamsupportVersion = '1.6.0'
  71. threetenabpVersion = '1.1.1'
  72. zxingEmbeddedVersion = '3.6.0'
  73. }
  74. dependencies {
  75. implementation "androidx.annotation:annotation:$annotationsVersion"
  76. implementation "androidx.appcompat:appcompat:$appcompatVersion"
  77. implementation "androidx.cardview:cardview:$cardviewVersion"
  78. implementation "androidx.databinding:databinding-runtime:$databindingVersion"
  79. implementation "androidx.preference:preference:$preferenceVersion"
  80. implementation "com.google.android.material:material:$materialComponentsVersion"
  81. implementation "com.google.code.findbugs:jsr305:$jsr305Version"
  82. implementation "com.jakewharton.threetenabp:threetenabp:$threetenabpVersion"
  83. implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
  84. implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion"
  85. implementation "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion"
  86. }
  87. tasks.withType(JavaCompile) {
  88. options.compilerArgs << '-Xlint:unchecked'
  89. options.deprecation = true
  90. }