tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

build.gradle (1737B)


      1 apply plugin: 'com.android.application'
      2 
      3 android {
      4    compileSdkVersion 31
      5    defaultConfig {
      6        applicationId "org.appspot.apprtc"
      7        minSdkVersion 21
      8        targetSdkVersion 31
      9        versionCode 1
     10        versionName "1.0"
     11        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     12    }
     13    buildTypes {
     14        release {
     15            minifyEnabled false
     16            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
     17        }
     18    }
     19    compileOptions {
     20        sourceCompatibility JavaVersion.VERSION_1_8
     21        targetCompatibility JavaVersion.VERSION_1_8
     22    }
     23    sourceSets {
     24        main {
     25            manifest.srcFile "../../androidapp/AndroidManifest.xml"
     26            java.srcDirs = [
     27                    "../../androidapp/src"
     28            ]
     29            res.srcDirs = [
     30                    "../../androidapp/res"
     31            ]
     32        }
     33        androidTest {
     34            manifest.srcFile "../../androidtests/AndroidManifest.xml"
     35            java.srcDirs = [
     36                    "../../androidtests/src"
     37            ]
     38            // This test doesn't work in Android Studio.
     39            java.exclude('**/CallActivityStubbedInputOutputTest.java')
     40        }
     41    }
     42 }
     43 
     44 dependencies {
     45    if (project.hasProperty('aarDir')) {
     46        implementation fileTree(dir: project.aarDir, include: ['google-webrtc-*.aar'])
     47    }
     48    implementation fileTree(dir: '../../androidapp/third_party/autobanh/lib', include: ['autobanh.jar'])
     49    implementation 'androidx.annotation:annotation:1.2.0'
     50    testImplementation 'junit:junit:4.12'
     51    androidTestImplementation 'com.androidx.test:runner:1.0.1'
     52    androidTestImplementation 'com.androidx.test.espresso:espresso-core:3.0.1'
     53 }