Bubble android client. Fork of https://git.zx2c4.com/wireguard-android/
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

121 lines
4.5 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. externalNativeBuild {
  65. cmake {
  66. path 'tools/CMakeLists.txt'
  67. }
  68. }
  69. }
  70. ext {
  71. annotationsVersion = '1.1.0'
  72. appcompatVersion = '1.1.0'
  73. cardviewVersion = '1.0.0'
  74. coreKtxVersion = '1.2.0'
  75. constraintLayoutVersion = '1.1.3'
  76. coordinatorLayoutVersion = '1.1.0'
  77. databindingVersion = '3.6.0'
  78. fragmentVersion = '1.2.2'
  79. materialComponentsVersion = '1.1.0'
  80. jsr305Version = '3.0.2'
  81. kotlinVersion = '1.3.70'
  82. preferenceVersion = '1.1.0'
  83. streamsupportVersion = '1.7.1'
  84. threetenabpVersion = '1.2.2'
  85. // ZXING switched minSdk to 24 so we cannot upgrade to 4.0.2 without following suit.
  86. // If you choose to upgrade to minSDK 24 then you should also disable Jetifier from
  87. // gradle.properties.
  88. zxingEmbeddedVersion = '3.6.0'
  89. eddsaVersion = '0.3.0'
  90. }
  91. dependencies {
  92. implementation "androidx.annotation:annotation:$annotationsVersion"
  93. implementation "androidx.appcompat:appcompat:$appcompatVersion"
  94. implementation "androidx.cardview:cardview:$cardviewVersion"
  95. implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
  96. implementation "androidx.coordinatorlayout:coordinatorlayout:$coordinatorLayoutVersion"
  97. implementation "androidx.core:core-ktx:$coreKtxVersion"
  98. implementation "androidx.databinding:databinding-runtime:$databindingVersion"
  99. implementation "androidx.fragment:fragment:$fragmentVersion"
  100. implementation "androidx.preference:preference:$preferenceVersion"
  101. implementation "com.google.android.material:material:$materialComponentsVersion"
  102. implementation "com.google.code.findbugs:jsr305:$jsr305Version"
  103. implementation "com.jakewharton.threetenabp:threetenabp:$threetenabpVersion"
  104. implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
  105. implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion"
  106. implementation "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion"
  107. implementation "net.i2p.crypto:eddsa:$eddsaVersion"
  108. implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
  109. }
  110. tasks.withType(JavaCompile) {
  111. options.compilerArgs << '-Xlint:unchecked'
  112. options.deprecation = true
  113. }