11package pojlib .util ;
22
3+ import android .app .Activity ;
34import android .os .Environment ;
45
56import java .io .File ;
67
78public class Constants {
89
9- public static String MOJANG_META_URL = "https://piston-meta.mojang.com" ;
10+ public static final String MOJANG_META_URL = "https://piston-meta.mojang.com" ;
1011
11- public static String MOJANG_RESOURCES_URL = "https://resources.download.minecraft.net" ;
12+ public static final String MOJANG_RESOURCES_URL = "https://resources.download.minecraft.net" ;
1213
13- public static String FABRIC_META_URL = "https://meta.fabricmc.net/v2" ;
14+ public static final String FABRIC_META_URL = "https://meta.fabricmc.net/v2" ;
1415
15- public static String QUILT_META_URL = "https://meta.quiltmc.org/v3" ;
16+ public static final String QUILT_META_URL = "https://meta.quiltmc.org/v3" ;
1617
17- public static String OAUTH_TOKEN_URL = "https://login.live.com/oauth20_token.srf" ;
18+ public static final String OAUTH_TOKEN_URL = "https://login.live.com/oauth20_token.srf" ;
1819
19- public static String XBL_AUTH_URL = "https://user.auth.xboxlive.com/user/authenticate" ;
20+ public static final String XBL_AUTH_URL = "https://user.auth.xboxlive.com/user/authenticate" ;
2021
21- public static String XSTS_AUTH_URL = "https://xsts.auth.xboxlive.com/xsts/authorize" ;
22+ public static final String XSTS_AUTH_URL = "https://xsts.auth.xboxlive.com/xsts/authorize" ;
2223
23- public static String MC_LOGIN_URL = "https://api.minecraftservices.com/authentication/login_with_xbox" ;
24+ public static final String MC_LOGIN_URL = "https://api.minecraftservices.com/authentication/login_with_xbox" ;
2425
25- public static String MC_STORE_URL = "https://api.minecraftservices.com/entitlements/mcstore" ;
26+ public static final String MC_STORE_URL = "https://api.minecraftservices.com/entitlements/mcstore" ;
2627
27- public static String MC_PROFILE_URL = "https://api.minecraftservices.com/minecraft/profile" ;
28+ public static final String MC_PROFILE_URL = "https://api.minecraftservices.com/minecraft/profile" ;
2829
29- public static String MINOTAR_URL = "https://minotar.net" ;
30+ public static final String MINOTAR_URL = "https://minotar.net" ;
3031
31- public static String USER_HOME = new File (Environment .getExternalStorageDirectory (),"Android/data/com.qcxr.qcxr/files" ).getAbsolutePath ();
32+ public static String USER_HOME ;
33+
34+ public static void initConstants (Activity activity ) {
35+ USER_HOME = activity .getExternalFilesDir (null ).getAbsolutePath ();
36+ }
3237}
0 commit comments