File tree 4 files changed +29
-3
lines changed
dev.skidfuscator.obfuscator
main/java/dev/skidfuscator/obfuscator
test/java/dev/skidfuscator/test
4 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ dependencies {
22
22
23
23
implementation project(' :sdk' )
24
24
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
+
26
27
api ' com.github.Col-E:jphantom:1.4.3'
27
28
implementation ' dev.dirs:directories:26'
28
29
implementation ' de.femtopedia.dex2jar:dex2jar:2.4.24'
Original file line number Diff line number Diff line change 92
92
import org .topdank .byteengineer .commons .data .JarContents ;
93
93
94
94
import java .io .File ;
95
+ import java .io .IOException ;
95
96
import java .net .URI ;
96
97
97
98
import java .net .URL ;
@@ -383,7 +384,10 @@ public void run() {
383
384
384
385
private void _runAnalytics () {
385
386
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 ()
387
391
);
388
392
final MatomoRequest request = MatomoRequest .request ()
389
393
.siteId (1 )
@@ -392,6 +396,17 @@ private void _runAnalytics() {
392
396
.campaignName ("community" )
393
397
.campaignKeyword ("launch" )
394
398
.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 )
395
410
.eventAction ("launch" )
396
411
.eventCategory ("skidfuscator/community" )
397
412
.eventName ("Java" )
Original file line number Diff line number Diff line change 4
4
import lombok .experimental .UtilityClass ;
5
5
6
6
import java .lang .reflect .Array ;
7
+ import java .util .Base64 ;
7
8
import java .util .List ;
8
9
import java .util .Locale ;
9
10
@@ -62,4 +63,13 @@ public String toCamelCase(final String s) {
62
63
s .toUpperCase (Locale .ROOT ).replace (' ' , '_' )
63
64
);
64
65
}
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
+ }
65
75
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public void test2() throws Exception {
43
43
.config (new File (TestSkidfuscator .class .getResource ("/config/runtime_new.hocon" ).getFile ()))
44
44
.jmod (MiscUtil .getJavaVersion () > 8 )
45
45
.phantom (true )
46
- .analytics (false )
46
+ .analytics (true )
47
47
.debug (true )
48
48
.build ();
49
49
You can’t perform that action at this time.
0 commit comments