build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. useLibrary 'org.apache.http.legacy'
  5. defaultConfig {
  6. applicationId "ca.psiphon.tunneledwebview"
  7. minSdkVersion 15
  8. targetSdkVersion 30
  9. versionCode 1
  10. versionName "1.0"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled true
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility = '1.8'
  20. targetCompatibility = '1.8'
  21. }
  22. }
  23. repositories {
  24. maven {
  25. url "https://raw.github.com/Psiphon-Labs/psiphon-tunnel-core-Android-library/master"
  26. }
  27. }
  28. dependencies {
  29. testImplementation 'junit:junit:4.12'
  30. implementation 'androidx.appcompat:appcompat:1.0.0'
  31. // always specify exact library version in your real project to avoid non-deterministic builds
  32. implementation 'ca.psiphon:psiphontunnel:2.+'
  33. // For the latest version compile the library from source, see MobileLibrary/Android/README.md
  34. // in the Psiphon-Labs/psiphon-tunnel-core repository, copy the ca.psiphon.aar artifact to
  35. // the libs folder under the app module and replace the above line
  36. // (e.g. replace implementation 'ca.psiphon:psiphontunnel:2.+')
  37. // with the following line:
  38. // implementation files('libs/ca.psiphon.aar')
  39. }