Commit Graph

52 Commits

Author SHA1 Message Date
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
Dan Motzenbecker 8d44114e4c merge fix 2015-10-31 14:58:03 -04:00
Dan Motzenbecker a660d861d8 om and om-next templates 2015-10-31 14:48:25 -04:00
Dan Motzenbecker 7aad7f13c8 update interface placeholder token in project.clj 2015-10-31 14:13:36 -04:00
David Mohl b65274fb1c version bump 2015-10-31 14:13:19 +09:00
David Mohl fb025bbbe9 changed :app/text to :app/msg because it conflicts with (text) 2015-10-27 15:57:02 +09:00
David Mohl e13db21194 changes required to make om.next work, bump to alpha11 2015-10-27 12:43:34 +09:00
David Mohl ab8e7bfeeb changed to use om.next 2015-10-26 13:12:42 +09:00
Dan Motzenbecker 43ef0cead8 bump cljs version 2015-10-16 23:54:46 -04:00
Dan Motzenbecker 16e5300043 update jsCodeLocation in AppDelegate.m 2015-10-11 11:23:16 -04:00
Dan Motzenbecker 89e0a26f9f removed repl start script from resources 2015-10-04 19:06:11 -04:00
Dan Motzenbecker 76bd9c6812 updated AppDelegate.m template for RN 0.11 2015-10-04 17:55:12 -04:00
Dan Motzenbecker c0f5f089d5 removed invalid prop from core template 2015-08-30 11:26:26 -04:00
Dan Motzenbecker c09dbad3db update clojure dependencies to latest 2015-08-30 00:27:51 -04:00
Dan Motzenbecker 086c359895 updated AppDelegate.m template 2015-08-29 16:41:58 -04:00
Dan Motzenbecker dbf9289bf1 cljs core skeleton 2015-08-25 23:50:58 -04:00
Dan Motzenbecker 6c5d707b44 AppDelegate.m template 2015-08-24 23:36:10 -04:00
Dan Motzenbecker 3ed94dbde6 AppDelegate.h template 2015-08-24 23:36:03 -04:00
Dan Motzenbecker be1faccc56 clj project template 2015-08-22 01:07:37 -04:00