Commit 51bd3a02 authored by Amit Kumar's avatar Amit Kumar 💻
Browse files

Add support for Android Q based lineage-sdk

parent 42be1ed1
Pipeline #84968 passed with stage
in 6 minutes and 33 seconds
...@@ -57,10 +57,20 @@ android { ...@@ -57,10 +57,20 @@ android {
productFlavors { productFlavors {
apiNougat { apiNougat {
dimension "api" dimension "api"
minSdkVersion 24
compileSdkVersion 25
} }
apiOreo { apiOreo {
dimension "api" dimension "api"
minSdkVersion 26 minSdkVersion 26
compileSdkVersion 28
targetSdkVersion 28
}
apiQ {
dimension "api"
minSdkVersion 29
compileSdkVersion 29
targetSdkVersion 29
} }
} }
...@@ -78,13 +88,21 @@ android { ...@@ -78,13 +88,21 @@ android {
lintOptions { lintOptions {
abortOnError false abortOnError false
} }
sourceSets {
apiQ {
java.srcDirs = ['src/apiOreo/java/foundation/e']
res.srcDirs = ['src/apiOreo/res']
}
}
} }
dependencies { dependencies {
implementation 'me.relex:circleindicator:2.1.4' implementation 'me.relex:circleindicator:2.1.4'
apiNougatImplementation 'org.cyanogenmod:platform.sdk:6.0' apiNougatImplementation 'org.cyanogenmod:platform.sdk:6.0'
apiOreoImplementation files('libs/lineage-sdk.jar') apiOreoImplementation files('libs/lineage-sdk-oreo.jar')
apiQImplementation files('libs/lineage-sdk-q.jar')
debugImplementation 'com.amitshekhar.android:debug-db:1.0.4' debugImplementation 'com.amitshekhar.android:debug-db:1.0.4'
......
...@@ -20,14 +20,14 @@ class BlurBackgroundView(context: Context, attrs: AttributeSet?) : View(context, ...@@ -20,14 +20,14 @@ class BlurBackgroundView(context: Context, attrs: AttributeSet?) : View(context,
private val blurDrawableCallback by lazy { private val blurDrawableCallback by lazy {
object : Drawable.Callback { object : Drawable.Callback {
override fun unscheduleDrawable(who: Drawable?, what: Runnable?) { override fun unscheduleDrawable(who: Drawable, what: Runnable) {
} }
override fun invalidateDrawable(who: Drawable?) { override fun invalidateDrawable(who: Drawable) {
runOnMainThread { invalidate() } runOnMainThread { invalidate() }
} }
override fun scheduleDrawable(who: Drawable?, what: Runnable?, `when`: Long) { override fun scheduleDrawable(who: Drawable, what: Runnable, `when`: Long) {
} }
} }
} }
......
...@@ -205,7 +205,7 @@ class PageIndicatorDots(context: Context?, attrs: AttributeSet?, defStyleAttr: I ...@@ -205,7 +205,7 @@ class PageIndicatorDots(context: Context?, attrs: AttributeSet?, defStyleAttr: I
} // Dot is leaving the left circle. } // Dot is leaving the left circle.
// dot is capturing the right circle. // dot is capturing the right circle.
private val activeRect: RectF? private val activeRect: RectF
get() { get() {
val startCircle: Float = mCurrentPosition val startCircle: Float = mCurrentPosition
var delta = mCurrentPosition - startCircle var delta = mCurrentPosition - startCircle
......
package foundation.e.blisslauncher.buildsrc package foundation.e.blisslauncher.buildsrc
object Versions { object Versions {
const val compile_sdk = 28 const val compile_sdk = 29
const val min_sdk = 24 const val min_sdk = 24
const val target_sdk = 28 const val target_sdk = 29
const val android_gradle_plugin = "3.5.0" const val android_gradle_plugin = "3.5.0"
const val dexcount_gradle_plugin = "0.8.6" const val dexcount_gradle_plugin = "0.8.6"
const val kotlin = "1.3.41" const val kotlin = "1.3.41"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment