Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completely remove live reloading functionality. #818

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ end
|---|---|---|
|[![ProMotion SplitScreens](https://f.cloud.github.com/assets/1479215/1534507/0edb8dd4-4c96-11e3-9896-d4583d0ed161.png)](http://promotion.readthedocs.org/en/master/Reference/ProMotion%20SplitScreen/)|[![MapScreen](https://f.cloud.github.com/assets/1479215/1534628/f7dbf7e8-4c97-11e3-8817-4c2a58824771.png)](http://promotion.readthedocs.org/en/master/Reference/ProMotion%20MapScreen/)|[![ProMotion WebScreen](https://f.cloud.github.com/assets/1479215/1534631/ffe1b36a-4c97-11e3-8c8f-c7b14e26182d.png)](http://promotion.readthedocs.org/en/master/Reference/ProMotion%20WebScreen/)|

**NEW** [Live reloading!](http://promotion.readthedocs.org/en/master/Guides/Live Screen Reloading/) Use `pm_live` to enable it, and `on_live_reload` in your screen to refresh things.

#### ...and much more.

## Getting Started
Expand Down
55 changes: 0 additions & 55 deletions docs/Guides/Live Screen Reloading.md

This file was deleted.

4 changes: 0 additions & 4 deletions lib/ProMotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@
app.files.insert(insert_point, file)
end

app.development do
app.info_plist["ProjectRootPath"] ||= File.absolute_path(app.project_dir)
end

end
76 changes: 0 additions & 76 deletions lib/ProMotion/repl/live_reloader.rb

This file was deleted.

95 changes: 0 additions & 95 deletions lib/ProMotion/repl/repl.rb

This file was deleted.

5 changes: 0 additions & 5 deletions lib/ProMotion/screen/screen_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ def on_memory_warning
mp "Received memory warning in #{self.inspect}. You should implement on_memory_warning in your screen.", force_color: :red
end

def on_live_reload
self.view.subviews.each(&:removeFromSuperview)
on_load
end

def should_rotate(orientation)
case orientation
when UIInterfaceOrientationPortrait
Expand Down
4 changes: 0 additions & 4 deletions lib/ProMotion/table/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ def screen_setup
set_up_row_height
end

def on_live_reload
update_table_data
end

def check_table_data
mp("Missing #table_data method in TableScreen #{self.class.to_s}.", force_color: :red) unless self.respond_to?(:table_data)
end
Expand Down
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pages:
- ["Guides/Getting Started.md", "Guide - Getting Started"]
- ["Guides/Making Your Own Screens.md", "Guide - Making Your Own Screens"]
- ["Guides/Migration Guide - ProMotion-1.2-to-2.0.md", "Migration Guide - ProMotion-1.2-to-2.0"]
- ["Guides/Live Screen Reloading.md", "Live Screen Reloading"]
- ["Reference/Command Line Tool.md", "API Reference - Command Line Tool"]
- ["Reference/ProMotion Delegate.md", "API Reference - ProMotion Delegate"]
- ["Reference/ProMotion MapScreen.md", "API Reference - ProMotion MapScreen"]
Expand Down