Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RvApp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lify
RvApp
Commits
79bd3ca0
Commit
79bd3ca0
authored
Dec 12, 2019
by
jianglx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改gradle的配置
parent
d2948155
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
43 additions
and
229 deletions
+43
-229
build.gradle
RvClient/build.gradle
+3
-3
build.gradle
build.gradle
+4
-2
build.gradle
component_control/build.gradle
+3
-4
build.gradle
component_dialog/build.gradle
+3
-4
build.gradle
component_resource/build.gradle
+3
-4
build.gradle
component_utils/build.gradle
+3
-4
build.gradle
jcvideoplayer-lib/build.gradle
+3
-3
build.gradle
module_camp/build.gradle
+3
-4
build.gradle
module_discovery/build.gradle
+3
-4
build.gradle
plugin_im/build.gradle
+3
-5
SideBar.java
plugin_im/src/main/java/com/rv/im/util/sortlist/SideBar.java
+0
-173
build.gradle
plugin_member/build.gradle
+3
-5
build.gradle
plugin_points/build.gradle
+3
-5
build.gradle
plugin_share/build.gradle
+3
-4
build.gradle
plugin_version/build.gradle
+3
-5
No files found.
RvClient/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.application'
android
{
String
appId
=
"com.xxfc.rv"
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
buildToolsVersion
rootProject
.
ext
.
buildToolsVersion
defaultConfig
{
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
versionCode
154
versionName
"1.5.4"
versionCode
rootProject
.
ext
.
versionCode
versionName
rootProject
.
ext
.
versionName
multiDexEnabled
true
...
...
build.gradle
View file @
79bd3ca0
...
...
@@ -58,12 +58,14 @@ task clean(type: Delete) {
}
ext
{
appId
=
"com.xxfc.rv"
compileSdkVersion
=
28
buildToolsVersion
=
"28.0.3"
minSdkVersion
=
19
targetSdkVersion
=
26
versionCode
=
1
versionName
=
"1.
0
"
versionCode
=
1
56
versionName
=
"1.
5.6
"
supportVersion
=
'28.0.0'
okHttpVersion
=
'3.8.1'
//okHttp
...
...
component_control/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
19
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
flavorDimensions
"default"
...
...
component_dialog/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
apply
plugin:
'com.jakewharton.butterknife'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
15
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
flavorDimensions
"default"
...
...
component_resource/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
15
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
flavorDimensions
"default"
...
...
component_utils/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
15
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
flavorDimensions
"default"
...
...
jcvideoplayer-lib/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
16
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
}
...
...
module_camp/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
apply
plugin:
'com.jakewharton.butterknife'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
15
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
...
...
module_discovery/build.gradle
View file @
79bd3ca0
...
...
@@ -2,12 +2,11 @@ apply plugin: 'com.android.library'
apply
plugin:
'com.jakewharton.butterknife'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
15
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
flavorDimensions
"default"
...
...
plugin_im/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
19
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
...
...
plugin_im/src/main/java/com/rv/im/util/sortlist/SideBar.java
deleted
100644 → 0
View file @
d2948155
package
com
.
rv
.
im
.
util
.
sortlist
;
import
android.content.Context
;
import
android.graphics.Canvas
;
import
android.graphics.Color
;
import
android.graphics.Paint
;
import
android.graphics.Typeface
;
import
android.graphics.drawable.ColorDrawable
;
import
android.util.AttributeSet
;
import
android.view.MotionEvent
;
import
android.view.View
;
import
android.widget.TextView
;
import
com.sk.weichat.R
;
import
java.util.HashMap
;
import
java.util.Map
;
public
class
SideBar
extends
View
{
// 触摸事件
private
OnTouchingLetterChangedListener
onTouchingLetterChangedListener
;
// 26个字母和#,首字母不是英文字母的放到#分类
public
static
String
[]
b
=
{
"A"
,
"B"
,
"C"
,
"D"
,
"E"
,
"F"
,
"G"
,
"H"
,
"I"
,
"J"
,
"K"
,
"L"
,
"M"
,
"N"
,
"O"
,
"P"
,
"Q"
,
"R"
,
"S"
,
"T"
,
"U"
,
"V"
,
"W"
,
"X"
,
"Y"
,
"Z"
,
"#"
};
private
int
choose
=
-
1
;
// 选中
private
Paint
paint
=
new
Paint
();
private
TextView
mTextDialog
;
private
Map
<
String
,
Integer
>
isExistMap
;
public
void
setExistMap
(
Map
<
String
,
Integer
>
existMap
)
{
isExistMap
=
existMap
;
invalidate
();
}
public
void
addExist
(
String
alphaet
)
{
// 存在的Count+1
int
count
=
0
;
if
(
isExistMap
.
containsKey
(
alphaet
))
{
count
=
isExistMap
.
get
(
alphaet
);
}
count
++;
isExistMap
.
put
(
alphaet
,
count
);
}
public
void
removeExist
(
String
alphaet
)
{
// 存在的Count-1,存在才减1,不存在则移除
int
count
=
0
;
if
(
isExistMap
.
containsKey
(
alphaet
))
{
count
=
isExistMap
.
get
(
alphaet
);
}
if
(
count
>
0
)
{
count
--;
}
if
(
count
>
0
)
{
isExistMap
.
put
(
alphaet
,
count
);
}
else
{
isExistMap
.
remove
(
alphaet
);
}
}
public
void
clearExist
()
{
isExistMap
.
clear
();
}
public
void
setTextView
(
TextView
mTextDialog
)
{
this
.
mTextDialog
=
mTextDialog
;
}
public
SideBar
(
Context
context
,
AttributeSet
attrs
,
int
defStyle
)
{
super
(
context
,
attrs
,
defStyle
);
isExistMap
=
new
HashMap
<
String
,
Integer
>();
}
public
SideBar
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
isExistMap
=
new
HashMap
<
String
,
Integer
>();
}
public
SideBar
(
Context
context
)
{
super
(
context
);
isExistMap
=
new
HashMap
<
String
,
Integer
>();
}
protected
void
onDraw
(
Canvas
canvas
)
{
super
.
onDraw
(
canvas
);
// 获取焦点改变背景颜色.
int
height
=
getHeight
();
// 获取对应高度
int
width
=
getWidth
();
// 获取对应宽度
int
singleHeight
=
height
/
b
.
length
;
// 获取每一个字母的高度
for
(
int
i
=
0
;
i
<
b
.
length
;
i
++)
{
paint
.
setColor
(
Color
.
parseColor
(
"#555555"
));
paint
.
setTypeface
(
Typeface
.
DEFAULT
);
paint
.
setAntiAlias
(
true
);
paint
.
setTextSize
(
28
);
// 选中的状态
if
(
i
==
choose
)
{
paint
.
setColor
(
Color
.
parseColor
(
"#4FC557"
));
paint
.
setFakeBoldText
(
true
);
}
// x坐标等于中间-字符串宽度的一半.
float
xPos
=
width
/
2
-
paint
.
measureText
(
b
[
i
])
/
2
;
float
yPos
=
singleHeight
*
i
+
singleHeight
;
canvas
.
drawText
(
b
[
i
],
xPos
,
yPos
,
paint
);
paint
.
reset
();
// 重置画笔
}
}
@SuppressWarnings
(
"deprecation"
)
@Override
public
boolean
dispatchTouchEvent
(
MotionEvent
event
)
{
final
int
action
=
event
.
getAction
();
final
float
y
=
event
.
getY
();
// 点击y坐标
final
int
oldChoose
=
choose
;
final
int
c
=
(
int
)
(
y
/
getHeight
()
*
b
.
length
);
// 点击y坐标所占总高度的比例*b数组的长度就等于点击b中的个数.
switch
(
action
)
{
case
MotionEvent
.
ACTION_UP
:
// setBackgroundDrawable(new ColorDrawable(0x00000000));
setBackgroundDrawable
(
new
ColorDrawable
(
getResources
().
getColor
(
R
.
color
.
app_white
)));
choose
=
-
1
;
//
invalidate
();
if
(
mTextDialog
!=
null
)
{
mTextDialog
.
setVisibility
(
View
.
INVISIBLE
);
}
break
;
default
:
setBackgroundResource
(
R
.
drawable
.
sidebar_background
);
if
(
oldChoose
!=
c
)
{
if
(
c
>=
0
&&
c
<
b
.
length
)
{
if
(
onTouchingLetterChangedListener
!=
null
)
{
int
count
=
0
;
if
(
isExistMap
.
containsKey
(
b
[
c
]))
{
count
=
isExistMap
.
get
(
b
[
c
]);
}
if
(
count
>
0
)
{
onTouchingLetterChangedListener
.
onTouchingLetterChanged
(
b
[
c
]);
if
(
mTextDialog
!=
null
)
{
mTextDialog
.
setText
(
b
[
c
]);
mTextDialog
.
setVisibility
(
View
.
VISIBLE
);
}
}
}
choose
=
c
;
invalidate
();
}
}
break
;
}
return
true
;
}
/**
* 向外公开的方法
*
* @param onTouchingLetterChangedListener
*/
public
void
setOnTouchingLetterChangedListener
(
OnTouchingLetterChangedListener
onTouchingLetterChangedListener
)
{
this
.
onTouchingLetterChangedListener
=
onTouchingLetterChangedListener
;
}
/**
* 接口
*
* @author coder
*/
public
interface
OnTouchingLetterChangedListener
{
public
void
onTouchingLetterChanged
(
String
s
);
}
}
\ No newline at end of file
plugin_member/build.gradle
View file @
79bd3ca0
...
...
@@ -2,13 +2,11 @@ apply plugin: 'com.android.library'
apply
plugin:
'com.jakewharton.butterknife'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
19
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
...
...
plugin_points/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
apply
plugin:
'com.jakewharton.butterknife'
android
{
compileSdkVersion
29
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
19
targetSdkVersion
29
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
versionCode
1
versionName
"1.0"
flavorDimensions
"default"
...
...
plugin_share/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
apply
plugin:
'com.jakewharton.butterknife'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
19
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
...
...
plugin_version/build.gradle
View file @
79bd3ca0
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
28
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
defaultConfig
{
minSdkVersion
19
targetSdkVersion
28
minSdkVersion
rootProject
.
ext
.
minSdkVersion
targetSdkVersion
rootProject
.
ext
.
targetSdkVersion
flavorDimensions
"default"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
...
...
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