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.
 
 
 
 
 
 

99 rivejä
4.1 KiB

  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-kapt'
  4. version wireguardVersionName
  5. group groupName
  6. // Create a variable called keystorePropertiesFile, and initialize it to your
  7. // keystore.properties file, in the rootProject folder.
  8. final def keystorePropertiesFile = rootProject.file("keystore.properties")
  9. android {
  10. buildToolsVersion '29.0.3'
  11. compileOptions {
  12. sourceCompatibility JavaVersion.VERSION_1_8
  13. targetCompatibility JavaVersion.VERSION_1_8
  14. }
  15. tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
  16. kotlinOptions {
  17. jvmTarget = '1.8'
  18. }
  19. }
  20. compileSdkVersion 29
  21. dataBinding.enabled true
  22. viewBinding.enabled true
  23. defaultConfig {
  24. applicationId 'com.wireguard.android'
  25. minSdkVersion 21
  26. targetSdkVersion 29
  27. versionCode wireguardVersionCode
  28. versionName wireguardVersionName
  29. buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
  30. }
  31. // If the keystore file exists
  32. if (keystorePropertiesFile.exists()) {
  33. // Initialize a new Properties() object called keystoreProperties.
  34. final def keystoreProperties = new Properties()
  35. // Load your keystore.properties file into the keystoreProperties object.
  36. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  37. signingConfigs {
  38. release {
  39. keyAlias keystoreProperties['keyAlias']
  40. keyPassword keystoreProperties['keyPassword']
  41. storeFile rootProject.file(keystoreProperties['storeFile'])
  42. storePassword keystoreProperties['storePassword']
  43. }
  44. }
  45. }
  46. buildTypes {
  47. release {
  48. if (keystorePropertiesFile.exists()) signingConfig signingConfigs.release
  49. minifyEnabled true
  50. proguardFiles "proguard-android-optimize.txt", "proguard-rules.pro"
  51. }
  52. debug {
  53. applicationIdSuffix ".debug"
  54. versionNameSuffix "-debug"
  55. }
  56. }
  57. lintOptions {
  58. disable('LongLogTag')
  59. }
  60. }
  61. dependencies {
  62. implementation "com.wireguard.android:tunnel:$tunnelVersion"
  63. implementation "androidx.annotation:annotation:$annotationsVersion"
  64. implementation "androidx.appcompat:appcompat:$appcompatVersion"
  65. implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
  66. implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorLayoutVersion"
  67. implementation "androidx.biometric:biometric:$biometricVersion"
  68. implementation "androidx.core:core-ktx:$coreKtxVersion"
  69. implementation "androidx.databinding:databinding-runtime:$agpVersion"
  70. implementation "androidx.fragment:fragment:$fragmentVersion"
  71. implementation "androidx.preference:preference:$preferenceVersion"
  72. implementation "com.google.android.material:material:$materialComponentsVersion"
  73. implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
  74. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
  75. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion"
  76. implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
  77. implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion"
  78. //Add for API Calls
  79. implementation "com.squareup.okhttp3:logging-interceptor:$interceptorVersion"
  80. implementation "com.google.code.gson:gson:$gsonVersion"
  81. implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
  82. implementation "com.squareup.retrofit2:converter-gson:$converterGsonVersion"
  83. implementation "androidx.appcompat:appcompat:$appcompatVersion"
  84. implementation "androidx.constraintlayout:constraintlayout:$constraintlayoutVersion"
  85. implementation "androidx.lifecycle:lifecycle-extensions:$lifecycleExtensionVersion"
  86. implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycleViewModelVersion"
  87. }
  88. tasks.withType(JavaCompile) {
  89. options.compilerArgs << '-Xlint:unchecked'
  90. options.deprecation = true
  91. }