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.
 
 
 
 
 
 

91 line
3.4 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.3'
  9. compileOptions {
  10. sourceCompatibility JavaVersion.VERSION_1_8
  11. targetCompatibility JavaVersion.VERSION_1_8
  12. }
  13. tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
  14. kotlinOptions {
  15. jvmTarget = '1.8'
  16. }
  17. }
  18. compileSdkVersion 29
  19. dataBinding.enabled true
  20. defaultConfig {
  21. applicationId 'com.wireguard.android'
  22. minSdkVersion 21
  23. targetSdkVersion 29
  24. versionCode 464
  25. versionName '0.0.20200206'
  26. buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
  27. }
  28. // If the keystore file exists
  29. if (keystorePropertiesFile.exists()) {
  30. // Initialize a new Properties() object called keystoreProperties.
  31. final def keystoreProperties = new Properties()
  32. // Load your keystore.properties file into the keystoreProperties object.
  33. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  34. signingConfigs {
  35. release {
  36. keyAlias keystoreProperties['keyAlias']
  37. keyPassword keystoreProperties['keyPassword']
  38. storeFile file(keystoreProperties['storeFile'])
  39. storePassword keystoreProperties['storePassword']
  40. }
  41. }
  42. }
  43. buildTypes {
  44. release {
  45. if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
  46. externalNativeBuild {
  47. cmake {
  48. arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}"
  49. }
  50. }
  51. minifyEnabled true
  52. proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
  53. }
  54. debug {
  55. applicationIdSuffix ".debug"
  56. versionNameSuffix "-debug"
  57. externalNativeBuild {
  58. cmake {
  59. arguments "-DANDROID_PACKAGE_NAME=${android.defaultConfig.applicationId}${applicationIdSuffix}"
  60. }
  61. }
  62. }
  63. }
  64. }
  65. dependencies {
  66. implementation project(":tunnel")
  67. implementation "androidx.annotation:annotation:$annotationsVersion"
  68. implementation "androidx.appcompat:appcompat:$appcompatVersion"
  69. implementation "androidx.cardview:cardview:$cardviewVersion"
  70. implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
  71. implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorLayoutVersion"
  72. implementation "androidx.core:core-ktx:$coreKtxVersion"
  73. implementation "androidx.databinding:databinding-runtime:$agpVersion"
  74. implementation "androidx.fragment:fragment:$fragmentVersion"
  75. implementation "androidx.preference:preference:$preferenceVersion"
  76. implementation "com.google.android.material:material:$materialComponentsVersion"
  77. implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
  78. implementation "net.i2p.crypto:eddsa:$eddsaVersion"
  79. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
  80. }
  81. tasks.withType(JavaCompile) {
  82. options.compilerArgs << '-Xlint:unchecked'
  83. options.deprecation = true
  84. }