Skip to content

Commit 550697c

Browse files
committed
build script
1 parent 3446147 commit 550697c

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

lib-n-ide/build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ android {
3636
}
3737
}
3838

39+
task copyReleaseToJavaNIDE {
40+
if (file("C:\\github\\javaide\\lib-n-ide-release").exists()) {
41+
println "copyReleaseToJavaNIDE"
42+
copy {
43+
from("build/outputs/aar/lib-n-ide-release.aar")
44+
into("C:\\github\\javaide\\lib-n-ide-release")
45+
}
46+
}
47+
}
48+
49+
tasks.whenTaskAdded { task ->
50+
if (task.name == "assembleRelease") {
51+
task.doLast {
52+
copyReleaseToJavaNIDE
53+
}
54+
}
55+
}
56+
3957
dependencies {
4058
testImplementation 'junit:junit:4.12'
4159
testImplementation 'org.json:json:20180130'

lib-n-ide/src/main/java/com/jecelyin/editor/v2/Preferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public class Preferences implements SharedPreferences.OnSharedPreferenceChangeLi
6262
, ",", ";", "'", "\"", "(", ")", "/", "\\", "%", "[", "]", "|", "#", "=", "$", ":"
6363
, "&", "?", "!", "@", "^", "+", "*", "-", "_", "`", "\\t", "\\n"});
6464
public static final String KEY_AUTO_PAIR = "pref_auto_pair";
65-
private static final int[] THEMES = new int[]{R.style.LightTheme, R.style.DarkTheme};
6665
private static final String KEY_TOUCH_TO_ADJUST_TEXT_SIZE = "pref_touch_to_adjust_text_size";
6766
private static final String KEY_INSERT_SPACE_FOR_TAB = "pref_insert_space_for_tab";
6867
private static final String KEY_HIGHLIGHT_FILE_SIZE_LIMIT = "pref_highlight_file_size_limit";
@@ -76,6 +75,7 @@ public class Preferences implements SharedPreferences.OnSharedPreferenceChangeLi
7675
private static final String KEY_LAST_TAB = "last_tab";
7776
private static final Object mContent = new Object();
7877
private static Preferences instance;
78+
private static final int[] THEMES = new int[]{R.style.LightTheme, R.style.DarkTheme};
7979

8080
static {
8181
}

0 commit comments

Comments
 (0)