├── demo ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── dimens.xml │ │ │ ├── drawable-v21 │ │ │ │ ├── send_button_bg.xml │ │ │ │ └── receive_button_bg.xml │ │ │ ├── drawable │ │ │ │ ├── send_button_bg.xml │ │ │ │ ├── receive_button_bg.xml │ │ │ │ ├── circle_receive_bg.xml │ │ │ │ ├── circle_send_bg.xml │ │ │ │ ├── circle_send_bg_pressed.xml │ │ │ │ └── circle_receive_bg_pressed.xml │ │ │ └── layout │ │ │ │ └── activity_demo.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── tml │ │ │ └── sharethem │ │ │ └── demo │ │ │ └── DemoActivity.java │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── tml │ │ │ └── sharethem │ │ │ └── demo │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── tml │ │ └── sharethem │ │ └── demo │ │ └── ExampleInstrumentedTest.java ├── demo-release.apk ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── screens ├── Group.png ├── Group-1.png ├── ic_launcher.png ├── screenshot-1.jpg ├── screenshot-2.jpg ├── screenshot-3.jpg ├── screenshot-web.png ├── google-play-badge.png ├── device-2017-01-09-233815.png ├── device-2017-01-09-233902.png ├── device-2017-01-09-235222.png ├── device-2017-01-09-235236.png └── device-2017-01-09-235350.png ├── .idea ├── copyright │ └── profiles_settings.xml ├── markdown-navigator │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml ├── misc.xml └── markdown-navigator.xml ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── library ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── drawable │ │ │ │ ├── list_divider.xml │ │ │ │ └── seekbar_progress_green.xml │ │ │ ├── values │ │ │ │ ├── dimens.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ └── layout │ │ │ │ ├── include_sender_list_item.xml │ │ │ │ ├── listitem_file.xml │ │ │ │ ├── listitem_receivers.xml │ │ │ │ ├── fragment_files_listing.xml │ │ │ │ ├── activity_receiver.xml │ │ │ │ └── activity_sender.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── tml │ │ │ │ └── sharethem │ │ │ │ ├── sender │ │ │ │ ├── FileTransferStatusListener.java │ │ │ │ ├── SHAREthemServer.java │ │ │ │ └── SHAREthemService.java │ │ │ │ ├── utils │ │ │ │ ├── RecyclerViewArrayAdapter.java │ │ │ │ ├── DividerItemDecoration.java │ │ │ │ ├── Utils.java │ │ │ │ ├── HotspotControl.java │ │ │ │ └── WifiUtils.java │ │ │ │ └── receiver │ │ │ │ ├── FilesListingFragment.java │ │ │ │ └── ReceiverActivity.java │ │ ├── assets │ │ │ └── web_talk.html │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── tomorrowland │ │ │ └── share_them │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── tomorrowland │ │ └── share_them │ │ └── ExampleInstrumentedTest.java ├── .gitignore ├── proguard-rules.pro └── build.gradle ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── gradlew ├── README.md └── LICENSE.md /demo/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':library', ':demo' 2 | -------------------------------------------------------------------------------- /demo/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /screens/Group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/Group.png -------------------------------------------------------------------------------- /screens/Group-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/Group-1.png -------------------------------------------------------------------------------- /demo/demo-release.apk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/demo/demo-release.apk -------------------------------------------------------------------------------- /screens/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/ic_launcher.png -------------------------------------------------------------------------------- /screens/screenshot-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/screenshot-1.jpg -------------------------------------------------------------------------------- /screens/screenshot-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/screenshot-2.jpg -------------------------------------------------------------------------------- /screens/screenshot-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/screenshot-3.jpg -------------------------------------------------------------------------------- /screens/screenshot-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/screenshot-web.png -------------------------------------------------------------------------------- /screens/google-play-badge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/google-play-badge.png -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /demo/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SHAREthem 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /screens/device-2017-01-09-233815.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/device-2017-01-09-233815.png -------------------------------------------------------------------------------- /screens/device-2017-01-09-233902.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/device-2017-01-09-233902.png -------------------------------------------------------------------------------- /screens/device-2017-01-09-235222.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/device-2017-01-09-235222.png -------------------------------------------------------------------------------- /screens/device-2017-01-09-235236.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/device-2017-01-09-235236.png -------------------------------------------------------------------------------- /screens/device-2017-01-09-235350.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/screens/device-2017-01-09-235350.png -------------------------------------------------------------------------------- /.idea/markdown-navigator/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /library/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/library/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/library/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/library/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/library/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sriharia/SHAREthem/HEAD/library/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /library/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | 9 | *.iml 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | /extras 10 | .externalNativeBuild 11 | -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable-v21/send_button_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable-v21/receive_button_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | -------------------------------------------------------------------------------- /demo/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 100dp 4 | 20sp 5 | 20dp 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 11 16:25:11 SGT 2018 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip 7 | -------------------------------------------------------------------------------- /library/src/main/res/drawable/list_divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /library/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10dp 4 | 15dp 5 | 5dp 6 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable/send_button_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable/receive_button_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /library/src/main/res/layout/include_sender_list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /library/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #03a9f4 4 | #8003a9f4 5 | #068cc9 6 | #FF4081 7 | #80FF4081 8 | 9 | #40FFFFFF 10 | 11 | #03a9f4 12 | 13 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /demo/src/test/java/com/tml/sharethem/demo/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.tml.sharethem.demo; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /library/src/test/java/com/tomorrowland/share_them/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.tomorrowland.share_them; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /demo/src/main/res/drawable/circle_receive_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable/circle_send_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /library/src/main/java/com/tml/sharethem/sender/FileTransferStatusListener.java: -------------------------------------------------------------------------------- 1 | package com.tml.sharethem.sender; 2 | 3 | /** 4 | * Created by Sri on 18/12/16. 5 | */ 6 | interface FileTransferStatusListener { 7 | void onBytesTransferProgress(String ip, String fileName, long totalSize, String spped, long currentSize, int percentageUploaded); 8 | void onBytesTransferCompleted(String ip, String fileName); 9 | void onBytesTransferStarted(String ip, String fileName); 10 | void onBytesTransferCancelled(String ip, String error, String fileName); 11 | } 12 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable/circle_send_bg_pressed.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /demo/src/main/res/drawable/circle_receive_bg_pressed.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 13 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /demo/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 22 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | -------------------------------------------------------------------------------- /library/src/main/res/drawable/seekbar_progress_green.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /demo/src/androidTest/java/com/tml/sharethem/demo/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.tml.sharethem.demo; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.tml.sharethem.demo", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /demo/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion project.ext.compileSdkVersion 5 | buildToolsVersion project.ext.buildToolsVersion 6 | 7 | defaultConfig { 8 | applicationId "com.tml.sharethem.demo" 9 | minSdkVersion 9 10 | targetSdkVersion project.ext.targetSdkVersion 11 | versionCode 90100 12 | versionName "1.0" 13 | 14 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 15 | 16 | } 17 | buildTypes { 18 | release { 19 | minifyEnabled false 20 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 21 | } 22 | } 23 | buildToolsVersion '26.0.2' 24 | } 25 | 26 | dependencies { 27 | compile fileTree(dir: 'libs', include: ['*.jar']) 28 | compile 'com.github.angads25:filepicker:1.0.6' 29 | compile project(':library') 30 | } 31 | -------------------------------------------------------------------------------- /library/src/androidTest/java/com/tomorrowland/share_them/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package com.tomorrowland.share_them; 2 | 3 | import android.content.Context; 4 | import android.support.test.InstrumentationRegistry; 5 | import android.support.test.runner.AndroidJUnit4; 6 | 7 | import org.junit.Test; 8 | import org.junit.runner.RunWith; 9 | 10 | import static org.junit.Assert.*; 11 | 12 | /** 13 | * Instrumentation test, which will execute on an Android device. 14 | * 15 | * @see Testing documentation 16 | */ 17 | @RunWith(AndroidJUnit4.class) 18 | public class ExampleInstrumentedTest { 19 | @Test 20 | public void useAppContext() throws Exception { 21 | // Context of the app under test. 22 | Context appContext = InstrumentationRegistry.getTargetContext(); 23 | 24 | assertEquals("com.tomorrowland.share_them", appContext.getPackageName()); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /library/src/main/res/layout/listitem_file.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 16 | 23 | -------------------------------------------------------------------------------- /library/src/main/res/layout/listitem_receivers.xml: -------------------------------------------------------------------------------- 1 | 2 | 12 | 13 | 19 | 20 | 25 | 26 | -------------------------------------------------------------------------------- /demo/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/Sri/Downloads/adt-bundle-mac-x86_64-20130219/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /library/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/Sri/Downloads/adt-bundle-mac-x86_64-20130219/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /library/src/main/assets/web_talk.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Spuul 5 | 7 | 10 | 11 | 12 | 13 |
14 | 15 | Download SHAREthem APK 16 |

Files available to Download:

17 | 18 |
19 |
20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion project.ext.compileSdkVersion 5 | buildToolsVersion project.ext.buildToolsVersion 6 | 7 | defaultConfig { 8 | minSdkVersion 9 9 | targetSdkVersion project.ext.targetSdkVersion 10 | versionCode 1 11 | versionName "1.0" 12 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | buildToolsVersion '26.0.2' 21 | } 22 | 23 | dependencies { 24 | compile fileTree(dir: 'libs', include: ['*.jar']) 25 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 26 | exclude group: 'com.android.support', module: 'support-annotations' 27 | }) 28 | compile "com.android.support:appcompat-v7:${project.ext.supportLibVersion}" 29 | compile "com.android.support:recyclerview-v7:${project.ext.supportLibVersion}" 30 | compile 'com.android.support.constraint:constraint-layout:1.0.0-beta1' 31 | testCompile 'junit:junit:4.12' 32 | compile 'com.google.code.gson:gson:2.7' 33 | } 34 | -------------------------------------------------------------------------------- /library/src/main/res/layout/fragment_files_listing.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 12 | 13 | 20 | 21 | 30 | 31 | -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /demo/src/main/res/layout/activity_demo.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 16 | 17 | 22 | 23 |