Skip to content

Instantly share code, notes, and snippets.

View shuanghua's full-sized avatar
🍃
I

Sam.Mo shuanghua

🍃
I
  • Android Engineer
  • CN
View GitHub Profile
@shuanghua
shuanghua / ohmyposhv3-v2.json
Created October 20, 2021 05:34 — forked from shanselman/ohmyposhv3-v2.json
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@shuanghua
shuanghua / build.gradle.kts
Last active January 28, 2023 00:57
一份包含签名、DataBinding 等配置的 Android 项目 build.gradle.kts
// Project/keystore//keystore/xxxxxx.jks
// Project/keystore//keystore.properties
// < keystore.properties 内容> :
// storePassword=xxxxxxx
// keyPassword=xxxxxxx
// keyAlias=xxxxxxx
// storeFile=/keystore/xxxxxx.jks
import org.jetbrains.kotlin.konan.properties.Properties
@shuanghua
shuanghua / RestartAppUtil.java
Created April 21, 2023 01:44 — forked from imhet/RestartAppUtil.java
Android 重启应用的5种方式
/**
* 多种方式重启应用自身
*/
public class RestartAppUtil
{
/**
* 使用 AlarmManager 来帮助重启