- removed programmatical creation of cards and instead inflated them through layouts - created shimmer card effects when cards are loading from the api - made api calls in threads so that the app won't hang loading tons of data - made buttons adapt to Material U colors - made result cards show which videos are downloaded already by changing the download icons - showed video duration in result files - added trending videos if results are empty, based on your location - made the cards 16:9 no all devices - removed old menubar and now it blends with the statusbar - When switching to light mode, the status bar now changes as expected - added download progress notification - removed unnecessary toasts - fixed card scrolling when downloading a playlist - added floating action button to scroll to top - made appbar clickable that will also scroll to top - made bottom nav bar buttons scroll to top if you are clicking the highlighted button - fixed text sizes and positions - removed youtubedl-android folders and instead used modules (it now works, previously i had to manually add them) - removed hard coded strings which most were albanian. Now they are english by default and if you change the language in your phone's settings, it changes language too. Currently the app supports only English and Albanian - and other small fixes and details
81 lines
2.4 KiB
Groovy
81 lines
2.4 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
id 'com.google.secrets_gradle_plugin' version '0.4'
|
|
}
|
|
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
defaultConfig {
|
|
applicationId "com.deniscerri.ytdl"
|
|
minSdkVersion 23
|
|
targetSdkVersion 29
|
|
versionCode project.versionCode
|
|
versionName project.versionName
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
ndk {
|
|
abiFilters 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
|
}
|
|
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding true
|
|
compose true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
|
|
splits {
|
|
abi {
|
|
enable true
|
|
reset()
|
|
include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a'
|
|
universalApk true
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
// implementation project(":library")
|
|
// implementation project(":ffmpeg")
|
|
|
|
implementation 'com.github.yausername.youtubedl-android:library:0.13.3'
|
|
implementation 'com.github.yausername.youtubedl-android:ffmpeg:0.13.3'
|
|
|
|
implementation "androidx.appcompat:appcompat:$appCompatVer"
|
|
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
|
|
implementation 'com.google.android.material:material:1.6.1'
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
|
implementation 'androidx.core:core:1.8.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
implementation 'androidx.preference:preference:1.2.0'
|
|
testImplementation "junit:junit:$junitVer"
|
|
androidTestImplementation "androidx.test.ext:junit:$androidJunitVer"
|
|
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVer"
|
|
|
|
implementation "io.reactivex.rxjava2:rxandroid:2.1.0"
|
|
implementation "com.devbrackets.android:exomedia:4.3.0"
|
|
|
|
implementation("androidx.cardview:cardview:1.0.0")
|
|
implementation("com.squareup.picasso:picasso:2.8")
|
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
|
|
|
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
|
|
implementation 'com.facebook.shimmer:shimmer:0.5.0'
|
|
}
|