forked from rRemix/APlayer
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
5 changed files
with
68 additions
and
32 deletions.
There are no files selected for viewing
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,16 @@ | ||
package remix.myplayer.misc | ||
|
||
import remix.myplayer.BuildConfig | ||
|
||
object AppInfo { | ||
val prettyPrinted by lazy { | ||
""" | ||
APPLICATION_ID: ${BuildConfig.APPLICATION_ID} | ||
VERSION_CODE: ${BuildConfig.VERSION_CODE} | ||
VERSION_NAME: ${BuildConfig.VERSION_NAME} | ||
FLAVOR: ${BuildConfig.FLAVOR} | ||
BUILD_TYPE: ${BuildConfig.BUILD_TYPE} | ||
GITHUB_SHA: ${BuildConfig.GITHUB_SHA} | ||
""".trimIndent() | ||
} | ||
} |
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,25 @@ | ||
package remix.myplayer.misc | ||
|
||
import android.os.Build | ||
|
||
object SystemInfo { | ||
private val supportedAbis: Array<String> by lazy { | ||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { | ||
Build.SUPPORTED_ABIS | ||
} else { | ||
@Suppress("deprecation") | ||
arrayOf(Build.CPU_ABI, Build.CPU_ABI2) | ||
} | ||
} | ||
|
||
val prettyPrinted: String by lazy { | ||
""" | ||
DISPLAY: ${Build.DISPLAY} | ||
SUPPORTED_ABIS: ${supportedAbis.contentToString()} | ||
MANUFACTURER: ${Build.MANUFACTURER} | ||
MODEL: ${Build.MODEL} | ||
RELEASE: ${Build.VERSION.RELEASE} | ||
SDK_INT: ${Build.VERSION.SDK_INT} | ||
""".trimIndent() | ||
} | ||
} |
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