gradle.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. From 66fc98ddb787d22787e79fc2e422076a42b64ad4 Mon Sep 17 00:00:00 2001
  2. From: Georg Koppen <gk@torproject.org>
  3. Date: Mon, 18 May 2020 10:12:01 +0000
  4. Subject: [PATCH] Bug 33558: Update TOPL to use updated Android toolchain
  5. diff --git a/android/build.gradle b/android/build.gradle
  6. index a8d9bdc..696f62e 100644
  7. --- a/android/build.gradle
  8. +++ b/android/build.gradle
  9. @@ -7,6 +7,7 @@ buildscript {
  10. mavenLocal()
  11. mavenCentral()
  12. google()
  13. + maven { url "https://repo.spring.io/plugins-release" }
  14. }
  15. dependencies {
  16. classpath "com.android.tools.build:gradle:${androidplugin}"
  17. @@ -14,11 +15,11 @@ buildscript {
  18. }
  19. android {
  20. - compileSdkVersion 28
  21. + compileSdkVersion 29
  22. defaultConfig {
  23. minSdkVersion 16
  24. - targetSdkVersion 28
  25. + targetSdkVersion 29
  26. versionCode 1
  27. versionName "0.0.3"
  28. consumerProguardFiles 'proguard-rules.pro'
  29. @@ -40,7 +41,9 @@ publishing {
  30. groupId 'com.msopentech.thali.toronionproxy.android'
  31. artifactId 'android'
  32. version '0.0.3'
  33. - artifact(sourceJar)
  34. + afterEvaluate {
  35. + artifact(sourceJar)
  36. + }
  37. artifact("$buildDir/outputs/aar/android-release.aar")
  38. pom.withXml {
  39. def dependenciesNode = asNode().appendNode('dependencies')
  40. diff --git a/android_tor_installer/build.gradle b/android_tor_installer/build.gradle
  41. index 554fd49..1913fa9 100644
  42. --- a/android_tor_installer/build.gradle
  43. +++ b/android_tor_installer/build.gradle
  44. @@ -7,6 +7,7 @@ buildscript {
  45. mavenLocal()
  46. mavenCentral()
  47. google()
  48. + maven { url "https://repo.spring.io/plugins-release" }
  49. }
  50. dependencies {
  51. classpath "com.android.tools.build:gradle:${androidplugin}"
  52. @@ -14,11 +15,11 @@ buildscript {
  53. }
  54. android {
  55. - compileSdkVersion 28
  56. + compileSdkVersion 29
  57. defaultConfig {
  58. minSdkVersion 16
  59. - targetSdkVersion 28
  60. + targetSdkVersion 29
  61. versionCode 1
  62. versionName "0.0.3"
  63. --
  64. 2.26.2