Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
8a273ab7
Commit
8a273ab7
authored
Mar 08, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to Android P DP1
parent
f218282e
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
65 additions
and
19 deletions
+65
-19
build.gradle
build.gradle
+5
-4
core/build.gradle
core/build.gradle
+1
-1
gradle/wrapper/gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+1
-1
mobile/build.gradle
mobile/build.gradle
+1
-1
mobile/src/main/java/android/support/design/animation/AnimationConsts.kt
.../java/android/support/design/animation/AnimationConsts.kt
+27
-0
mobile/src/main/java/android/support/design/widget/SnackbarAnimation.kt
...n/java/android/support/design/widget/SnackbarAnimation.kt
+0
-8
mobile/src/main/java/android/support/design/widget/SnackbarConsts.kt
...main/java/android/support/design/widget/SnackbarConsts.kt
+25
-0
mobile/src/main/java/com/github/shadowsocks/widget/ShrinkUpwardBehavior.kt
...ava/com/github/shadowsocks/widget/ShrinkUpwardBehavior.kt
+4
-3
plugin/build.gradle
plugin/build.gradle
+1
-1
No files found.
build.gradle
View file @
8a273ab7
...
...
@@ -6,9 +6,10 @@ buildscript {
ext
{
kotlinVersion
=
'1.2.30'
minSdkVersion
=
21
sdkVersion
=
27
buildToolsVersion
=
'27.0.3'
supportLibraryVersion
=
'27.1.0'
sdkVersion
=
'P'
compileSdkVersion
=
'android-P'
buildToolsVersion
=
'28-rc1'
supportLibraryVersion
=
'28.0.0-alpha1'
takisoftFixVersion
=
'27.1.0.0'
playServicesVersion
=
'11.8.0'
junitVersion
=
'4.12'
...
...
@@ -22,7 +23,7 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:3.
0.1
'
classpath
'com.android.tools.build:gradle:3.
2.0-alpha05
'
classpath
'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath
'com.google.gms:google-services:3.2.0'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
...
...
core/build.gradle
View file @
8a273ab7
...
...
@@ -4,7 +4,7 @@ apply plugin: 'com.android.library'
android
{
buildToolsVersion
rootProject
.
buildToolsVersion
compileSdkVersion
rootProject
.
s
dkVersion
compileSdkVersion
rootProject
.
compileS
dkVersion
defaultConfig
{
minSdkVersion
rootProject
.
minSdkVersion
...
...
gradle/wrapper/gradle-wrapper.properties
View file @
8a273ab7
...
...
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
4.1
-all.zip
distributionUrl
=
https
\:
//services.gradle.org/distributions/gradle-4.
6
-all.zip
mobile/build.gradle
View file @
8a273ab7
...
...
@@ -16,7 +16,7 @@ def getCurrentFlavor() {
android
{
buildToolsVersion
rootProject
.
buildToolsVersion
compileSdkVersion
rootProject
.
s
dkVersion
compileSdkVersion
rootProject
.
compileS
dkVersion
defaultConfig
{
applicationId
"com.github.shadowsocks"
minSdkVersion
rootProject
.
minSdkVersion
...
...
mobile/src/main/java/android/support/design/animation/AnimationConsts.kt
0 → 100644
View file @
8a273ab7
/*******************************************************************************
* *
* Copyright (C) 2017 by Max Lv <max.c.lv@gmail.com> *
* Copyright (C) 2017 by Mygod Studio <contact-shadowsocks-android@mygod.be> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
package
android.support.design.animation
import
android.animation.TimeInterpolator
object
AnimationConsts
{
val
FAST_OUT_SLOW_IN_INTERPOLATOR
:
TimeInterpolator
get
()
=
AnimationUtils
.
FAST_OUT_SLOW_IN_INTERPOLATOR
}
mobile/src/main/java/android/support/design/widget/SnackbarAnimation.kt
deleted
100644 → 0
View file @
f218282e
package
android.support.design.widget
import
android.view.animation.Interpolator
object
SnackbarAnimation
{
val
FAST_OUT_SLOW_IN_INTERPOLATOR
:
Interpolator
get
()
=
AnimationUtils
.
FAST_OUT_SLOW_IN_INTERPOLATOR
const
val
ANIMATION_DURATION
=
BaseTransientBottomBar
.
ANIMATION_DURATION
.
toLong
()
}
mobile/src/main/java/android/support/design/widget/SnackbarConsts.kt
0 → 100644
View file @
8a273ab7
/*******************************************************************************
* *
* Copyright (C) 2017 by Max Lv <max.c.lv@gmail.com> *
* Copyright (C) 2017 by Mygod Studio <contact-shadowsocks-android@mygod.be> *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
package
android.support.design.widget
object
SnackbarConsts
{
const
val
ANIMATION_DURATION
=
BaseTransientBottomBar
.
ANIMATION_DURATION
.
toLong
()
}
mobile/src/main/java/com/github/shadowsocks/widget/ShrinkUpwardBehavior.kt
View file @
8a273ab7
...
...
@@ -22,9 +22,10 @@ package com.github.shadowsocks.widget
import
android.animation.ValueAnimator
import
android.content.Context
import
android.support.design.animation.AnimationConsts
import
android.support.design.widget.CoordinatorLayout
import
android.support.design.widget.Snackbar
import
android.support.design.widget.Snackbar
Animation
import
android.support.design.widget.Snackbar
Consts
import
android.util.AttributeSet
import
android.view.View
import
android.view.accessibility.AccessibilityManager
...
...
@@ -52,8 +53,8 @@ class ShrinkUpwardBehavior(context: Context, attrs: AttributeSet) : CoordinatorL
val
animator
=
ValueAnimator
()
val
start
=
child
.
height
animator
.
setIntValues
(
start
,
parent
.
height
)
animator
.
interpolator
=
SnackbarAnimation
.
FAST_OUT_SLOW_IN_INTERPOLATOR
animator
.
duration
=
Snackbar
Animation
.
ANIMATION_DURATION
animator
.
interpolator
=
AnimationConsts
.
FAST_OUT_SLOW_IN_INTERPOLATOR
animator
.
duration
=
Snackbar
Consts
.
ANIMATION_DURATION
@Suppress
(
"NAME_SHADOWING"
)
animator
.
addUpdateListener
{
animator
->
child
.
layoutParams
.
height
=
animator
.
animatedValue
as
Int
...
...
plugin/build.gradle
View file @
8a273ab7
...
...
@@ -5,7 +5,7 @@ apply from: 'gradle-mvn-push.gradle'
android
{
buildToolsVersion
rootProject
.
buildToolsVersion
compileSdkVersion
rootProject
.
s
dkVersion
compileSdkVersion
rootProject
.
compileS
dkVersion
defaultConfig
{
minSdkVersion
rootProject
.
minSdkVersion
...
...
Write
Preview
Markdown
is supported
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