Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
IBMS
/
nativeview
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
77210a24
authored
Feb 25, 2022
by
huangzhicong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ad7b5181
8980838e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
app/build.gradle
+6
-1
app/src/main/java/com/maxrocky/nativeview/fragment/RecorderBottomSheet.kt
+1
-1
app/src/main/java/com/maxrocky/nativeview/model/Result.kt
+1
-0
No files found.
app/build.gradle
View file @
77210a24
...
...
@@ -43,10 +43,14 @@ static def packageTime() {
dependencies
{
implementation
'androidx.core:core-ktx:1.7.0'
implementation
'androidx.activity:activity:1.4.0'
def
activity_version
=
"1.4.0"
implementation
"androidx.activity:activity:$activity_version"
implementation
"androidx.activity:activity-ktx:$activity_version"
implementation
'androidx.appcompat:appcompat:1.4.1'
implementation
'com.google.android.material:material:1.5.0'
implementation
'androidx.constraintlayout:constraintlayout:2.1.3'
implementation
'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0'
implementation
'com.google.code.gson:gson:2.9.0'
implementation
(
'com.journeyapps:zxing-android-embedded:4.3.0'
)
{
transitive
=
false
}
implementation
'com.google.zxing:core:3.4.0'
...
...
@@ -60,6 +64,7 @@ dependencies {
def
lifecycle_version
=
"2.4.1"
kapt
"androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
implementation
"androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
implementation
"androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation
"androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
...
...
app/src/main/java/com/maxrocky/nativeview/fragment/RecorderBottomSheet.kt
View file @
77210a24
...
...
@@ -94,7 +94,7 @@ class RecorderBottomSheet : BottomSheetDialogFragment() {
start
=
view
.
findViewById
(
R
.
id
.
start
)
var
maxDuration
=
arguments
?.
getInt
(
ARG_MAX_DURATION
)
if
(
maxDuration
==
null
||
maxDuration
=
=
0
||
maxDuration
>
DEFAULT_MAX_RECORD_TIME
)
{
if
(
maxDuration
==
null
||
maxDuration
<
=
0
||
maxDuration
>
DEFAULT_MAX_RECORD_TIME
)
{
maxDuration
=
DEFAULT_MAX_RECORD_TIME
}
// 显示的录音限制时长不包含最大值,因此需要-1
...
...
app/src/main/java/com/maxrocky/nativeview/model/Result.kt
View file @
77210a24
...
...
@@ -20,6 +20,7 @@ class Result<T> {
}
fun
failed
(
msg
:
String
,
data
:
T
?
=
null
)
{
this
.
code
=
-
1
this
.
msg
=
msg
this
.
data
=
data
}
...
...
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