This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+android.enableD8.desugaring=true | |
+android.databinding.enableV2=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name=”ProjectCodeStyleConfiguration”> | |
<state> | |
<option name=”USE_PER_PROJECT_SETTINGS” value=”true” /> | |
</state> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name=”ProjectCodeStyleConfiguration”> | |
<code_scheme name=”Project” version=”173"> | |
<option name=”USE_SAME_INDENTS” value=”true” /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-!.idea/codeStyleSettings.xml | |
+!.idea/codeStyles/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.databinding.ObservableField | |
class NonNullObservableField<T : Any>(value: T) : ObservableField<T>(value) { | |
override fun get(): T { | |
return super.get() as T | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final SimpleItem item = new SimpleItem.Builder("all: this is the title") | |
.text("this is the text") | |
.image(R.drawable.ic_list_black_24dp) | |
.clickListener(new View.OnClickListener() { | |
@Override public void onClick(View v) { | |
Toast.makeText(App.this, "click",Toast.LENGTH_SHORT).show(); | |
} | |
}) | |
.build(); | |
SimpleItemHyperionPlugin.addItem(item); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git status -s|awk '$1=="D"&&substr($2,length($2)-4)==".java"{ | |
file=substr($2,0,length($2)-5); | |
getline; | |
if(substr($2,0,length($2)-3)==file){ | |
print "mv " file".kt " file".kt_bak\ngit checkout HEAD "file".java\ngit mv " file".java "file".kt\ngit add "file".kt\nmv "file".kt_bak " file".kt" | |
} | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
main() async{ | |
// ① | |
asyncFunc1().then((_) => asyncFunc2()).then((result) { | |
print(result); | |
}); | |
// ② | |
var asyncResult1 = await asyncFunc1(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
void main() { | |
asyncInvoker().then((_) { | |
print("async done"); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MemoryLeak.setWatcher(refWatcher(this).listenerServiceClass(DisplayLeakService::class.java) | |
.excludedRefs(AndroidExcludedRefs | |
.createAppDefaults().apply { | |
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.O_MR1) { | |
staticField("android.view.ViewGroup\$ViewLocationHolder", "sPool") | |
staticField("android.view.inputmethod.InputMethodManager", "sInstance") | |
} | |
} | |
.build()) | |
.buildAndInstall()) |