-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bac858
commit b39cc45
Showing
20 changed files
with
398 additions
and
503 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 0 additions & 38 deletions
38
common/src/main/java/com/zhongjh/common/entity/MediaExtraInfo.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
common/src/main/java/com/zhongjh/common/entity/MediaExtraInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.zhongjh.common.entity | ||
|
||
/** | ||
* 多媒体参数类 | ||
* | ||
* @author zhongjh | ||
* @date 2022/2/08 | ||
*/ | ||
class MediaExtraInfo { | ||
var width: Int = 0 | ||
var height: Int = 0 | ||
var duration: Long = 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
common/src/main/java/com/zhongjh/common/utils/AppUtils.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.zhongjh.common.utils | ||
|
||
import android.content.Context | ||
|
||
/** | ||
* | ||
* 跟App相关的辅助类 | ||
* @author zhongjh | ||
* @date 2021/9/10 | ||
*/ | ||
object AppUtils { | ||
/** | ||
* 获取应用程序名称 | ||
*/ | ||
@JvmStatic | ||
fun getAppName(context: Context): String { | ||
val packageManager = context.packageManager | ||
val packageInfo = packageManager.getPackageInfo( | ||
context.packageName, 0) | ||
val labelRes = packageInfo.applicationInfo.labelRes | ||
return context.resources.getString(labelRes) | ||
} | ||
} |
148 changes: 0 additions & 148 deletions
148
common/src/main/java/com/zhongjh/common/utils/MediaUtils.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.