2018-03-03 01:10:13 +01:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2020-06-21 17:01:15 +02:00
|
|
|
compileSdkVersion 29
|
2018-03-03 01:10:13 +01:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "net.schueller.peertube"
|
2018-12-17 18:54:09 +01:00
|
|
|
minSdkVersion 21
|
2020-06-21 17:01:15 +02:00
|
|
|
targetSdkVersion 29
|
2020-06-27 23:41:37 +02:00
|
|
|
versionCode 1040
|
|
|
|
versionName "1.0.40"
|
2018-12-23 16:42:01 +01:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2019-01-01 05:40:46 +01:00
|
|
|
ext {
|
|
|
|
libVersions = [
|
2020-06-27 21:46:13 +02:00
|
|
|
exoplayer: '2.11.6'
|
2019-01-01 05:40:46 +01:00
|
|
|
]
|
|
|
|
}
|
2020-06-21 17:01:15 +02:00
|
|
|
javaCompileOptions {
|
|
|
|
annotationProcessorOptions {
|
|
|
|
arguments = [
|
|
|
|
"room.schemaLocation" : "$projectDir/schemas".toString(),
|
|
|
|
"room.incremental" : "true",
|
|
|
|
"room.expandProjection": "true"]
|
|
|
|
}
|
|
|
|
}
|
2018-11-13 21:04:06 +01:00
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
|
|
|
// Layouts and design
|
2018-12-23 16:42:01 +01:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
2020-01-04 21:26:54 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
2018-12-23 16:42:01 +01:00
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
2020-01-04 21:26:54 +01:00
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
2018-12-23 16:42:01 +01:00
|
|
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
2020-05-16 16:11:16 +02:00
|
|
|
implementation 'com.google.android.material:material:1.1.0'
|
2019-02-03 15:25:56 +01:00
|
|
|
implementation 'de.hdodenhof:circleimageview:3.0.0'
|
2018-11-13 21:04:06 +01:00
|
|
|
|
|
|
|
// font awesome
|
2018-12-23 16:42:01 +01:00
|
|
|
implementation "com.mikepenz:iconics-core:3.1.0"
|
|
|
|
implementation 'com.mikepenz:fontawesome-typeface:5.3.1.1@aar'
|
2018-11-13 21:04:06 +01:00
|
|
|
|
|
|
|
// http client / REST
|
2020-05-16 16:11:16 +02:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:4.3.1'
|
2018-12-30 07:15:59 +01:00
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
|
2018-11-13 21:04:06 +01:00
|
|
|
|
|
|
|
// image downloading and caching library
|
2020-06-01 19:44:35 +02:00
|
|
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
2018-11-13 21:04:06 +01:00
|
|
|
|
|
|
|
// json decoder/encoder
|
2020-06-01 19:44:35 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
2018-12-30 07:15:59 +01:00
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
|
2018-11-13 21:04:06 +01:00
|
|
|
|
|
|
|
// Torrents and WebRTC
|
2018-12-30 07:15:59 +01:00
|
|
|
implementation 'com.github.TorrentStream:TorrentStream-Android:2.6.1'
|
2018-11-13 21:04:06 +01:00
|
|
|
// implementation "com.github.TorrentStream:TorrentStreamServer-Android:1.0.1"
|
|
|
|
// implementation 'org.webrtc:google-webrtc:1.0.+'
|
|
|
|
|
2019-01-01 05:40:46 +01:00
|
|
|
// video player repo:jcenter()
|
|
|
|
implementation "com.google.android.exoplayer:exoplayer-core:$libVersions.exoplayer"
|
|
|
|
implementation "com.google.android.exoplayer:exoplayer-dash:$libVersions.exoplayer"
|
|
|
|
implementation "com.google.android.exoplayer:exoplayer-ui:$libVersions.exoplayer"
|
|
|
|
implementation "com.google.android.exoplayer:exoplayer-hls:$libVersions.exoplayer"
|
|
|
|
implementation "com.google.android.exoplayer:exoplayer-smoothstreaming:$libVersions.exoplayer"
|
|
|
|
implementation "com.google.android.exoplayer:extension-mediasession:$libVersions.exoplayer"
|
2018-11-13 21:04:06 +01:00
|
|
|
|
|
|
|
// testing
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2020-01-04 21:26:54 +01:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.2.0'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
2018-11-13 21:04:06 +01:00
|
|
|
}
|
2018-03-03 01:10:13 +01:00
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled false
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2018-11-10 17:48:09 +01:00
|
|
|
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
variant.resValue "string", "versionName", variant.versionName
|
|
|
|
}
|
2018-03-03 01:10:13 +01:00
|
|
|
}
|
|
|
|
|
2018-12-17 18:11:41 +01:00
|
|
|
dependencies {
|
2020-06-27 23:28:52 +02:00
|
|
|
|
2020-06-21 17:01:15 +02:00
|
|
|
def room_version = "2.2.5"
|
|
|
|
def archLifecycleVersion = '2.1.0'
|
|
|
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta7'
|
2020-01-04 21:26:54 +01:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
2020-06-21 17:01:15 +02:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
implementation 'com.google.android.material:material:1.1.0'
|
|
|
|
|
|
|
|
// database lib
|
|
|
|
implementation "androidx.room:room-runtime:$room_version"
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
|
|
|
|
annotationProcessor "androidx.room:room-compiler:$room_version"
|
|
|
|
androidTestImplementation "androidx.room:room-testing:$room_version"
|
|
|
|
|
|
|
|
// Lifecycle components
|
|
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$archLifecycleVersion"
|
|
|
|
annotationProcessor "androidx.lifecycle:lifecycle-common-java8:$archLifecycleVersion"
|
|
|
|
|
2020-06-27 23:28:52 +02:00
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2018-12-17 18:11:41 +01:00
|
|
|
}
|