diff --git a/externs/externs.js b/externs/externs.js index bbccb9e30d..fe90dc972e 100644 --- a/externs/externs.js +++ b/externs/externs.js @@ -15,7 +15,9 @@ var TopLevel = { "capture" : function () {}, "catch" : function () {}, "Chance" : function () {}, +"clearCookies" : function () {}, "clearInterval" : function () {}, +"clearStorageAPIs" : function () {}, "clearTimeout" : function () {}, "Clipboard" : function () {}, "cloneWithRows" : function () {}, @@ -42,15 +44,14 @@ var TopLevel = { "DeviceEventEmitter" : function () {}, "digest" : function () {}, "Dimensions" : function () {}, -"disableYellowBox" : function () {}, "discardTransaction" : function () {}, "dy" : function () {}, "encrypt" : function () {}, "ENC_DEC" : function () {}, "end" : function () {}, "endCoordinates" : function () {}, +"Error" : function () {}, "eth" : function () {}, -"getBlock" : function () {}, "event" : function () {}, "fallbacks" : function () {}, "fetch" : function () {}, @@ -64,10 +65,13 @@ var TopLevel = { "generate" : function () {}, "get" : function () {}, "getAll" : function () {}, +"getBlock" : function () {}, +"getCardId" : function () {}, +"getExample" : function () {}, "getInitialOrientation" : function () {}, "getLayout" : function () {}, "getNumber" : function () {}, -"getExample" : function () {}, +"getSyncing" : function () {}, "getTime" : function () {}, "getTimezoneOffset" : function () {}, "goog" : function () {}, @@ -76,6 +80,8 @@ var TopLevel = { "height" : function () {}, "hex" : function () {}, "hide" : function () {}, +"HttpProvider" : function () {}, +"IBGLog" : function () {}, "indexOf" : function () {}, "initialPage" : function () {}, "initJail" : function () {}, @@ -83,8 +89,6 @@ var TopLevel = { "isConnected" : function () {}, "isMatches" : function () {}, "isMobile" : function () {}, -"isSyncing" : function () {}, -"getSyncing" : function () {}, "isValid" : function () {}, "Item" : function () {}, "JSON" : function () {}, @@ -92,6 +96,7 @@ var TopLevel = { "Keyboard" : function () {}, "layout" : function () {}, "length" : function () {}, +"Linking" : function () {}, "locale" : function () {}, "lockToPortrait" : function () {}, "log" : function () {}, @@ -103,10 +108,12 @@ var TopLevel = { "moveY" : function () {}, "nativeEvent" : function () {}, "NativeModules" : function () {}, +"Number" : function () {}, "objects" : function () {}, "open" : function () {}, "openDrawer" : function () {}, "openPicker" : function () {}, +"openURL" : function () {}, "OS" : function () {}, "p" : function () {}, "panHandlers" : function () {}, @@ -115,20 +122,21 @@ var TopLevel = { "parse" : function () {}, "parseInt" : function () {}, "parseJail" : function () {}, -"clearCookies": function () {}, -"clearStorageAPIs": function () {}, "path" : function () {}, "Platform" : function () {}, "post" : function () {}, "prototype" : function () {}, +"providers" : function () {}, "push" : function () {}, "random" : function () {}, "randomBytes" : function () {}, "ReactNative" : function () {}, "readFile" : function () {}, +"readTag" : function () {}, "realm-class" : function () {}, "recoverAccount" : function () {}, "registerComponent" : function () {}, +"reload" : function () {}, "remove" : function () {}, "removeAllListeners" : function () {}, "require" : function () {}, @@ -166,6 +174,7 @@ var TopLevel = { "startsWith" : function () {}, "Status" : function () {}, "status" : function () {}, +"stop" : function () {}, "stopAnimation" : function () {}, "stopNodeRPCServer" : function () {}, "stopWatching" : function () {}, @@ -175,9 +184,12 @@ var TopLevel = { "text" : function () {}, "then" : function () {}, "timing" : function () {}, +"toAscii" : function () {}, "toBits" : function () {}, "toDecimal" : function () {}, +"toLocaleString" : function () {}, "toLowerCase" : function () {}, +"toNumber" : function () {}, "toString" : function () {}, "toUtf8" : function () {}, "translations" : function () {}, @@ -189,27 +201,11 @@ var TopLevel = { "vy" : function () {}, "Web3" : function () {}, "web3" : function () {}, -"providers" : function () {}, -"HttpProvider": function () {}, "width" : function () {}, "window" : function () {}, "write" : function () {}, +"writeTag" : function () {}, "x" : function () {}, "y" : function () {}, -"_value" : function () {}, -"ListView": function() {}, -"DataSource": function() {}, -"IBGLog": function() {}, -"getCardId": function() {}, -"readTag": function() {}, -"writeTag": function() {}, -"Error": function() {}, -"Linking": function() {}, -"reload": function() {}, -"stop": function() {}, -"toLocaleString": function() {}, -"openURL": function() {}, -"Number" : function () {}, -"toAscii" : function () {}, -"toNumber" : function () {} -}; +"_value" : function () {} +} \ No newline at end of file diff --git a/project.clj b/project.clj index ed3536b058..2c70636bc0 100644 --- a/project.clj +++ b/project.clj @@ -12,12 +12,14 @@ [tailrecursion/cljs-priority-map "1.2.0"] [com.taoensso/timbre "4.7.4"]] :plugins [[lein-cljsbuild "1.1.4"] - [lein-figwheel "0.5.8"]] + [lein-figwheel "0.5.8"] + [rasom/lein-externs "0.1.7"]] :clean-targets ["target/" "index.ios.js" "index.android.js"] :aliases {"prod-build" ^{:doc "Recompile code with prod profile."} ["do" "clean" ["with-profile" "prod" "cljsbuild" "once" "ios"] - ["with-profile" "prod" "cljsbuild" "once" "android"]]} + ["with-profile" "prod" "cljsbuild" "once" "android"]] + "generate-externs" ["with-profile" "prod" "externs" "android" "externs/externs.js"]} :test-paths ["test/clj"] :figwheel {:nrepl-port 7888} :profiles {:dev {:dependencies [[figwheel-sidecar "0.5.8"]