|
|
|
@ -18,6 +18,7 @@ |
|
|
|
|
|
|
|
|
|
package xyz.fycz.myreader.common; |
|
|
|
|
|
|
|
|
|
import android.annotation.SuppressLint; |
|
|
|
|
import android.os.Environment; |
|
|
|
|
import android.provider.Settings; |
|
|
|
|
|
|
|
|
@ -31,13 +32,15 @@ import xyz.fycz.myreader.util.utils.FileUtils; |
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
import java.lang.reflect.Type; |
|
|
|
|
import java.text.DateFormat; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.util.Map; |
|
|
|
|
import java.util.regex.Pattern; |
|
|
|
|
|
|
|
|
|
import javax.script.ScriptEngine; |
|
|
|
|
import javax.script.ScriptEngineManager; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("SimpleDateFormat") |
|
|
|
|
public class APPCONST { |
|
|
|
|
|
|
|
|
|
public static String publicKey = "fyds2.0";//服务端公钥
|
|
|
|
@ -163,6 +166,8 @@ public class APPCONST { |
|
|
|
|
|
|
|
|
|
public static final String androidId = getAndroidId(); |
|
|
|
|
|
|
|
|
|
public static final DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm"); |
|
|
|
|
|
|
|
|
|
public static String getAndroidId() { |
|
|
|
|
return Settings.System.getString(App.getmContext().getContentResolver(), Settings.Secure.ANDROID_ID); |
|
|
|
|
} |
|
|
|
|