Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
sobot_android
Sobot_module_Dev
Commits
75af33f3
Commit
75af33f3
authored
Oct 21, 2022
by
郑娜伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
picture 去掉 centerCrop() 发布1.1.3 版本
parent
1f22956e
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
16 deletions
+16
-16
build.gradle
app/build.gradle
+3
-3
MyApp.java
app/src/main/java/com/sobot/moduletest/MyApp.java
+2
-2
build.gradle
sobot_common/build.gradle
+2
-2
sobot-common-publish-mavencentral.gradle
sobot_common/sobot-common-publish-mavencentral.gradle
+1
-1
build.gradle
sobot_pictureframe/build.gradle
+1
-1
sobot-picture-publish-mavencentral.gradle
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
+1
-1
SobotGlideImageLoader.java
...in/java/com/sobot/pictureframe/SobotGlideImageLoader.java
+2
-2
SobotPicassoImageLoader.java
.../java/com/sobot/pictureframe/SobotPicassoImageLoader.java
+4
-4
No files found.
app/build.gradle
View file @
75af33f3
...
...
@@ -39,9 +39,9 @@ dependencies {
// api 'com.sobot.library:sobotcommon:1.0'
// api 'com.sobot.library:sobotcommon_x:1.0'
//
implementation 'com.github.bumptech.glide:glide:4.9.0'
// implementation 'com.sobot.chat:sobotsupport-glidev4:2.1
'
implementation
'com.facebook.fresco:fresco:1.13.0'
implementation
'com.github.bumptech.glide:glide:4.9.0'
implementation
'com.sobot.chat:sobotsupport-glidev4:2.3
'
//
implementation 'com.facebook.fresco:fresco:1.13.0'
//android x 可以用这个 ,普通版不能用这个
// implementation 'com.facebook.fresco:fresco:2.6.0'
implementation
'com.squareup.okhttp3:okhttp:4.4.0'
...
...
app/src/main/java/com/sobot/moduletest/MyApp.java
View file @
75af33f3
...
...
@@ -3,7 +3,7 @@ package com.sobot.moduletest;
import
android.app.Application
;
import
android.support.multidex.MultiDex
;
import
com.facebook.drawee.backends.pipeline.Fresco
;
//
import com.facebook.drawee.backends.pipeline.Fresco;
import
com.sobot.common.ui.SobotMarkConfig
;
import
com.sobot.common.utils.SobotCommonApi
;
...
...
@@ -17,7 +17,7 @@ public class MyApp extends Application {
@Override
public
void
onCreate
()
{
super
.
onCreate
();
Fresco
.
initialize
(
this
);
//
Fresco.initialize(this);
// 主要是添加下面这句代码
MultiDex
.
install
(
this
);
SobotCommonApi
.
init
(
this
,
"https://sobot.com"
);
...
...
sobot_common/build.gradle
View file @
75af33f3
...
...
@@ -20,12 +20,12 @@ dependencies {
// api project(':sobot_gson')
api
'com.sobot.library:utils:1.1.1'
api
'com.sobot.library:picture:1.1.
2
'
api
'com.sobot.library:picture:1.1.
3
'
api
'com.sobot.library:net:1.1.1'
api
'com.sobot.library:gson:1.1.1'
// api 'com.sobot.library:utils:1.1.1'
// api 'com.sobot.library:picture_x:1.1.
2
'
// api 'com.sobot.library:picture_x:1.1.
3
'
// api 'com.sobot.library:net:1.1.1'
// api 'com.sobot.library:gson:1.1.1'
}
...
...
sobot_common/sobot-common-publish-mavencentral.gradle
View file @
75af33f3
...
...
@@ -13,7 +13,7 @@ ext {
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'sobotcommon'
//项目名
// PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名
PUBLISH_VERSION
=
'1.
1.8
'
//版本号
PUBLISH_VERSION
=
'1.
2
'
//版本号
}
...
...
sobot_pictureframe/build.gradle
View file @
75af33f3
...
...
@@ -32,7 +32,7 @@ dependencies {
compileOnly
'com.github.bumptech.glide:glide:3.8.0'
compileOnly
'com.squareup.picasso:picasso:2.5.2'
compileOnly
'com.facebook.fresco:fresco:2.6.0'
api
'com.sobot.chat:sobotsupport-glidev4:2.
0
'
api
'com.sobot.chat:sobotsupport-glidev4:2.
2
'
}
//添加发布到mavenCentral脚本
...
...
sobot_pictureframe/sobot-picture-publish-mavencentral.gradle
View file @
75af33f3
...
...
@@ -13,7 +13,7 @@ ext {
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'picture'
//项目名
//PUBLISH_ARTIFACT_ID = 'picture_x' //项目名
PUBLISH_VERSION
=
'1.1.
2
'
//版本号
PUBLISH_VERSION
=
'1.1.
3
'
//版本号
}
...
...
sobot_pictureframe/src/main/java/com/sobot/pictureframe/SobotGlideImageLoader.java
View file @
75af33f3
...
...
@@ -18,7 +18,7 @@ public class SobotGlideImageLoader extends SobotImageLoader {
@Override
public
void
displayImage
(
Context
context
,
final
ImageView
imageView
,
final
String
path
,
@DrawableRes
int
loadingResId
,
@DrawableRes
int
failResId
,
int
width
,
int
height
,
final
SobotDisplayImageListener
listener
)
{
BitmapRequestBuilder
<
String
,
Bitmap
>
builder
=
Glide
.
with
(
context
).
load
(
path
).
asBitmap
().
placeholder
(
loadingResId
).
error
(
failResId
)
.
centerCrop
()
;
BitmapRequestBuilder
<
String
,
Bitmap
>
builder
=
Glide
.
with
(
context
).
load
(
path
).
asBitmap
().
placeholder
(
loadingResId
).
error
(
failResId
);
if
(
width
!=
0
||
height
!=
0
)
{
builder
.
override
(
width
,
height
);
}
...
...
@@ -40,7 +40,7 @@ public class SobotGlideImageLoader extends SobotImageLoader {
@Override
public
void
displayImage
(
Context
context
,
final
ImageView
imageView
,
@DrawableRes
int
targetResId
,
@DrawableRes
int
loadingResId
,
@DrawableRes
int
failResId
,
int
width
,
int
height
,
final
SobotDisplayImageListener
listener
)
{
BitmapRequestBuilder
<
Integer
,
Bitmap
>
builder
=
Glide
.
with
(
context
).
load
(
targetResId
).
asBitmap
().
placeholder
(
loadingResId
).
error
(
failResId
)
.
centerCrop
()
;
BitmapRequestBuilder
<
Integer
,
Bitmap
>
builder
=
Glide
.
with
(
context
).
load
(
targetResId
).
asBitmap
().
placeholder
(
loadingResId
).
error
(
failResId
);
if
(
width
!=
0
||
height
!=
0
)
{
builder
.
override
(
width
,
height
);
}
...
...
sobot_pictureframe/src/main/java/com/sobot/pictureframe/SobotPicassoImageLoader.java
View file @
75af33f3
...
...
@@ -30,9 +30,9 @@ public class SobotPicassoImageLoader extends SobotImageLoader {
}
creator
.
config
(
Bitmap
.
Config
.
RGB_565
);
if
(
width
!=
0
||
height
!=
0
)
{
creator
.
resize
(
width
,
height
)
.
centerCrop
()
;
creator
.
resize
(
width
,
height
);
}
else
{
creator
.
fit
()
.
centerCrop
()
;
creator
.
fit
();
}
creator
.
into
(
imageView
,
new
Callback
.
EmptyCallback
()
{
@Override
...
...
@@ -54,9 +54,9 @@ public class SobotPicassoImageLoader extends SobotImageLoader {
creator
.
error
(
failResId
);
}
if
(
width
!=
0
||
height
!=
0
)
{
creator
.
resize
(
width
,
height
)
.
centerCrop
()
;
creator
.
resize
(
width
,
height
);
}
else
{
creator
.
fit
()
.
centerCrop
()
;
creator
.
fit
();
}
creator
.
into
(
imageView
,
new
Callback
.
EmptyCallback
()
{
@Override
...
...
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