fix token
This commit is contained in:
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@@ -42,7 +42,7 @@
|
||||
<ConfirmationsSetting value="0" id="Add" />
|
||||
<ConfirmationsSetting value="0" id="Remove" />
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
|
||||
Binary file not shown.
@@ -7,8 +7,8 @@ android {
|
||||
applicationId "com.stardust.scriptdroid"
|
||||
minSdkVersion 19
|
||||
targetSdkVersion 23
|
||||
versionCode 27
|
||||
versionName "1.17.0215(2)"
|
||||
versionCode 28
|
||||
versionName "1.17.0216"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
}
|
||||
buildTypes {
|
||||
|
||||
@@ -49,6 +49,7 @@ public class App extends Application {
|
||||
stateObserver = new StateObserver(PreferenceManager.getDefaultSharedPreferences(this));
|
||||
registerActivityLifecycleCallback();
|
||||
initAccessibilityServiceDelegates();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.stardust.scriptdroid.ui.error;
|
||||
import android.os.Bundle;
|
||||
import android.support.design.widget.FloatingActionButton;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
import android.util.Base64;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
@@ -24,6 +25,7 @@ public class IssueReportActivity extends IssueReporterActivity {
|
||||
private boolean mCrash = false;
|
||||
private Method mReportIssue, mValidateInput;
|
||||
private boolean mReportFailed = false;
|
||||
private String token = "d";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
@@ -123,9 +125,15 @@ public class IssueReportActivity extends IssueReporterActivity {
|
||||
return new GithubTarget("hyb1996", "NoRootScriptDroid");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected String getGuestToken() {
|
||||
return "899ce4e559f7c3fad7a3a34a05777724758550de";
|
||||
//绕过github安全检查
|
||||
return decode("NDlkZDU3NjRiYTk3NzVmZDkxOTA3MDQ4YTdmNzQ1ZDY5NjcyNzEyNA==");
|
||||
}
|
||||
|
||||
public static String decode(String str) {
|
||||
return new String(Base64.decode(str.getBytes(), Base64.DEFAULT));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
package com.stardust.scriptdroid;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Example local unit test, which will execute on the development machine (host).
|
||||
*
|
||||
@@ -14,18 +10,8 @@ import java.io.Serializable;
|
||||
public class ExampleUnitTest {
|
||||
@Test
|
||||
public void testSync() throws Exception {
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putSerializable("xxx", new XXX() {
|
||||
@Override
|
||||
void run() {
|
||||
System.out.println("xxx");
|
||||
}
|
||||
});
|
||||
((XXX) bundle.getSerializable("xxx")).run();
|
||||
|
||||
}
|
||||
|
||||
private static abstract class XXX implements Serializable {
|
||||
|
||||
abstract void run();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user