Commit Graph

70 Commits

Author SHA1 Message Date
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
Artur Girenko 927b5de7fe make Figwheel work without the need of Debug in Chrome
- solution by https://github.com/decker405/figwheel-react-native
- remove use-reload command.
- adoptions to figwheel-bridge.js
2015-12-05 23:53:27 +01:00
Artur Girenko 3f96a1384a fix problem of application state reset on each figwheel reload
The application state should stay intact when UI code is reloaded.
2015-11-29 22:10:01 +01:00
Artur Girenko a4a8d09fe7 Support loading of static images using approach introduced in RN 0.14
- Used macro to generate js/require for prod compilation and {:uri http://localhost:8080/*} for dev builds.
- Rearranged sources to be able to support dev and prod profiles
2015-11-28 16:20:39 +01:00
Artur Girenko c482fe17ec Delete unused Podfile 2015-11-28 11:18:23 +01:00
Artur Girenko 2ec9c9ba83 mention original source in figwheel-breidge.js 2015-11-28 00:46:17 +01:00
Artur Girenko ca577b035f Use lein-figwheel
- Removed REPL based on ambly for now, need to find a good solution for both iOS and Android
- Added figwheel based on great work found in https://github.com/decker405/figwheel-react-native
- Android still does not work with figwheel, but reload works very fast
2015-11-27 23:57:14 +01:00
Artur Girenko f70ae59b55 Use plain vanilla React Native reload based development flow for iOS and Android
- Removed REPL based on ambly for now, need to find a good solution for both iOS and Android
2015-11-24 22:44:57 +01:00
Artur Girenko 05d5efafd1 Fix broken live coding support in iOS
- Revert to react-native 0.13.0 for now
- Use single source root, this seems required for repl
2015-11-22 10:57:51 +01:00
Artur Girenko 6a12a0cf52 Fix compilation problems 2015-11-20 22:43:47 +01:00
Artur Girenko 39580ba6ba Delete unused om files 2015-11-20 20:45:33 +01:00
Artur Girenko 7f22f2288f Add additional resources 2015-11-20 20:22:02 +01:00
Artur Girenko 379e79ad9c Added dependency to reagent and re-frame in project.clj 2015-11-20 20:12:33 +01:00
Artur Girenko eb070739e5 Add .gitignore 2015-11-20 20:07:42 +01:00
Dan Motzenbecker 5d91bc5dae use natal-shell in om next template 2015-11-15 23:57:01 -05:00
Dan Motzenbecker 3bb110e743 use natal-shell in om template 2015-11-15 23:56:45 -05:00
Dan Motzenbecker d446960264 use natal-shell 2015-11-15 23:56:16 -05:00
Dan Motzenbecker 5be7eef7af fixed typos in comments 2015-11-15 17:04:17 -05:00
Dan Motzenbecker fceb75dd31 template view styling tweaks 2015-11-14 18:16:30 -05:00
Dan Motzenbecker 6f7c2a1d19 removed unneeded line from om-next template 2015-11-03 22:54:53 -05:00
Dan Motzenbecker 2a732650c9 removed core.cljs 2015-10-31 14:58:25 -04:00