Skip to content

Commit

Permalink
Upload and Delete file api and implementation (#242)
Browse files Browse the repository at this point in the history
* feat: adds delete file functionality

* fix: change api route for file delete

* adds basic file upload functionality

* fix image null pointer error and switch to query params

* adds file upload progress event

* adds permission handler before uploading files

* adds check for duplicate file upload

* fix file not found bug

* adds feature to upload video files too

* refactor code

* adds bottom sheet for displaying upload options

* adds upload click listeners and callbacks in ServerFilesActivity

* implements camera upload functionality

* minor fixes and code clean up

* removes upload icon from title bar
  • Loading branch information
csoni111 authored and cpg committed Jul 14, 2017
1 parent a8ab614 commit 4551db6
Show file tree
Hide file tree
Showing 30 changed files with 1,298 additions and 139 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def formatStringField(field) {

dependencies {
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven { url 'https://maven.fabric.io/public' }
Expand Down Expand Up @@ -130,6 +131,7 @@ dependencies {
compile 'com.squareup.retrofit2:converter-gson:2.2.0'
compile 'com.squareup.okhttp3:logging-interceptor:3.6.0'
compile 'org.videolan:libvlc:2.1.1'
compile 'pub.devrel:easypermissions:0.4.2'
testCompile 'org.robolectric:robolectric:3.1.2'
testCompile 'junit:junit:4.12'
testCompile 'org.robolectric:shadows-multidex:3.0'
Expand Down
15 changes: 14 additions & 1 deletion src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
-->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="org.amahi.anywhere"
android:installLocation="auto">

Expand Down Expand Up @@ -47,6 +46,10 @@

<permission android:name="android.permission.MEDIA_CONTENT_CONTROL" />

<uses-feature
android:name="android.hardware.camera"
android:required="false"/>

<uses-feature
android:name="android.software.leanback"
android:required="false" />
Expand All @@ -63,6 +66,16 @@
android:theme="@style/Theme.Amahi"
android:banner="@drawable/tv_banner">

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="org.amahi.anywhere.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"/>
</provider>

<activity
android:name=".tv.activity.MainTVActivity"
android:theme="@style/Theme.Leanback.Browse">
Expand Down
Loading

0 comments on commit 4551db6

Please sign in to comment.