thorium-fork/app/build.gradle
semantic-release-bot 8d2946f956 chore(release): 1.8.4 [only cd]
## 1.8.4 (2022-01-01)

### Bug Fixes

* **lang:**  Weblate translation (Chinese (Traditional)) 8280bfb
* **lang:**  Weblate translation (French) 85c8c8e
* **lang:**  Weblate translation (French) 6707cec
* **lang:**  Weblate translation (Indonesian) ada03b3
* **lang:**  Weblate translation (Italian) ed28fe3
* **lang:**  Weblate translation (Norwegian Bokmål) 2742ed6
* **lang:**  Weblate translation (Persian) 7648633
* **lang:**  Weblate translation (Portuguese (Brazil)) 60eca32
* **lang:**  Weblate translation (Portuguese (Portugal)) cc6b424
* **lang:**  Weblate translation (Portuguese) daebed8
* **lang:**  Weblate translation (Portuguese) 4bd0393
* **lang:**  Weblate translation (Russian) 49a579d
* **lang:**  Weblate translation (Sardinian) 792bf89
* **lang:**  Weblate translation (Spanish) cceec2f
* **lang:**  Weblate translation (Turkish) 42a01d4
* **lang:**  Weblate translation (Ukrainian) 68a57c8
* **lang:** Weblate translation (Arabic) 9453b5a
* **lang:** Weblate translation (Arabic) 96246dc
* **lang:** Weblate translation (Bengali) 45ac673
* **lang:** Weblate translation (Chinese (Simplified)) 490d8e3
* **lang:** Weblate translation (Chinese (Traditional)) fc07026
* **lang:** Weblate translation (Finnish) 5fe4353
* **lang:** Weblate translation (French) 5c9c90c
* **lang:** Weblate translation (German) a5b7279
* **lang:** Weblate translation (Indonesian) b98e2ae
* **lang:** Weblate translation (Italian) 76ef906
* **lang:** Weblate translation (Norwegian Bokmål) 08393e8
* **lang:** Weblate translation (Norwegian Bokmål) 672760a
* **lang:** Weblate translation (Persian) 514cd65
* **lang:** Weblate translation (Portuguese (Brazil)) 694c52e
* **lang:** Weblate translation (Portuguese) 60abc3b
* **lang:** Weblate translation (Portuguese) 1995e62
* **lang:** Weblate translation (Russian) 6f4ad5d
* **lang:** Weblate translation (Sardinian) 697044f
* **lang:** Weblate translation (Spanish) 18e1221
* **lang:** Weblate translation (Turkish) 3f51020
* **lang:** Weblate translation (Turkish) 1202dec
* **lang:** Weblate translation (Ukrainian) 3ec9283
2022-01-01 14:31:54 +00:00

176 lines
6.4 KiB
Groovy

plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'kotlin-kapt'
}
ext.readProperty = { paramName -> readPropertyWithDefault(paramName, null) }
ext.readPropertyWithDefault = { paramName, defaultValue ->
if (project.hasProperty(paramName)) {
return project.getProperties().get(paramName)
} else {
Properties properties = new Properties()
if (project.rootProject.file('local.properties').exists()) {
properties.load(project.rootProject.file('local.properties').newDataInputStream())
}
if (properties.getProperty(paramName) != null) {
return properties.getProperty(paramName)
} else {
return defaultValue
}
}
}
// Try reading secrets from file
def secretsPropertiesFile = rootProject.file("secrets.properties")
def secretProperties = new Properties()
if (secretsPropertiesFile.exists()) {
secretProperties.load(new FileInputStream(secretsPropertiesFile))
}
// Otherwise read from environment variables, this happens in CI
else {
secretProperties.setProperty("signing_keystore_password", "${System.getenv('signing_keystore_password')}")
secretProperties.setProperty("signing_key_password", "${System.getenv('signing_key_password')}")
secretProperties.setProperty("signing_key_alias", "${System.getenv('signing_key_alias')}")
}
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion 32
buildToolsVersion "30.0.2"
defaultConfig {
applicationId "net.schueller.peertube"
minSdkVersion 21
targetSdkVersion 32
versionCode 1070
versionName "1.8.4"
buildConfigField "long", "BUILD_TIME", readPropertyWithDefault('buildTimestamp', System.currentTimeMillis()) + 'L'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {
annotationProcessorOptions {
arguments = [
"room.schemaLocation" : "$projectDir/schemas".toString(),
"room.incremental" : "true",
"room.expandProjection": "true"]
}
}
}
signingConfigs {
release {
// You need to specify either an absolute path or include the
// keystore file in the same directory as the build.gradle file.
storeFile file("../android-signing-keystore.jks")
storePassword "${secretProperties['signing_keystore_password']}"
keyAlias "${secretProperties['signing_key_alias']}"
keyPassword "${secretProperties['signing_key_password']}"
}
}
buildTypes {
release {
minifyEnabled false
testCoverageEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName
}
buildFeatures{
viewBinding true
}
}
def room_version = "2.4.0"
def lifecycleVersion = '2.4.0'
def exoplayer = '2.16.1'
def fragment_version = "1.4.0"
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
// Layouts and design
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'com.google.android.material:material:1.4.0'
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation "androidx.fragment:fragment-ktx:$fragment_version"
implementation 'de.hdodenhof:circleimageview:3.1.0'
// font awesome
implementation 'com.mikepenz:iconics-core:5.2.4'
implementation 'com.mikepenz:fontawesome-typeface:5.9.0.2-kotlin@aar'
// http client / REST
implementation 'com.squareup.okhttp3:okhttp:4.9.2'
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
// image downloading and caching library
implementation 'com.squareup.picasso:picasso:2.71828'
// json decoder/encoder
implementation 'com.google.code.gson:gson:2.8.6'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
// Torrents and WebRTC
implementation 'com.github.TorrentStream:TorrentStream-Android:2.7.0'
// implementation "com.github.TorrentStream:TorrentStreamServer-Android:1.0.1"
// implementation 'org.webrtc:google-webrtc:1.0.+'
// video player repo:jcenter()
implementation "com.google.android.exoplayer:exoplayer-core:$exoplayer"
implementation "com.google.android.exoplayer:exoplayer-dash:$exoplayer"
implementation "com.google.android.exoplayer:exoplayer-ui:$exoplayer"
implementation "com.google.android.exoplayer:exoplayer-hls:$exoplayer"
implementation "com.google.android.exoplayer:exoplayer-smoothstreaming:$exoplayer"
implementation "com.google.android.exoplayer:extension-mediasession:$exoplayer"
implementation "com.google.android.exoplayer:extension-okhttp:$exoplayer"
// date formatter, do not update past 4.0.4 https://github.com/sschueller/peertube-android/issues/262
implementation 'org.ocpsoft.prettytime:prettytime:4.0.4.Final'
// Version comparison
implementation 'org.apache.maven:maven-artifact:3.6.3'
// database lib
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
// Lifecycle components
kapt "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
implementation 'androidx.preference:preference-ktx:1.1.1'
// testing
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation "androidx.room:room-testing:$room_version"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}