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
import okio.ByteString; | |
/** | |
* Created by leon on 8/23/15. | |
* 数据传输单元转换封装 | |
*/ | |
public class APDUUtils { | |
/** | |
* Eg: getBitInByte(0x80,7) == true |
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
public class FlyMeUtils { | |
/** | |
* setDarkStatusBar on FlyMe | |
* 设置状态栏字体为暗色 仅魅族有效 | |
*/ | |
public static void setDarkStatusBar(Activity activity, boolean isDark) { | |
WindowManager.LayoutParams lp = activity.getWindow().getAttributes(); | |
try { | |
Class<?> instance = Class.forName("android.view.WindowManager$LayoutParams"); |
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
buildTypes { | |
release { | |
minifyEnabled true //run proguard | |
shrinkResources true | |
proguardFile 'proguard-square.pro' | |
// Default proguard files(including support libs) | |
proguardFiles getDefaultProguardFile('proguard-android.txt') | |
} | |
} |
NewerOlder