File tree Expand file tree Collapse file tree
dev.skidfuscator.obfuscator
main/java/dev/skidfuscator/obfuscator
test/java/dev/skidfuscator/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ dependencies {
2222
2323 implementation project(' :sdk' )
2424 implementation ' com.github.lukfor:magic-progress:0.3.2'
25- implementation ' com.github.matomo-org:matomo-java-tracker:3.0.6'
25+ implementation(" org.piwik.java.tracking:matomo-java-tracker:3.4.0" )
26+
2627 api ' com.github.Col-E:jphantom:1.4.3'
2728 implementation ' dev.dirs:directories:26'
2829 implementation ' de.femtopedia.dex2jar:dex2jar:2.4.24'
Original file line number Diff line number Diff line change 9292import org .topdank .byteengineer .commons .data .JarContents ;
9393
9494import java .io .File ;
95+ import java .io .IOException ;
9596import java .net .URI ;
9697
9798import java .net .URL ;
@@ -383,7 +384,10 @@ public void run() {
383384
384385 private void _runAnalytics () {
385386 final MatomoTracker tracker = new MatomoTracker (
386- TrackerConfiguration .builder ().apiEndpoint (URI .create ("https://analytics.skidfuscator.dev/matomo.php" )).build ()
387+ TrackerConfiguration
388+ .builder ()
389+ .apiEndpoint (URI .create ("https://analytics.ghast.dev/matomo.php" ))
390+ .build ()
387391 );
388392 final MatomoRequest request = MatomoRequest .request ()
389393 .siteId (1 )
@@ -392,6 +396,17 @@ private void _runAnalytics() {
392396 .campaignName ("community" )
393397 .campaignKeyword ("launch" )
394398 .pluginJava (true )
399+ .userId (MiscUtil .getHwid ())
400+ .additionalParameters (Map .of (
401+ "version" , VERSION ,
402+ "java_version" , String .valueOf (MiscUtil .getJavaVersion ()),
403+ "os" , System .getProperty ("os.name" ),
404+ "os_version" , System .getProperty ("os.version" ),
405+ "os_arch" , System .getProperty ("os.arch" )
406+ ))
407+ .serverTime (System .currentTimeMillis ())
408+ .customAction (true )
409+ .apiVersion (VERSION )
395410 .eventAction ("launch" )
396411 .eventCategory ("skidfuscator/community" )
397412 .eventName ("Java" )
Original file line number Diff line number Diff line change 44import lombok .experimental .UtilityClass ;
55
66import java .lang .reflect .Array ;
7+ import java .util .Base64 ;
78import java .util .List ;
89import java .util .Locale ;
910
@@ -62,4 +63,13 @@ public String toCamelCase(final String s) {
6263 s .toUpperCase (Locale .ROOT ).replace (' ' , '_' )
6364 );
6465 }
66+
67+ public static String getHwid (){
68+ return "%s (%s [%s] C: %d)" .formatted (
69+ System .getProperty ("user.name" ),
70+ System .getProperty ("os.name" ),
71+ System .getProperty ("os.arch" ),
72+ Runtime .getRuntime ().availableProcessors ()
73+ );
74+ }
6575}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public void test2() throws Exception {
4343 .config (new File (TestSkidfuscator .class .getResource ("/config/runtime_new.hocon" ).getFile ()))
4444 .jmod (MiscUtil .getJavaVersion () > 8 )
4545 .phantom (true )
46- .analytics (false )
46+ .analytics (true )
4747 .debug (true )
4848 .build ();
4949
You can’t perform that action at this time.
0 commit comments