Clone this repo:
$ git clone https://github.com/ice1000/dev-kt.git
Then:
- (Optional) Download and decompress Sarasa Gothic font to
res/font
- As reference you can see this shell script
- (Optional) Run
gradlew :swing:downloadFiraCode
- If you don't do this, the editor font will be extremely ugly
- Use
gradlew :swing:fatJar
to build this application - Run this application with
java -jar swing/build/libs/devkt-[some unimportant text]-all.jar
BTW if you don't need the "run" function of DevKt,
you can simply run this application by gradlew :swing:run
.
- Use as much
@NotNull
and@Nullable
as you can in Java codes except local variables
- Break the code style -- use tab indents with spaces aligns
- Open pull requests just to fix code style, or use some syntax sugar (DevKt is not SharpLang!)
- Add any kind of generated file into the git repo (including the parser!)
- Violate the open source license
- Use Kotlin except UI, but if you only know Java, never mind, we can help you convert
- Name your files like
xxx-xxx.kt
- Put all highly related classes into a single file
- Use English, but we also read Chinese so if you only know Chinese just use it
- Write commit message starting with
[ issue id or refactor type ]
- Write comments, except you're using magics. Tell us if you do so
- Write tests, because we'll review your codes carefully