hunk.code_window: public class Constants {
     public static final String INITIAL_URL = null;
     public static final String SHELL_APP_SCHEME = null;
     public static final String API_HOST = "https://exp.host";
     public static final String ABI_VERSIONS;
     public static final String SDK_VERSIONS;
  
hunk.labels: keep add keep keep keep keep keep
hunk.after_edit:   private static final String TAG = Constants.class.getSimpleName();
     public static final String VERSION_NAME = null;
  
hunk.file_path: android/app/src/main/java/host/exp/exponent/Constants.java
hunk.type: add
file: /**
   * Copyright (c) 2015-present, Facebook, Inc.
   * All rights reserved.
   *
   * This source code is licensed under the BSD-style license found in the
   * LICENSE file in the root directory of this source tree. An additional grant
   * of patent rights can be found in the PATENTS file in the same directory.
   *
   * @providesModule ARTSerializablePath
   */
  'use strict';
  
  // TODO: Move this into an ART mode called "serialized" or something
  
  var Class = require('art/core/class.js');
  var Path = require('art/core/path.js');
  
  var MOVE_TO = 0;
  var CLOSE = 1;
  var LINE_TO = 2;
  var CURVE_TO = 3;
  var ARC = 4;
  
  var SerializablePath = Class(Path, {
  
    initialize: function(path) {
      this.reset();
      if (path instanceof SerializablePath) {
        this.path = path.path.slice(0);
      } else if (path) {
        if (path.applyToPath) {
          path.applyToPath(this);
        } else {
          this.push(path);
        }
      }
    },
  
    onReset: function() {
      this.path = [];
    },
  
    onMove: function(sx, sy, x, y) {
      this.path.push(MOVE_TO, x, y);
    },
  
    onLine: function(sx, sy, x, y) {
      this.path.push(LINE_TO, x, y);
    },
  
    onBezierCurve: function(sx, sy, p1x, p1y, p2x, p2y, x, y) {
      this.path.push(CURVE_TO, p1x, p1y, p2x, p2y, x, y);
    },
  
    _arcToBezier: Path.prototype.onArc,
  
    onArc: function(sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation) {
      if (rx !== ry || rotation) {
        return this._arcToBezier(
          sx, sy, ex, ey, cx, cy, rx, ry, sa, ea, ccw, rotation
        );
      }
      this.path.push(ARC, cx, cy, rx, sa, ea, ccw ? 0 : 1);
    },
  
    onClose: function() {
      this.path.push(CLOSE);
    },
  
    toJSON: function() {
      return this.path;
    }
  
  });
  
  module.exports = SerializablePath;
  