Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
BlissLauncher
Commits
51bd3a02
Commit
51bd3a02
authored
Nov 16, 2020
by
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
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
51bd3a02
...
@@ -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'
...
...
app/libs/lineage-sdk.jar
→
app/libs/lineage-sdk
-oreo
.jar
View file @
51bd3a02
File moved
app/libs/lineage-sdk-q.jar
0 → 100644
View file @
51bd3a02
File added
app/src/main/java/foundation/e/blisslauncher/core/customviews/BlurBackgroundView.kt
View file @
51bd3a02
...
@@ -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
)
{
}
}
}
}
}
}
...
...
app/src/main/java/foundation/e/blisslauncher/core/customviews/pageindicators/PageIndicatorDots.kt
View file @
51bd3a02
...
@@ -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
...
...
buildSrc/src/main/java/foundation/e/blisslauncher/buildsrc/Dependencies.kt
View file @
51bd3a02
package
foundation.e.blisslauncher.buildsrc
package
foundation.e.blisslauncher.buildsrc
object
Versions
{
object
Versions
{
const
val
compile_sdk
=
2
8
const
val
compile_sdk
=
2
9
const
val
min_sdk
=
24
const
val
min_sdk
=
24
const
val
target_sdk
=
2
8
const
val
target_sdk
=
2
9
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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment