mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 17:57:35 +01:00
[skip] fix spacing
This commit is contained in:
parent
dd5723cafa
commit
6d5fb63ee4
@ -28,30 +28,30 @@ import java.util.logging.Logger;
|
|||||||
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
* @author Ryszard Wiśniewski <brut.alll@gmail.com>
|
||||||
*/
|
*/
|
||||||
public class ApktoolProperties {
|
public class ApktoolProperties {
|
||||||
public static String get(String key) {
|
public static String get(String key) {
|
||||||
return get().getProperty(key);
|
return get().getProperty(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Properties get() {
|
public static Properties get() {
|
||||||
if (sProps == null) {
|
if (sProps == null) {
|
||||||
loadProps();
|
loadProps();
|
||||||
}
|
}
|
||||||
return sProps;
|
return sProps;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void loadProps() {
|
private static void loadProps() {
|
||||||
InputStream in = ApktoolProperties.class.getResourceAsStream("/properties/apktool.properties");
|
InputStream in = ApktoolProperties.class.getResourceAsStream("/properties/apktool.properties");
|
||||||
sProps = new Properties();
|
sProps = new Properties();
|
||||||
try {
|
try {
|
||||||
sProps.load(in);
|
sProps.load(in);
|
||||||
in.close();
|
in.close();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
LOGGER.warning("Can't load properties.");
|
LOGGER.warning("Can't load properties.");
|
||||||
}
|
}
|
||||||
|
|
||||||
InputStream templateStream = baksmali.class.getClassLoader().getResourceAsStream("baksmali.properties");
|
InputStream templateStream = baksmali.class.getClassLoader().getResourceAsStream("baksmali.properties");
|
||||||
Properties properties = new Properties();
|
Properties properties = new Properties();
|
||||||
String version = "(unknown)";
|
String version = "(unknown)";
|
||||||
|
|
||||||
if (templateStream != null) {
|
if (templateStream != null) {
|
||||||
try {
|
try {
|
||||||
@ -60,12 +60,12 @@ public class ApktoolProperties {
|
|||||||
} catch (IOException ignored) {
|
} catch (IOException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sProps.put("baksmaliVersion", version);
|
sProps.put("baksmaliVersion", version);
|
||||||
|
|
||||||
|
|
||||||
templateStream = main.class.getClassLoader().getResourceAsStream("smali.properties");
|
templateStream = main.class.getClassLoader().getResourceAsStream("smali.properties");
|
||||||
properties = new Properties();
|
properties = new Properties();
|
||||||
version = "(unknown)";
|
version = "(unknown)";
|
||||||
|
|
||||||
if (templateStream != null) {
|
if (templateStream != null) {
|
||||||
try {
|
try {
|
||||||
@ -74,11 +74,11 @@ public class ApktoolProperties {
|
|||||||
} catch (IOException ignored) {
|
} catch (IOException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sProps.put("smaliVersion", version);
|
sProps.put("smaliVersion", version);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Properties sProps;
|
private static Properties sProps;
|
||||||
|
|
||||||
private static final Logger LOGGER = Logger
|
private static final Logger LOGGER = Logger
|
||||||
.getLogger(ApktoolProperties.class.getName());
|
.getLogger(ApktoolProperties.class.getName());
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user