Commits

Anonymous committed 4541ef9

removed class id and length from read/load of dart protocol object

  • Participants
  • Parent commits 9454556

Comments (0)

Files changed (2)

core/src/main/java/TestMain.java

+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+
+/**
+ * Created with IntelliJ IDEA.
+ * User: patric
+ * Date: 23/12/13
+ * Time: 21:56
+ * To change this template use File | Settings | File Templates.
+ */
+public class TestMain {
+
+    public static void main(String... arg) throws UnsupportedEncodingException {
+        String val = "";
+        byte[] utf8 = val.getBytes("UTF-8");
+
+        System.out.println("LENGTH ==== " + utf8.length);
+
+    }
+}

maven/protocol-generator-plugin/src/main/scripts/dart_generator.rb

   end
 
   def end_save
-    wi("return byteArray;")
+    wi('return byteArray;')
     @indent_level -= 1
     wi("}")
   end
   def library(structs,name)
     wi("library #{name};")
     wi("import '../firebase/firebase_api.dart';")
-    wi("part '#{name}_protocol_object_factory'")
+    wi("part '#{name}_protocol_object_factory.dart';")
     wi("part 'enums.dart';");
     structs.each do |struct|
       wi("part '#{dartfile(struct.name)}';",0)