Commit Graph

74 Commits

Author SHA1 Message Date
Synced Synapse 39e6ffa690 Bump version for release 2020-06-07 19:31:39 +02:00
DoomMortal ebae33755c AndroidX migration
Migration to AndroidX
- Update to API level 29
- Update Java sourcecode and xml import statements
- Upgrade Butterknife Version 10 AndroidX support
- Set Java 8 compile options due Butterknife needs it
2020-04-26 19:13:07 +02:00
H. Lehmann a16cf771ee
Do not set download button state when cancelling download (#731) 2020-04-25 10:03:58 +01:00
Synced Synapse 093ac09ef2 Bump version for release 2019-12-26 21:20:16 +01:00
Francesco Bonazzi b14524963f Stream local files with NanoHTTPD server (#681)
Added local file browser. NanoHTTPD is used to create a local HTTP server to allow to stream files stored on in Android device to Kodi. Added support for multiple local files streaming.
2019-12-03 18:17:19 +00:00
Martijn Brekhof 41b9f33cd2 Implemented changing language in-app (#680)
This allows users to use a different supported locale than the one that
matches the device's locale.
2019-11-15 18:11:21 +00:00
Martijn Brekhof e5ab122b1d Updated gradle and compile and target SDK version (#640)
Had to upgrade robolectric as well as old version didn't
seem to cooperate with new gradle version.
2019-06-03 10:50:31 +01:00
Martijn Brekhof 00fe2d49a5 Added movie ratings to movie listview items (#613)
Redesigning rate text to a five star rating bar.
2019-02-26 20:08:46 +00:00
Synced Synapse 851b8b9059 Bump version for release 2019-02-11 11:20:06 +00:00
Synced Synapse 0c68ad1610
Bump version for release (#614) 2019-01-14 11:40:19 +00:00
Synced Synapse f7a63ae9a7 Add fastscroll to lists with RecyclerView 2019-01-12 14:26:36 +01:00
Synced Synapse 6fdc82e60c Bump version for release 2018-12-27 18:25:33 +00:00
Martijn Brekhof d634d9455e Refactored instrumentation tests to support RecyclerViews
* Fixed Espresso not waiting on ViewPager switching
* Removed BaseMediaActivityTests abstract class.
  Unfortunately the click action on list items now requires
  a unique item to be able to select the item to click.
  Therefore the tests from BaseMediaActivityTests have been
  moved to the specific test classes. This made the
  BaseMediaActivityTests class obsolete.
* Removed dependency on Context class in AddonsHandler and inlined
  the json data to allow the AddonsHandler to be initialized before
  the test activity is started. This was needed to have the
  AddonsActivityTests directly start the AddonsActivity, instead of
  first starting MoviesActivity and from there start the AddonsActivity.
2018-09-09 14:09:59 +01:00
Martijn Brekhof 3f5ccefe2e Refactored ListView into RecycleView
Implemented custom RecyclerView to support using an empty view and a
    auto fitted grid layout.

    Reenabled shared element transitions for Oreo
2018-09-01 16:44:10 +02:00
Synced Synapse 7346643fb9 Bump version for release 2018-07-07 14:10:36 +01:00
Synced Synapse 4d53a377e0
Bump version for release (#556) 2018-06-09 19:06:05 +01:00
Synced Synapse 179e0fb46a
Bump version for release (#546) 2018-05-26 12:55:06 +01:00
Synced Synapse d3dcb4eb82 Fix handling of drawables on pre Lollipop versions
Reverts the change introduced in f631efeca9 , which changed the way drawables were handled, which introduced issues on pre Lollipop.
2018-05-04 20:14:58 +02:00
Martijn Brekhof f631efeca9 Fixed issue with running many instrumentation tests (#536)
During tests, activities were not closed properly causing increasing
memory usage, which resulted in failing tests because of
out of memory errors.
This has been fixed by using the test orchestrator which runs
each test in its own instrumentation instance.

Removed the instrumentationTest flavor and replaced it by using the
default debug build type. The flavor was used to keep the required
permissions during testing separate from release versions. This can
also be accomplished using the debug build type.

The PagerSlidingTabStrip from astuetz doesn't work with the new
android build tools. As the project seems dead, I replaced it with
PagerTabStrip from the support library.
2018-05-03 11:04:04 +01:00
Martijn Brekhof 1d6f9c225e Updated espresso and test support library (#533) 2018-04-18 08:58:26 +01:00
Martijn Brekhof 2ed968456a Upgraded butterknife to 8.8.1 (#524)
Refactored MusicListFragment and PVRListFragment to use AbstractTabsFragment
Fixed scrolling in a nested scroll view using espresso
Fixed issue with setting and checking Kodi major version
2018-04-05 18:22:20 +01:00
Martijn Brekhof e2c39e35ba Redesigned playing movies on device running Kore
* Implemented a new widget "fabspeeddial"
   * Provides user with two options to play the media item. One
     option to play the item on Kodi, one to play it on the remote.
   * Replaced deprecated FAB button from
     com.melnykov:floatingactionbutton:1.3.0 with the FAB button from
     the design library
   * Implemented a busy indicator (pulsate) when fab button is clicked
     and JSON  API method is still pending
   * Added a setting to allow the user to disable local playback and
     revert back to the old behaviour
* Refactored AbstractFragmentInfo
   * Replaced RelativeLayout by CoordinatorLayout to support
     hiding/showing the FAB button when scrolling
   * Replaced the tree view observer to fade out art view when scrolling
     with a behavior for the CoordinaterLayout
* Removed empty theme file for v19
* Refactored HostConnection to allow new activities to attach its
  callbacks to any pending ApiMethod. This is required to support device
  configuration changes.
2018-02-09 11:23:52 +00:00
Synced Synapse 6713686604 Bump version for release 2018-01-03 19:56:40 +00:00
Martijn Brekhof b0e6d329f3 Fixed lint errors (#491)
Lint is complaining about the new launcher icons in 'res/mipmap-anydpi-v26'
are not in PNG format. These are now defined in XML and lint is probably
not aware of the new XML format for API v26 and higher.

This also fixes usage of "android:layout_marginEnd". Which is only
supported from API v17.

Added running lintFullRelease to travis-CI build.
2017-12-22 18:20:41 +00:00
Raafat Akkad fa6796475c Add Adaptive Icon For API 26+ (#450)
* Target Sdk Version 26
* Add Adaptive Icon For API 26+
* Update travis to compile against API 26
* Move SVG files to art/launcher/v26/ per CR
* Scale logo to 83%
* Update buildToolsVersion to 26.0.2
* Update travis build-tools to 26.0.2
2017-11-11 15:26:18 +00:00
Tamás Varga 8fb24ee806 unit test IDE execution improvements (#463)
* update README about Run Configuration setting
* update task that needs to depend on assembleFullDebug
** this was needed to run individual local tests
2017-10-01 12:34:45 +01:00
Synced Synapse 324d1e6251 Bump version for release 2017-09-15 17:01:43 +01:00
Synced Synapse a9c8fd7e56 Revert "Implemented a scalable control pad (remote) (#428)"
This reverts commit 3106a5fd61.
2017-09-15 16:08:52 +01:00
Synced Synapse 306609e340 Revert "Removed dependency on GridLayout in SquareGridLayout" (#446)
* Revert "Removed dependency on GridLayout in SquareGridLayout (#445)"
This reverts commit 876db18023.
2017-09-15 16:01:13 +01:00
Synced Synapse 1a979b3d6e Bump version for release 2017-09-08 19:19:13 +01:00
Martijn Brekhof 876db18023 Removed dependency on GridLayout in SquareGridLayout (#445)
* Removed using the GridLayout from the support library
     as this might be causing problems on devices that don't
     include the library correctly.
   * Replaced using the GridLayout measurement and layout implementations
     by our own implementation of a simple grid layout that will evenly distribute
     its children among a square sized grid.
2017-09-08 15:16:45 +01:00
Synced Synapse ee35c21a20 Bump version for release 2017-08-31 19:34:57 +01:00
Martijn Brekhof 3106a5fd61 Implemented a scalable control pad (remote) (#428)
* Refactored RemoteFragment and created a compound view for the
     actual remote. I called it ControlPad to make it more clear what
     its main function is.
   * Implemented a custom grid layout (SquareGridLayout) that will
     always be square. When its width and height are both set to
     match_parent, it will take the smallest of the two as the
     actual size.
   * For devices with a smallest width smaller then 360dp the ControlPad
     is sized to the maximum available space. For larger devices we still
     use the old fixed sizes.
2017-08-30 19:53:47 +01:00
Martijn Brekhof 8cd974137b Upgraded android gradle plugin to 2.3.3 (#431)
* Added dependency on assembleFullDebug before running unit tests.
     Apparently assembleFullDebugUnitTest does not include
     the sourceset for fullDebug as defined in app/build.gradle
2017-08-08 18:44:24 +01:00
Synced Synapse 0d73e278ba Update build tools 2017-07-27 20:22:49 +01:00
Martijn Brekhof cb430aa20d Implemented a slideup panel with media controls and info (#320)
* The slideup panel is only displayed when something is
         playing. It starts collapsed showing the media poster
         and title of what is currently playing.

       * Media controls implemented are volume, progress, shuffle,
         repeat and play/pause for all items. Next and previous are only
         available when a music item is playing.

       * In collapsed mode the panel will display the mute button only
         if Kodi is muted. The mute button in expanded mode is always
         visible.

       * Panel is enabled by default. Users can disable the panel
         in Settings

       * Implemented listening to Player.OnPropertyChanged notifications
         to update shuffle and repeat button states.
2017-07-13 19:10:49 +01:00
Synced Synapse 7186874471 Fix Travis build
Travis only gets the latest 50 git commits, which might not contain a tag that describes the version name, causing the build to fail. This change always returns a version name.
2017-06-26 10:45:15 +01:00
Synced Synapse 13abb4e9ea Bump version for release
Update release notes
2017-02-01 18:53:50 +00:00
Martijn Brekhof 872c329f8d Fixed the return transition for the shared element (#336)
Support library 25.1.0 contains a bug that causes the shared element return transition
to fail.
2017-01-06 11:45:40 +00:00
Mon Zafra 6e347b6b36 Materialized dialogs and preferences (#330)
* Changed platform AlertDialogs and preference.* to support lib counterparts
- added dependencies: support/preference-v7 for PreferenceFragmentCompat
  and Preference subclasses, support/preference-v14 for the
  MultiSelectListPreference
- simplified some AlertDialog.Builder calls and added non-null annotations
  to DialogFragment#onCreateDialog(Bundle) overrides to shut the IDE up
- UIUtils: changed static member avatarColorsIdx to local var because it's
  only used in one place and the value isn't cached
- layout/dialog_send_text: removed view vertical margins as they take
  way too much space for nothing.
- strings: shortened english preference titles
- themes: added PrefTheme and changed preference title font size to medium
  from large
- preferences: changed CheckBoxPreference to SwitchPreferenceCompat. these
  don't have the same issue described in #233 (tested in kitkat).

* Changed platform PreferenceManager in RemoteActivity to support pref

* Fixed M permissions

* Split prefs into 2 groups as per material design guidelines

* Changed prefs theme to v14.material

* Moved container padding to individual prefs; removed pref-v7 dependency
- this makes the item dividers touch the screen edges which i think looks
  better
- don't need to require preference-v7 because preference-v14 already
  does

* Moved PrefTheme attributes *{Start,End} to v17 override

* Fixed crash caused by rotating twice while a dialog is active

* Changed wording as suggested
2017-01-04 08:37:13 +00:00
Martijn Brekhof 3742263ec7 Fixed issue with sharing code between local and instrumentation tests (#335) 2017-01-03 16:14:22 +00:00
Synced Synapse c966e52ee4 Update android SDK/build toos/support library version 2016-12-23 08:50:34 +00:00
Synced Synapse a545bf03ef Update jmdns library. 2016-12-19 19:41:30 +00:00
Synced Synapse 6245a9c7d5 Use ExpandableTextView on Text views that expand on clicking them 2016-12-19 19:25:24 +00:00
Martijn Brekhof bbda7df4aa Refactored integration tests to use robolectric (#302)
* Updated travis build to include running local tests for each PR
* Removed unused methods from Utils.java
* Moved all resources required by both local and instrumentation tests
  to testUtils
* Added proguard rules for the test builds to prevent proguard from discarding
  the junit classes
2016-11-08 11:43:10 +00:00
Synced Synapse 333268b0b1 Update build tools version 2016-09-16 19:12:36 +01:00
Synced Synapse 1c025cfc82 Bump version for release
Upgrade gradle version
2016-07-09 16:18:02 +01:00
Martijn Brekhof acb87a7543 Fixed printing false message during gradle configuration phase 2016-06-20 14:44:23 +02:00
Synced Synapse 7819fb9f15 Fix gradle script to include default product flavor 2016-06-17 19:09:23 +01:00
Martijn Brekhof 6f60442e7b Implemented integration tests to test restoring search query
* Added perl tools to generate json files for music and movie data
* Upgraded build tools version, sdk compile version, and support libraries
  as this is required by the test packages.
* Added new product flavor instrumentationTest to make sure assets and settings
  required for testing do not also ship with a release version of Kore
2016-06-16 11:04:25 +02:00