Commit Graph

90 Commits

Author SHA1 Message Date
amorokh a10bc8906b Parameterized platforms in project.clj 2017-04-12 12:07:11 +02:00
Travis McLane 1110e849d7 bump rum version to 0.10.8 2017-03-07 11:58:16 -06:00
TashaGospel ff3d444191 Upgrade to React Native 0.41.1 2017-02-21 20:40:08 +13:00
Artur Girenko aa6e476c03 make spec check message more clear 2016-10-31 18:44:24 +01:00
Fabian Aussems a2afd38e9a Logging the message where the error originates
helps a lot in finding the bug.
2016-10-24 12:53:42 +02:00
Toni Reina cc756c00af Update lein-figwheel version
Update it to latest version 0.5.8. Latest versions of lein-figwheel
generate the "figwheel.connect" including the build id, so I updated
figwheel-bridge to concat the platform id.
2016-10-13 21:30:25 +02:00
Artur Girenko 40d3de4eeb RN 0.35.0, lein-cljsbuild 1.1.4 2016-10-11 20:42:04 +02:00
Levi Tan Ong bb5689f3e6 Updates :builds to be compatible with latest cljsbuild
cljsbuild 1.1.4 requires :builds to be a sequential collection of maps with field :id
2016-10-10 16:14:30 +08:00
Evan Rubinton ef8780f806 Use interceptor factory(after) in reagent6/events.cljs 2016-10-03 12:43:09 -04:00
Evan Rubinton 1fe4fcd77a Update reagent6/events.cljs to use interceptors 2016-10-01 17:58:41 -04:00
Artur Girenko ebceff1db8 bump RN and re-frame version
- RN 0.32.0
- re-frame 0.8.0
2016-08-28 13:28:05 +02:00
Artur Girenko a000e19cf6 use latest ClojureScript 1.9.198 2016-08-13 09:44:14 +02:00
Artur Girenko e52b9cd4fd use re-frame 0.8.0 in reagent6 template 2016-08-07 14:01:34 +02:00
Gabriel Horner 3f9323b391 Switch schema for cljs.spec - close #60 2016-07-25 00:08:17 +02:00
Artur Girenko b55939219e simplify log function 2016-07-23 15:04:20 +02:00
Artur Girenko 29ede22315 improve showing compilation exception details in YellowBox
Figwheel logs compilation exception in several log messages, so need to buffer them to show in YellowBox.
- buffering starts on "Fighweel: Compile Exception"
- buffering stops on "Error on file"
2016-07-23 14:55:26 +02:00
Artur Girenko fc341e723b bump versions RN-> 0.29.2, Clojure/ClojureScript -> 1.8, Reagent -> 0.6.0-rc
- ReactNative server host updates had to be changed for 0.29.2: AppDelegate.m does not have host anymore, RegExp for host in RCTWebSocketExecutor.m had to be changed.
2016-07-20 11:34:06 +02:00
Rohit Aggarwal a2bd81b1d4 Set goog.DEBUG and only check schema in development 2016-05-14 17:07:15 +01:00
Artur Girenko 3cb3af47e3 make om-next and rum templates work nicely with RN 0.25+
- fix usage of React and ReactNative API by removing natal-shell dependency
2016-05-13 23:57:39 +02:00
Ducky 3521fc30c8 Added some compiler options for performance 2016-05-13 15:59:29 +01:00
Artur Girenko f68d03d755 properly use React and ReactNative APIs in figwheel-brdge.js 2016-05-12 16:29:41 +02:00
Artur Girenko 2c1913038e adopt reagent and reagent6 templates for RN 0.25 2016-05-05 18:35:20 +02:00
Artūr Girenko c9471bf636 Merge pull request #45 from webmonarch/add-rum
Add Rum support
2016-05-03 21:16:09 +02:00
Eric Webb 976b34910c Add Rum support 2016-05-02 18:18:58 -07:00
Artur Girenko ee2eeb6538 log errors to console to trigger a red screen fixes #44
- only the first logged error is shown in red screen, so need to real cause of problem logged in first error message
2016-05-02 21:55:20 +02:00
Artur Girenko 95a6fbb29e remove unused files 2016-04-09 11:44:28 +02:00
Artur Girenko 091bf38166 add interface 'reagent6' which uses reagent-0.6.0-alpha and re-frame-0.7.0 2016-04-09 11:20:16 +02:00
Artur Girenko bc7b661581 assign global React variable to via window, fixes #32
direct assignment does not work anymore
2016-03-27 18:45:07 +02:00
Artur Girenko 92b0876ce2 bugfix log wrapper function fixes #31 2016-03-22 22:29:59 +01:00
Artur Girenko 5d4d6d6651 debug logging is conditional in figwheel-bridge.js fixes #30 2016-03-21 23:05:45 +01:00
Artur Girenko 7fbfc7c293 do not assume the log message is a string. fixes #29 2016-03-21 20:55:02 +01:00
Artur Girenko cadeb152fc formatting 2016-03-20 12:10:09 +01:00
Artur Girenko dfa5cdece8 #4 remove fakeLocalStorageAndDocument function from figwheel-bridge.js
- using latest available version of lein-figwheel [0.5.0-6]
- figwheel now 'thinks' it is running in node.js environment (thanks @artemyarulin  for hints)
- figwheel :heads-up-display is now disabled. Compilation warnings are still logged and shown in yellow box on screen. (thanks @seantempesta for hint)
2016-03-20 11:25:45 +01:00
Artur Girenko f9317c7698 rename root-node to root-note! 2016-02-11 21:42:59 +01:00
Artur Girenko 59edcd3591 move app-state and reconciler to separate namespace 2016-02-11 00:24:17 +01:00
Artur Girenko ca43c940fb working solution with om-next stateful components
- added re-natal.support namespace which provides functions to make it possible mounting om root application not on "real" root node but on other component which acts as a root node.
2016-02-10 22:14:05 +01:00
Artur Girenko 6328174554 add PoC of om-next interface
Now it is just static ui which works with figwheel-bridge. Could not implement :jsload-callback tom make figwheel work correctly yet.
State has to be introduced next.
2016-02-07 19:43:43 +01:00
Artur Girenko d55d9d987c prepare code to support multiple react interfaces 2016-02-07 13:48:00 +01:00
Artur Girenko 42a9256805 do not force reload core namespace with ^:figwheel-load annotation
- forcing reloading core namespace (using ^:figwheel-load annotation) is wrong. It causes evaluation of wrong js files for platform because both ios and android core.js files are reloaded.
2016-01-30 18:12:21 +01:00
Artur Girenko eb969d8709 bugfix in fighweel-bridge.js
Bug description:
figwheel-bridge tracks the js file evaluation and when /env/<platform>/main.js script is evaluated it means that all app code is loaded and can be started. But in case user code contains custom namespace called *.main, then figwheel-bridge interpret the evaluation of this namespace incorrectly and tries to start app too early.
2016-01-27 21:42:07 +01:00
Artur Girenko 1b37d60ea0 support development of iOS and Android apps simultaneously #4
- remove setting up host from use-figwheel command
- introduce use-android-device command for changing android host. use-android-device command has to be executed only when user changes android device type for development
- change figwheel support functions in user.clj to support multiple builds
- add instructions to README of how to run iOS and Android simulators simultaneously
2016-01-24 13:46:34 +01:00
Artur Girenko 337bd49735 enable source maps in Debiug in Chrome mode
- use importScripts function when debugging in chrome
- patch packager to serve *.map files
2016-01-21 00:14:35 +01:00
Artur Girenko b4e94aa039 add a scan for images to 'use-figwheel' CLI command #11
- use-figwheel command scans for all files in image dirs (configured in .re-natal) and adds a require() call to each image index.*.js
 - removed require-img macros
 - core.cljs now uses normal 'js/require' function to load static image.
2016-01-17 13:32:42 +01:00
Artur Girenko a1d875ffbd make compilation errors and other problems appear in simulator screen #8
- do not use AppRegistry.registerRunnable for mounting component to id 1, this prevents warning to be shown in yellow box. Instead use AppRegistry.registerComponent
- shim some document functions so that enabled figwheel heads-up-display works without errors and logs warnings to console (that will be shown on screen in yellow box)
- figwheel splash component now loads real app and renders root component. That has to be done to avoid using AppRegistry.registerRunnable to render real app
2016-01-09 23:35:40 +01:00
Artur Girenko 768f191a63 add support of RN custom components with figwheel (issue #5)
- new CLI command use-component <name> which save name in .re-natal config for later use in use-figwheel command
- use-figwheel now generates a map of cached 'require' calls
- figwheel-bridge.js shims require function to lookup for components by name falls back to original if nothing found
2016-01-04 23:10:13 +01:00
Artur Girenko a125852aac add alert, it is now supported in both iOS and Android 2015-12-21 19:49:03 +01:00
Artur Girenko aeff45f8b5 read project.clj to get build config 2015-12-15 19:08:18 +01:00
Artur Girenko dc7941f77c add possibility to start figwheel from nREPL 2015-12-14 23:02:40 +01:00
Artur Girenko da97f17a0a follow best practices of re-frame and give an app-db a schema 2015-12-13 22:49:54 +01:00
Artur Girenko 577f7c6954 add support for configuring server host to support Android simulators
- Genymotion simulator should use 10.0.3.2 instead of localhost
- Stock android emulator should use 10.0.2.2 instead of localhost
2015-12-06 20:22:53 +01:00