2018-03-02 16:10:13 -08:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2018-11-10 08:48:09 -08:00
|
|
|
compileSdkVersion 28
|
2018-03-02 16:10:13 -08:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "net.schueller.peertube"
|
2018-12-17 09:54:09 -08:00
|
|
|
minSdkVersion 21
|
2018-11-10 08:48:09 -08:00
|
|
|
targetSdkVersion 28
|
2019-01-01 14:56:26 -08:00
|
|
|
versionCode 1020
|
|
|
|
versionName "1.0.20"
|
2018-12-23 07:42:01 -08:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2018-11-13 12:04:06 -08:00
|
|
|
dependencies {
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
|
|
|
// Layouts and design
|
2018-12-23 07:42:01 -08:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.0.0'
|
|
|
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
|
|
|
implementation 'com.google.android.material:material:1.0.0'
|
2018-11-13 12:04:06 -08:00
|
|
|
implementation 'de.hdodenhof:circleimageview:2.2.0'
|
|
|
|
|
|
|
|
// font awesome
|
2018-12-23 07:42:01 -08:00
|
|
|
implementation "com.mikepenz:iconics-core:3.1.0"
|
|
|
|
implementation 'com.mikepenz:fontawesome-typeface:5.3.1.1@aar'
|
2018-11-13 12:04:06 -08:00
|
|
|
|
|
|
|
// http client / REST
|
2018-12-29 22:15:59 -08:00
|
|
|
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
|
|
|
|
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
|
2018-11-13 12:04:06 -08:00
|
|
|
|
|
|
|
// image downloading and caching library
|
|
|
|
implementation 'com.squareup.picasso:picasso:2.5.2'
|
|
|
|
|
|
|
|
// json decoder/encoder
|
2018-12-29 22:15:59 -08:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.5'
|
|
|
|
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
|
2018-11-13 12:04:06 -08:00
|
|
|
|
|
|
|
// Torrents and WebRTC
|
2018-12-29 22:15:59 -08:00
|
|
|
implementation 'com.github.TorrentStream:TorrentStream-Android:2.6.1'
|
2018-11-13 12:04:06 -08:00
|
|
|
// implementation "com.github.TorrentStream:TorrentStreamServer-Android:1.0.1"
|
|
|
|
// implementation 'org.webrtc:google-webrtc:1.0.+'
|
|
|
|
|
|
|
|
// video player
|
2018-12-17 09:54:09 -08:00
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-core:2.9.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-dash:2.9.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-ui:2.9.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-hls:2.9.2'
|
|
|
|
implementation 'com.google.android.exoplayer:exoplayer-smoothstreaming:2.9.2'
|
2018-12-26 11:01:29 -08:00
|
|
|
implementation 'com.google.android.exoplayer:extension-mediasession:2.9.2'
|
2018-11-13 12:04:06 -08:00
|
|
|
|
|
|
|
// testing
|
|
|
|
testImplementation 'junit:junit:4.12'
|
2018-12-23 07:42:01 -08:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
2018-11-13 12:04:06 -08:00
|
|
|
}
|
2018-03-02 16:10:13 -08: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 08:48:09 -08:00
|
|
|
|
|
|
|
applicationVariants.all { variant ->
|
|
|
|
variant.resValue "string", "versionName", variant.versionName
|
|
|
|
}
|
2018-03-02 16:10:13 -08:00
|
|
|
}
|
|
|
|
|
2018-12-17 09:11:41 -08:00
|
|
|
dependencies {
|
|
|
|
implementation 'com.android.support.constraint:constraint-layout:+'
|
|
|
|
}
|