Skip to content

Instantly share code, notes, and snippets.

+1637 ms] I/zygote (16166): Do partial code cache collection, code=29KB, data=24KB
[ ] I/zygote (16166): After code cache collection, code=28KB, data=24KB
[ ] I/zygote (16166): Increasing code cache capacity to 128KB
[ +6 ms] W/zygote (16166): Unsupported class loader
[ +2 ms] W/zygote (16166): Skipping duplicate class check due to unsupported classloader
[ +9 ms] W/DynamiteModule(16166): Local module descriptor class for com.google.firebase.auth not found.
[ +1 ms] W/BiChannelGoogleApi(16166): [FirebaseAuth: ] getGoogleApiForMethod() returned Gms: com.google.firebase.auth.api.internal.zzal@31dfa88
[ +4 ms] W/DynamiteModule(16166): Local module descriptor class for com.google.firebase.auth not found.
[ +8 ms] I/FirebaseAuth(16166): [FirebaseAuth:] Loading module via FirebaseOptions.
[ ] I/FirebaseAuth(16166): [FirebaseAuth:] Preparing to create service connection to gms implementation
google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.
please apply google-services plugin at the bottom of the build file.
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
WARNING: The specified Android SDK Build Tools version (25.0.3) is ignored, as it is below the minimum supported version (26.0.2) for Android Gradle Plugin 3.0.1.
Android SDK Build Tools 26.0.2 will be used.
To suppress this warning, remove "buildToolsVersion '25.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (25.0.0) is ignored, as i
(dart2) $ ./gradlew :app:dependencies | grep -i -e firebase -e services | sort | uniq
+--- com.google.android.gms:play-services-base:9.0.0
+--- com.google.android.gms:play-services-basement:9.0.0 (*)
+--- com.google.firebase:firebase-iid:9.0.0
\--- com.google.firebase:firebase-common:9.0.0 (*)
| +--- com.google.android.gms:play-services-basement:9.0.0 (*)
| +--- com.google.firebase:firebase-common:9.0.0 (*)
| \--- com.google.android.gms:play-services-tasks:9.0.0 (*)
| \--- com.google.firebase:firebase-common:9.0.0 (*)
+--- com.google.android.gms:play-services-basement:9.0.0
import 'dart:convert';
void main() {
try {
var resBody = {};
resBody["email"] = "employerA@gmail.com";
resBody["password"] = "admin123";
var user = {};
user["user"] = resBody;
String str = JSON.encode(user);
@zoechi
zoechi / main.dart
Created March 22, 2018 16:31
Uri.dataFromString() with smiley
final content1 = 'hello world';
final content2 = '❤';
void main() {
final dataUri1 = createDataUri(content1);
print(dataUri1);
final dataUri2 = createDataUri(content2);
print(dataUri2);
}
analyzer:
language:
enableStrictCallChecks: true
enableSuperMixins: true
strong-mode:
declaration-casts: false
implicit-casts: false
implicit-dynamic: false
// not tested with binding expressions (port of http://stackoverflow.com/a/31320384/217408)
// probably needs bound values set to `template`
injectBoundHtml(highlightedValue, $['container']);
// TODO(zoechi) create feature request to get this into the `Polymer` class
get _polymerBase {
final JsObject _polymer = context['Polymer'];
return (o) {
return o is JsObject ? o : new JsObject.fromBrowserObject(o);
}(_polymer['Base']);
@zoechi
zoechi / main.dart
Last active August 29, 2015 14:19
deduplicator transformer
// SO 29681639
import 'dart:convert';
import 'dart:async' show Future, Stream;
import 'dart:math' show Random;
final rnd = new Random();
main() {
lineStream()
.transform(new Utf8Decoder())
@zoechi
zoechi / main.dart
Last active August 29, 2015 14:19
set.contains with custom equals
// SO 29567322
class Action {
final Function function;
final String description;
Action(this.function, this.description);
call() => function();
int get hashCode => description.hashCode;
// SO 29629868
main() {
var languages = <String>["dart", "javascript", "coffeescript", "typescript"];
var tmpList = languages.map((e) => e.toUpperCase()).toList();
print(tmpList);
}