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
// versionCode 的数值为当前时间与起始时间相差的分钟数。 | |
// 2017 年时,Google Play Store 支持最大的 versionCode 为 2_100_000_000 。2_100_000_000 分转化为年,大约为 3995 年。 | |
def versionCode | |
if (project.hasProperty("versionCode")) { | |
versionCode = project.property('versionCode').toInteger() | |
} else { | |
versionCode = (System.currentTimeMillis() - Date.parse("yyyy-MM-dd HH:mm:ss", "2020-03-27 11:11:11").time).intdiv(60 * 1000).intValue() | |
} |
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
editText.setCursorVisible(false); | |
editText.setFocusable(false); | |
editText.setFocusableInTouchMode(false); |
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 com.mpatric.mp3agic.ID3v1 | |
import com.mpatric.mp3agic.ID3v2 | |
import com.mpatric.mp3agic.ID3v24Tag | |
import com.mpatric.mp3agic.Mp3File | |
import groovy.json.JsonParser | |
import groovy.json.internal.JsonFastParser | |
import groovy.json.internal.ValueMap | |
import groovy.transform.Field | |
import sun.security.provider.MD5 |