Merge branch 'master' into 'master'
Refactor gradle configuration and update dependencies See merge request AuroraOSS/AuroraStore!188
This commit is contained in:
119
app/build.gradle
119
app/build.gradle
@@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Aurora Store
|
* Aurora Store
|
||||||
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
||||||
|
* Copyright (C) 2022, The Calyx Institute
|
||||||
*
|
*
|
||||||
* Aurora Store is free software: you can redistribute it and/or modify
|
* Aurora Store is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,18 +18,33 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
apply plugin: 'com.android.application'
|
plugins {
|
||||||
apply plugin: 'kotlin-android'
|
id 'com.android.application'
|
||||||
apply plugin: 'kotlin-kapt'
|
id 'org.jetbrains.kotlin.android'
|
||||||
apply plugin: "androidx.navigation.safeargs.kotlin"
|
id 'org.jetbrains.kotlin.kapt'
|
||||||
|
id 'androidx.navigation.safeargs.kotlin'
|
||||||
|
}
|
||||||
|
|
||||||
|
project.ext {
|
||||||
|
versions = [
|
||||||
|
okhttp3 : "4.10.0",
|
||||||
|
fetch2 : "3.1.6",
|
||||||
|
fuel : "2.3.0",
|
||||||
|
glide : "4.11.0",
|
||||||
|
lifecycle : '2.5.1',
|
||||||
|
navigation: '2.5.1',
|
||||||
|
epoxy : "4.3.1",
|
||||||
|
libsu : "3.0.2"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 32
|
compileSdk 33
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.aurora.store"
|
applicationId "com.aurora.store"
|
||||||
minSdkVersion 19
|
minSdk 19
|
||||||
targetSdkVersion 32
|
targetSdk 33
|
||||||
|
|
||||||
versionCode 41
|
versionCode 41
|
||||||
versionName "4.1.1"
|
versionName "4.1.1"
|
||||||
@@ -65,27 +81,12 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = '1.8'
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_11
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_11
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
buildscript {
|
|
||||||
ext {
|
|
||||||
versions = [
|
|
||||||
okhttp3 : "4.9.0",
|
|
||||||
fetch2 : "3.1.6",
|
|
||||||
fuel : "2.3.0",
|
|
||||||
glide : "4.11.0",
|
|
||||||
lifecycle : '2.4.1',
|
|
||||||
navigation: '2.4.1',
|
|
||||||
epoxy : "4.3.1",
|
|
||||||
libsu : "3.0.2"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,81 +95,79 @@ kapt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
||||||
|
|
||||||
//MultiDex for Kitkat support
|
//MultiDex for Kitkat support
|
||||||
implementation("androidx.multidex:multidex:2.0.1")
|
implementation "androidx.multidex:multidex:2.0.1"
|
||||||
|
|
||||||
//Protobuf
|
//Protobuf
|
||||||
implementation("com.google.protobuf:protobuf-java:3.14.0")
|
implementation "com.google.protobuf:protobuf-java:3.14.0"
|
||||||
|
|
||||||
//Apache's Goodies
|
//Apache's Goodies
|
||||||
implementation("commons-io:commons-io:2.8.0")
|
implementation "commons-io:commons-io:2.8.0"
|
||||||
implementation("org.apache.commons:commons-text:1.8")
|
implementation "org.apache.commons:commons-text:1.8"
|
||||||
|
|
||||||
//Google's Goodies
|
//Google's Goodies
|
||||||
implementation("com.google.android.material:material:1.5.0")
|
implementation "com.google.android.material:material:1.6.1"
|
||||||
implementation("com.google.android:flexbox:2.0.1")
|
implementation "com.google.android.flexbox:flexbox:3.0.0"
|
||||||
implementation("com.google.code.gson:gson:2.8.6")
|
implementation "com.google.code.gson:gson:2.9.0"
|
||||||
|
|
||||||
//AndroidX
|
//AndroidX
|
||||||
implementation("androidx.core:core-ktx:1.7.0")
|
implementation "androidx.core:core-ktx:1.8.0"
|
||||||
implementation("androidx.viewpager2:viewpager2:1.0.0")
|
implementation "androidx.viewpager2:viewpager2:1.0.0"
|
||||||
implementation("androidx.vectordrawable:vectordrawable:1.1.0")
|
implementation "androidx.vectordrawable:vectordrawable:1.1.0"
|
||||||
implementation("androidx.preference:preference-ktx:1.2.0")
|
implementation "androidx.preference:preference-ktx:1.2.0"
|
||||||
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
|
||||||
|
|
||||||
//Arch LifeCycle
|
//Arch LifeCycle
|
||||||
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
|
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
|
||||||
|
|
||||||
implementation("androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}")
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:${versions.lifecycle}"
|
||||||
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}")
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:${versions.lifecycle}"
|
||||||
implementation("androidx.lifecycle:lifecycle-viewmodel-savedstate:${versions.lifecycle}")
|
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:${versions.lifecycle}"
|
||||||
|
|
||||||
//Arch Navigation
|
//Arch Navigation
|
||||||
implementation("androidx.navigation:navigation-fragment-ktx:${versions.navigation}")
|
implementation "androidx.navigation:navigation-fragment-ktx:${versions.navigation}"
|
||||||
implementation("androidx.navigation:navigation-runtime-ktx:${versions.navigation}")
|
implementation "androidx.navigation:navigation-runtime-ktx:${versions.navigation}"
|
||||||
implementation("androidx.navigation:navigation-ui-ktx:${versions.navigation}")
|
implementation "androidx.navigation:navigation-ui-ktx:${versions.navigation}"
|
||||||
|
|
||||||
//UI Addons
|
//UI Addons
|
||||||
implementation("com.github.florent37:expansionpanel:1.2.4")
|
implementation "com.github.florent37:expansionpanel:1.2.4"
|
||||||
|
|
||||||
//Easy Permission
|
//Easy Permission
|
||||||
implementation("com.github.quickpermissions:quickpermissions-kotlin:0.4.0")
|
implementation "com.github.quickpermissions:quickpermissions-kotlin:0.4.0"
|
||||||
|
|
||||||
//Glide
|
//Glide
|
||||||
implementation("com.github.bumptech.glide:glide:${versions.glide}")
|
implementation "com.github.bumptech.glide:glide:${versions.glide}"
|
||||||
kapt("com.github.bumptech.glide:compiler:${versions.glide}")
|
kapt "com.github.bumptech.glide:compiler:${versions.glide}"
|
||||||
|
|
||||||
//Shimmer
|
//Shimmer
|
||||||
implementation("com.facebook.shimmer:shimmer:0.5.0")
|
implementation "com.facebook.shimmer:shimmer:0.5.0"
|
||||||
|
|
||||||
//Epoxy
|
//Epoxy
|
||||||
implementation("com.airbnb.android:epoxy:${versions.epoxy}")
|
implementation "com.airbnb.android:epoxy:${versions.epoxy}"
|
||||||
kapt("com.airbnb.android:epoxy-processor:${versions.epoxy}")
|
kapt "com.airbnb.android:epoxy-processor:${versions.epoxy}"
|
||||||
|
|
||||||
//Merlin
|
//Merlin
|
||||||
implementation("com.novoda:merlin:1.2.0")
|
implementation "com.novoda:merlin:1.2.0"
|
||||||
|
|
||||||
//HTTP Clients
|
//HTTP Clients
|
||||||
implementation("com.github.kittinunf.fuel:fuel:${versions.fuel}")
|
implementation "com.github.kittinunf.fuel:fuel:${versions.fuel}"
|
||||||
implementation("com.squareup.okhttp3:okhttp:${versions.okhttp3}")
|
implementation "com.squareup.okhttp3:okhttp:${versions.okhttp3}"
|
||||||
|
|
||||||
//Fetch - Downloader
|
//Fetch - Downloader
|
||||||
implementation "androidx.tonyodev.fetch2:xfetch2:${versions.fetch2}"
|
implementation "androidx.tonyodev.fetch2:xfetch2:${versions.fetch2}"
|
||||||
|
|
||||||
//Kovenant
|
//Kovenant
|
||||||
implementation("nl.komponents.kovenant:kovenant:3.3.0")
|
implementation "nl.komponents.kovenant:kovenant:3.3.0"
|
||||||
implementation("nl.komponents.kovenant:kovenant-android:3.3.0")
|
implementation "nl.komponents.kovenant:kovenant-android:3.3.0"
|
||||||
|
|
||||||
//EventBus
|
//EventBus
|
||||||
implementation("org.greenrobot:eventbus:3.2.0")
|
implementation "org.greenrobot:eventbus:3.2.0"
|
||||||
|
|
||||||
//Lib-SU
|
//Lib-SU
|
||||||
implementation "com.github.topjohnwu.libsu:core:${versions.libsu}"
|
implementation "com.github.topjohnwu.libsu:core:${versions.libsu}"
|
||||||
|
|
||||||
//Love <3
|
//Love <3
|
||||||
api("com.gitlab.AuroraOSS:gplayapi:0e224071f3")
|
api "com.gitlab.AuroraOSS:gplayapi:0e224071f3"
|
||||||
}
|
}
|
||||||
|
|
||||||
Properties props = new Properties()
|
Properties props = new Properties()
|
||||||
|
|||||||
@@ -109,6 +109,7 @@ class CategoryBrowseActivity : BaseActivity(), GenericCarouselController.Callbac
|
|||||||
is ViewState.Success<*> -> {
|
is ViewState.Success<*> -> {
|
||||||
updateController(it.data as StreamBundle)
|
updateController(it.data as StreamBundle)
|
||||||
}
|
}
|
||||||
|
else -> {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ class AccentFragment : BaseFragment() {
|
|||||||
anim.duration = 450
|
anim.duration = 450
|
||||||
anim.interpolator = CubicBezierInterpolator.EASE_IN_OUT_QUAD
|
anim.interpolator = CubicBezierInterpolator.EASE_IN_OUT_QUAD
|
||||||
anim.addListener(object : AnimatorListenerAdapter() {
|
anim.addListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
B.themeSwitchImage.setImageDrawable(null)
|
B.themeSwitchImage.setImageDrawable(null)
|
||||||
B.themeSwitchImage.hide()
|
B.themeSwitchImage.hide()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ class ThemeFragment : BaseFragment() {
|
|||||||
anim.duration = 450
|
anim.duration = 450
|
||||||
anim.interpolator = CubicBezierInterpolator.EASE_IN_OUT_QUAD
|
anim.interpolator = CubicBezierInterpolator.EASE_IN_OUT_QUAD
|
||||||
anim.addListener(object : AnimatorListenerAdapter() {
|
anim.addListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
B.themeSwitchImage.setImageDrawable(null)
|
B.themeSwitchImage.setImageDrawable(null)
|
||||||
B.themeSwitchImage.hide()
|
B.themeSwitchImage.hide()
|
||||||
}
|
}
|
||||||
|
|||||||
33
build.gradle
33
build.gradle
@@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Aurora Store
|
* Aurora Store
|
||||||
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
||||||
|
* Copyright (C) 2022, The Calyx Institute
|
||||||
*
|
*
|
||||||
* Aurora Store is free software: you can redistribute it and/or modify
|
* Aurora Store is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,34 +18,10 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
buildscript {
|
plugins {
|
||||||
|
id 'com.android.application' version '7.2.2' apply false
|
||||||
repositories {
|
id 'org.jetbrains.kotlin.android' version '1.7.10' apply false
|
||||||
google()
|
id 'androidx.navigation.safeargs.kotlin' version '2.5.1' apply false
|
||||||
jcenter()
|
|
||||||
}
|
|
||||||
|
|
||||||
ext {
|
|
||||||
kotlin_version = '1.4.30'
|
|
||||||
}
|
|
||||||
|
|
||||||
ext.kotlin = "1.5.30"
|
|
||||||
ext.navigation= "2.4.1"
|
|
||||||
ext.gradle = '7.1.1'
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
classpath ("com.android.tools.build:gradle:$gradle")
|
|
||||||
classpath ("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin")
|
|
||||||
classpath ("androidx.navigation:navigation-safe-args-gradle-plugin:$navigation")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
repositories {
|
|
||||||
google()
|
|
||||||
jcenter()
|
|
||||||
maven { url 'https://jitpack.io' }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task clean(type: Delete) {
|
task clean(type: Delete) {
|
||||||
|
|||||||
@@ -46,9 +46,6 @@ kapt.incremental.apt=true
|
|||||||
android.databinding.incremental=true
|
android.databinding.incremental=true
|
||||||
android.lifecycleProcessor.incremental=true
|
android.lifecycleProcessor.incremental=true
|
||||||
|
|
||||||
# Decrease gradle builds time
|
|
||||||
kapt.use.worker.api=true
|
|
||||||
|
|
||||||
# turn off AP discovery in compile path, and therefore turn on Compile Avoidance
|
# turn off AP discovery in compile path, and therefore turn on Compile Avoidance
|
||||||
kapt.include.compile.classpath=false
|
kapt.include.compile.classpath=false
|
||||||
|
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -22,4 +22,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Aurora Store
|
* Aurora Store
|
||||||
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
* Copyright (C) 2021, Rahul Kumar Patel <whyorean@gmail.com>
|
||||||
|
* Copyright (C) 2022, The Calyx Institute
|
||||||
*
|
*
|
||||||
* Aurora Store is free software: you can redistribute it and/or modify
|
* Aurora Store is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@@ -17,5 +18,28 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
pluginManagement {
|
||||||
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
|
repositories {
|
||||||
|
google()
|
||||||
|
jcenter() // Required for com.novoda:merlin:1.2.0
|
||||||
|
mavenCentral()
|
||||||
|
maven {
|
||||||
|
name 'JitPack'
|
||||||
|
url 'https://jitpack.io/'
|
||||||
|
}
|
||||||
|
maven {
|
||||||
|
name 'Google'
|
||||||
|
url 'https://maven.google.com/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
include ':app'
|
include ':app'
|
||||||
rootProject.name = "AuroraStore4"
|
rootProject.name = "AuroraStore4"
|
||||||
Reference in New Issue
Block a user