This repository has been archived by the owner on Feb 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
208 changed files
with
9,268 additions
and
9,537 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
.DS_Store | ||
/build | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,94 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'kotlin-android-extensions' | ||
|
||
android { | ||
|
||
android { | ||
compileSdkVersion 29 | ||
// buildToolsVersion is optional because the plugin uses a recommended version by default | ||
|
||
defaultConfig { | ||
applicationId 'org.y20k.transistor' | ||
minSdkVersion 25 | ||
targetSdkVersion 29 | ||
versionCode 72 | ||
versionName '4.0.0' | ||
resConfigs "en", "ar", "ca", "cs","de", "el", "es", "eu", "fr", "id", "in", "it", "ja", "kab", "nb-rNO", "nl", "pa", "pl", "pt", "pt-rBR", "ru", "sk", "sl", "sr", "th", "tr", "uk", "zh-rCN" | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
defaultConfig { | ||
applicationId 'org.y20k.transistor' | ||
minSdkVersion 19 | ||
targetSdkVersion 29 | ||
versionCode 71 | ||
versionName '3.2.4' | ||
|
||
vectorDrawables.useSupportLibrary = true | ||
resConfigs "en", "ar", "ca", "cs","de", "el", "es", "eu", "fr", "id", "in", "it", "ja", "kab", "nb-rNO", "nl", "pa", "pl", "pt", "pt-rBR", "ru", "sk", "sl", "sr", "th", "tr", "uk", "zh-rCN" | ||
lintOptions{ | ||
disable 'MissingTranslation' | ||
} | ||
|
||
buildTypes { | ||
|
||
release { | ||
// Enables code shrinking, obfuscation, and optimization for only | ||
// your project's release build type. | ||
minifyEnabled true | ||
|
||
// Enables resource shrinking, which is performed by the | ||
// Android Gradle plugin. | ||
shrinkResources true | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
|
||
// Includes the default ProGuard rules files that are packaged with | ||
// the Android Gradle plugin. To learn more, go to the section about | ||
// R8 configuration files. | ||
proguardFiles getDefaultProguardFile( | ||
'proguard-android-optimize.txt'), | ||
'proguard-rules.pro' | ||
} | ||
debug { | ||
// Comment out the below lines if you do not need to test resource shrinking | ||
// minifyEnabled true | ||
// shrinkResources true | ||
// proguardFiles getDefaultProguardFile( | ||
// 'proguard-android-optimize.txt'), | ||
// 'proguard-rules.pro' | ||
} | ||
|
||
} | ||
|
||
lintOptions { | ||
disable 'MissingTranslation' | ||
} | ||
} | ||
|
||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" | ||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0" | ||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.0" | ||
|
||
implementation "com.google.android.material:material:1.1.0-beta01" | ||
|
||
implementation "androidx.appcompat:appcompat:1.1.0" | ||
implementation "androidx.palette:palette:1.0.0" | ||
implementation "androidx.constraintlayout:constraintlayout:1.1.3" | ||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0' | ||
implementation "androidx.media:media:1.1.0" | ||
implementation "androidx.lifecycle:lifecycle-runtime:2.2.0" | ||
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0" | ||
|
||
implementation "com.google.android.material:material:1.1.0-beta01" | ||
|
||
implementation "com.google.android.exoplayer:exoplayer-core:2.10.8" | ||
implementation "com.google.android.exoplayer:exoplayer-hls:2.10.8" | ||
implementation "androidx.core:core-ktx:1.2.0" | ||
implementation "androidx.activity:activity-ktx:1.1.0" | ||
implementation "androidx.palette:palette:1.0.0" | ||
implementation "androidx.preference:preference:1.1.1" | ||
implementation "androidx.preference:preference-ktx:1.1.1" | ||
|
||
} | ||
implementation 'androidx.navigation:navigation-fragment-ktx:2.2.2' | ||
implementation 'androidx.navigation:navigation-ui-ktx:2.2.2' | ||
|
||
implementation "android.arch.work:work-runtime-ktx:1.0.1" | ||
|
||
// Support legacy language codes | ||
// https://developer.android.com/reference/java/util/Locale#legacy-language-codes | ||
// Credit: https://github.com/TeamAmaze/AmazeFileManager/blob/541c98fc77a9415bcd4a1279b85c6c2d38f669c1/app/build.gradle#L212 | ||
implementation "com.google.android.exoplayer:exoplayer:2.11.4" | ||
implementation "com.google.android.exoplayer:extension-mediasession:2.11.4" | ||
implementation "com.google.code.gson:gson:2.8.6" | ||
|
||
task supportLegacyLanguageCodes | ||
implementation 'com.android.volley:volley:1.1.1' | ||
|
||
[['id', 'in'], ['yi', 'ji'], ['he', 'iw']].forEach { sourceCode, destinationCode -> | ||
def copyTask = tasks.create('copyStrings' + sourceCode + 'Into' + destinationCode, Copy) { | ||
description('copying values-' + sourceCode + ' strings into values-' + destinationCode) | ||
from('src/main/res/values-' + sourceCode) | ||
into('src/main/res/values-' + destinationCode) | ||
include('strings.xml') | ||
} | ||
supportLegacyLanguageCodes.dependsOn copyTask | ||
} | ||
|
||
project.afterEvaluate { | ||
preBuild.dependsOn supportLegacyLanguageCodes | ||
androidExtensions { | ||
experimental = true | ||
} | ||
|
||
clean.dependsOn supportLegacyLanguageCodes | ||
clean.mustRunAfter supportLegacyLanguageCodes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in /Users/solaris/Library/Android/sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
-renamesourcefileattribute SourceFile | ||
|
||
|
||
# Preserve the core classes - because they need to be de-/serialized with GSON | ||
-keep public class org.y20k.transistor.core.** { *; } | ||
|
||
-keep public class org.y20k.transistor.PlayerService { *; } | ||
|
||
-keep public class org.y20k.transistor.search.GpodderResult { *; } |
Oops, something went wrong.