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
c4706238
Commit
c4706238
authored
Apr 19, 2024
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
album 1.0.2
parent
660b1c80
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
17 deletions
+5
-17
MainActivity.java
app/src/main/java/com/sobot/moduletest/MainActivity.java
+0
-4
build.gradle
sobot_album/build.gradle
+1
-1
sobot-album_publish-mavencentral.gradle
sobot_album/sobot-album_publish-mavencentral.gradle
+1
-1
SobotAlbum.java
sobot_album/src/main/java/com/sobot/album/SobotAlbum.java
+3
-11
No files found.
app/src/main/java/com/sobot/moduletest/MainActivity.java
View file @
c4706238
...
@@ -287,10 +287,6 @@ public class MainActivity extends SobotBaseActivity {
...
@@ -287,10 +287,6 @@ public class MainActivity extends SobotBaseActivity {
}
}
private
void
openAlbum
()
{
private
void
openAlbum
()
{
SobotAlbum
.
initialize
(
AlbumConfig
.
newBuilder
(
this
)
.
setAlbumLoader
(
new
SobotMediaLoader
())
.
setLocale
(
Locale
.
getDefault
())
.
build
());
SobotAlbum
.
album
(
MainActivity
.
this
)
SobotAlbum
.
album
(
MainActivity
.
this
)
.
multipleChoice
()
.
multipleChoice
()
.
columnCount
(
4
)
.
columnCount
(
4
)
...
...
sobot_album/build.gradle
View file @
c4706238
...
@@ -22,7 +22,7 @@ dependencies {
...
@@ -22,7 +22,7 @@ dependencies {
compileOnly
'com.google.android.material:material:1.4.+'
compileOnly
'com.google.android.material:material:1.4.+'
compileOnly
'androidx.appcompat:appcompat:1.0.0'
compileOnly
'androidx.appcompat:appcompat:1.0.0'
compileOnly
'androidx.recyclerview:recyclerview:1.0.0'
compileOnly
'androidx.recyclerview:recyclerview:1.0.0'
api
'com.sobot.library:widget_x:1.2.
1
'
api
'com.sobot.library:widget_x:1.2.
3
'
api
'com.sobot.library:picture_x:1.2.0'
api
'com.sobot.library:picture_x:1.2.0'
}
}
...
...
sobot_album/sobot-album_publish-mavencentral.gradle
View file @
c4706238
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'album'
//项目名
PUBLISH_ARTIFACT_ID
=
'album'
//项目名
PUBLISH_VERSION
=
'1.0.
1
'
//版本号
PUBLISH_VERSION
=
'1.0.
2
'
//版本号
}
}
...
...
sobot_album/src/main/java/com/sobot/album/SobotAlbum.java
View file @
c4706238
...
@@ -42,6 +42,7 @@ import com.sobot.album.api.choice.VideoChoice;
...
@@ -42,6 +42,7 @@ import com.sobot.album.api.choice.VideoChoice;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
import
java.util.Locale
;
/**
/**
* 图片选择器
* 图片选择器
...
@@ -98,23 +99,14 @@ public final class SobotAlbum {
...
@@ -98,23 +99,14 @@ public final class SobotAlbum {
private
static
AlbumConfig
sAlbumConfig
;
private
static
AlbumConfig
sAlbumConfig
;
/**
* Initialize Album.
*
* @param albumConfig {@link AlbumConfig}.
*/
public
static
void
initialize
(
AlbumConfig
albumConfig
)
{
if
(
sAlbumConfig
==
null
)
sAlbumConfig
=
albumConfig
;
else
Log
.
w
(
"Album"
,
new
IllegalStateException
(
"Illegal operation, only allowed to configure once."
));
}
/**
/**
* Get the album configuration.
* Get the album configuration.
*/
*/
public
static
AlbumConfig
getAlbumConfig
()
{
public
static
AlbumConfig
getAlbumConfig
()
{
if
(
sAlbumConfig
==
null
)
{
if
(
sAlbumConfig
==
null
)
{
sAlbumConfig
=
AlbumConfig
.
newBuilder
(
null
).
build
();
sAlbumConfig
=
AlbumConfig
.
newBuilder
(
null
).
setAlbumLoader
(
new
SobotMediaLoader
())
.
setLocale
(
Locale
.
getDefault
()).
build
();
}
}
return
sAlbumConfig
;
return
sAlbumConfig
;
}
}
...
...
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