Commit
* Remove old project and add start basic project. - Delete the old light version of the app. - Create new project targeting and compiling to the latest SDK and build tools (25 / 25.0.2) with minSdk 16, latest AppCompat (25.3.1) and Gradle plugin. - Edit travis config file to use latest tools. - Set up a simple activity with a working WebView and basic edit text to load websites and DDG searches. * Make travis build the app * Remove unused dependencies * Some more work on the project and browser - Add theme xml file - Correctly set back/forward menu button visibility and handle the back button press - Add custom WebViewClient to handle onStart and onFinish page events * Add basic support for Intent action: VIEW, WEB_SEARCH and ASSIST. * More work on base browser and build process: - Add lint check and fail builds on lint errors and warnings. - Fix all the lint errors and warnings. - Style a little the Appbar, set proper url or DDG query when browsing. - Disable the refresh button on startup when there's nothing to refresh - Set configChanges in the main activity to prevent the WebView to reload on every rotation change (we'll see if there's a better way to preserve the state without using this) * Change DDGUrHelper class to AppUrls similar to iOS and add some unit tests * Architecture and tests work: - Removed base interfaces for view and presenter, move to a light MVP implementation. Inject the presenter from a temp static Map. - Add some basic test for the browser presenter. - Add a progress bar when a page is loading. * Add tests for UrlUtils class, and for progress changes in the browser presenter * Clean dependencies, and test files, clean travis config file. - Remove unused espresso dependency and base test. - Remove loading emulator in the travis config file and run "./gradlew clean build". - Add few more tests - Add @nullable and @nonnull annotation to the interfaces. * Move colors from layout to color xml value file * Remove unused imports * Make hardcoded progress in the BrowserPresenterImpl a constant, remove comment and handle ACTION_DOWN and KEYCODE_ENTER in BrowserFragment, make activity fields private. * Handle catch statement, use assertTrue and assertFasle in test, split shouldHandleBackButtonCorrectly in two different tests * Change all test names to be in line with the "when<SomeCondition>Then<Expectation>" * Start with Omnibar menu items disabled, the presenter will enable items when they will be available during the session * Rename two tests with the wrong naming * Move WebView.onDestroy() in Fragment.OnDestroyView: to avoid crash in the emulator when pressing the back button. We should destroy the view when all the other view are destroyed rather then just onDestroy. * Fix url not loading in API >= 24, switch shouldOverrideUrlLoading to return false, not true! * Remove all .idea/ files already in gitignore from the repo * Format all code to defaults
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.