add annotation obf :3
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 1m55s

This commit is contained in:
Daniella / Tove 2024-06-11 18:28:24 +02:00
parent 6ce78541ef
commit 1b67cf9d2e
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
4 changed files with 13 additions and 3 deletions

View file

@ -15,7 +15,7 @@
<method v="2" />
</configuration>
<configuration default="false" name="mobf" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="bash mobf.sh Client/build/libs/BaseBand-Broadway.jar Loader/build/proguard/BaseBand-Loader.jar" />
<option name="SCRIPT_TEXT" value="bash mobf.sh Client/build/proguard/BaseBand-Broadway.jar Loader/build/proguard/BaseBand-Loader.jar" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="$PROJECT_DIR$/mobf.sh" />
<option name="SCRIPT_OPTIONS" value="*/build/proguard/BaseBand-*.jar" />

View file

@ -11,6 +11,7 @@ import com.baseband.client.registry.Configuration;
import com.baseband.client.registry.Updater;
import com.baseband.client.util.interact.Chat;
import de.tudbut.tools.Lock;
import hint.Mobf;
import net.minecraft.client.Minecraft;
import net.minecraftforge.common.MinecraftForge;
import org.apache.logging.log4j.LogManager;
@ -20,7 +21,7 @@ import java.lang.reflect.Method;
import java.security.SecureRandom;
import java.util.Arrays;
@Mobf("annotation")
public class BaseBand {
public static final Logger LOGGER = LogManager.getLogger("BaseBand");
public static final SecureRandom RANDOM = new SecureRandom();

View file

@ -0,0 +1,9 @@
package hint;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Mobf {
String value();
}

View file

@ -3,5 +3,5 @@
curl https://data.tudbut.de/mobf.jar > mobf.jar
for file in "$@" ; do
echo "$file"
java -jar mobf.jar !mixin !org/ !spotify !google !sun !oshi -k "$file" || exit 1
java -jar mobf.jar !mixins !org/ !spotify !google !sun !oshi -k "$file" || exit 1
done