├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ └── themes.xml │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── drawable │ │ │ │ ├── ic_arrow.xml │ │ │ │ └── ic_launcher_background.xml │ │ │ ├── values-night │ │ │ │ └── themes.xml │ │ │ ├── layout │ │ │ │ └── activity_main.xml │ │ │ └── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── dev │ │ │ └── abhishekti7 │ │ │ └── filepickerexample │ │ │ └── MainActivity.java │ ├── test │ │ └── java │ │ │ └── dev │ │ │ └── abhishekti7 │ │ │ └── filepickerexample │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── dev │ │ └── abhishekti7 │ │ └── filepickerexample │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── UnicornFilePicker ├── .gitignore ├── consumer-rules.pro ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── unicorn_ic_file.png │ │ │ │ ├── unicorn_ic_pdf.png │ │ │ │ ├── unicorn_ic_images.png │ │ │ │ ├── drawable │ │ │ │ │ ├── unicorn_ic_arrow_solid_right.xml │ │ │ │ │ ├── unicorn_ic_arrow_right.xml │ │ │ │ │ ├── unicorn_ic_done.xml │ │ │ │ │ ├── unicorn_ic_folder.xml │ │ │ │ │ └── unicorn_ic_search.xml │ │ │ │ └── unicorn_item_layout_divider.xml │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── attrs.xml │ │ │ │ └── style.xml │ │ │ ├── menu │ │ │ │ └── unicorn_menu_file_picker.xml │ │ │ └── layout │ │ │ │ ├── unicorn_item_layout_directory_stack.xml │ │ │ │ ├── unicorn_item_layout_files.xml │ │ │ │ ├── unicorn_item_layout_directory.xml │ │ │ │ └── unicorn_activity_file_picker.xml │ │ ├── java │ │ │ └── abhishekti7 │ │ │ │ └── unicorn │ │ │ │ └── filepicker │ │ │ │ ├── utils │ │ │ │ ├── Constants.java │ │ │ │ ├── Utils.java │ │ │ │ └── UnicornSimpleItemDecoration.java │ │ │ │ ├── models │ │ │ │ ├── DirectoryModel.java │ │ │ │ └── Config.java │ │ │ │ ├── ConfigBuilder.java │ │ │ │ ├── UnicornFilePicker.java │ │ │ │ ├── adapters │ │ │ │ ├── DirectoryStackAdapter.java │ │ │ │ └── DirectoryAdapter.java │ │ │ │ └── ui │ │ │ │ └── FilePickerActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── abhishekti7 │ │ │ └── unicorn │ │ │ └── filepicker │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── abhishekti7 │ │ └── unicorn │ │ └── filepicker │ │ └── ExampleInstrumentedTest.java ├── proguard-rules.pro └── build.gradle ├── .idea ├── .gitignore ├── compiler.xml ├── misc.xml └── jarRepositories.xml ├── image ├── banner.png ├── screenshot_custom.jpeg ├── screenshot_dracula.jpeg └── screenshot_light.jpeg ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── CONTRIBUTING.md ├── gradle.properties ├── .circleci └── config.yml ├── .gitignore ├── gradlew.bat ├── README.md ├── gradlew └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /UnicornFilePicker/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /UnicornFilePicker/consumer-rules.pro: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | -------------------------------------------------------------------------------- /image/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/image/banner.png -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':UnicornFilePicker' 2 | include ':app' 3 | rootProject.name = "FilePickerExample" -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | FilePickerExample 3 | -------------------------------------------------------------------------------- /image/screenshot_custom.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/image/screenshot_custom.jpeg -------------------------------------------------------------------------------- /image/screenshot_dracula.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/image/screenshot_dracula.jpeg -------------------------------------------------------------------------------- /image/screenshot_light.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/image/screenshot_light.jpeg -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/unicorn_ic_file.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/UnicornFilePicker/src/main/res/drawable/unicorn_ic_file.png -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/unicorn_ic_pdf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/UnicornFilePicker/src/main/res/drawable/unicorn_ic_pdf.png -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/unicorn_ic_images.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhishekti7/UnicornFilePicker/HEAD/UnicornFilePicker/src/main/res/drawable/unicorn_ic_images.png -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Search 3 | No files 4 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 06 22:48:07 IST 2021 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-6.5-bin.zip 7 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/java/abhishekti7/unicorn/filepicker/utils/Constants.java: -------------------------------------------------------------------------------- 1 | package abhishekti7.unicorn.filepicker.utils; 2 | 3 | /** 4 | * Created by Abhishek Tiwari on 07-01-2021. 5 | */ 6 | public class Constants { 7 | 8 | public static final int REQ_UNICORN_FILE = 9999; 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_arrow.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/drawable/unicorn_ic_arrow_solid_right.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/unicorn_item_layout_divider.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 9 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/drawable/unicorn_ic_arrow_right.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/drawable/unicorn_ic_done.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/drawable/unicorn_ic_folder.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFBB86FC 4 | #FF6200EE 5 | #FF3700B3 6 | #FF03DAC5 7 | #FF018786 8 | #FF000000 9 | #FFFFFFFF 10 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/menu/unicorn_menu_file_picker.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | -------------------------------------------------------------------------------- /app/src/test/java/dev/abhishekti7/filepickerexample/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package dev.abhishekti7.filepickerexample; 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() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/test/java/abhishekti7/unicorn/filepicker/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package abhishekti7.unicorn.filepicker; 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() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # UnicornFilePicker is an Open Source Project 2 | 3 | ## You Should Know 4 | - There is a long list of features coming so I welcome even the smallest contribution. 5 | - To contribute with a small fix, simply create a pull request. 6 | - If you intend to work on something BIG, it would be better to open an issue to discuss with the developer and the community . 7 | - It would be better to use English to open all issues and pull requests. 8 | 9 | ## Code Style 10 | 11 | Please follow [Code Style for Contributors](https://source.android.com/source/code-style) of AOSP. -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/drawable/drawable/unicorn_ic_search.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | #ffa502 5 | #000 6 | #000 7 | 8 | #fff 9 | #000 10 | #B3000000 11 | #B3FFFFFF 12 | #353535 13 | #E5E7E9 14 | 15 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /UnicornFilePicker/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | -------------------------------------------------------------------------------- /app/src/androidTest/java/dev/abhishekti7/filepickerexample/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package dev.abhishekti7.filepickerexample; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | assertEquals("dev.zeus0789.filepickerexample", appContext.getPackageName()); 25 | } 26 | } -------------------------------------------------------------------------------- /UnicornFilePicker/src/androidTest/java/abhishekti7/unicorn/filepicker/ExampleInstrumentedTest.java: -------------------------------------------------------------------------------- 1 | package abhishekti7.unicorn.filepicker; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.test.platform.app.InstrumentationRegistry; 6 | import androidx.test.ext.junit.runners.AndroidJUnit4; 7 | 8 | import org.junit.Test; 9 | import org.junit.runner.RunWith; 10 | 11 | import static org.junit.Assert.*; 12 | 13 | /** 14 | * Instrumented test, which will execute on an Android device. 15 | * 16 | * @see Testing documentation 17 | */ 18 | @RunWith(AndroidJUnit4.class) 19 | public class ExampleInstrumentedTest { 20 | @Test 21 | public void useAppContext() { 22 | // Context of the app under test. 23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); 24 | assertEquals("zeus0789.unicorn.filepicker.test", appContext.getPackageName()); 25 | } 26 | } -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/res/layout/unicorn_item_layout_directory_stack.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 23 | -------------------------------------------------------------------------------- /UnicornFilePicker/src/main/java/abhishekti7/unicorn/filepicker/utils/Utils.java: -------------------------------------------------------------------------------- 1 | package abhishekti7.unicorn.filepicker.utils; 2 | 3 | import java.util.Calendar; 4 | import java.util.HashMap; 5 | import java.util.Map; 6 | 7 | /** 8 | * Created by Abhishek Tiwari on 07-01-2021. 9 | */ 10 | public class Utils { 11 | public static Map mapOfMonths = new HashMap() {{ 12 | put(1, "Jan"); 13 | put(2, "Feb"); 14 | put(3, "Mar"); 15 | put(4, "Apr"); 16 | put(5, "May"); 17 | put(6, "Jun"); 18 | put(7, "Jul"); 19 | put(8, "Aug"); 20 | put(9, "Sep"); 21 | put(10, "Oct"); 22 | put(11, "Nov"); 23 | put(12, "Dec"); 24 | }}; 25 | public static String longToReadableDate(long time) { 26 | Calendar calendar = Calendar.getInstance(); 27 | calendar.setTimeInMillis(time); 28 | 29 | return mapOfMonths.get(calendar.get(Calendar.MONTH) + 1) + " " + 30 | calendar.get(Calendar.DAY_OF_MONTH) + ", " + calendar.get(Calendar.YEAR); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /.idea/jarRepositories.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 9 | 10 | 14 | 15 | 19 | 20 | 24 | 25 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app"s APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=true 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=true -------------------------------------------------------------------------------- /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | jobs: 3 | build: 4 | working_directory: ~/code 5 | docker: 6 | - image: circleci/android:api-28 7 | environment: 8 | JVM_OPTS: -Xmx3200m 9 | steps: 10 | - checkout 11 | - restore_cache: 12 | key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} 13 | - run: 14 | name: Chmod permissions #if permission for Gradlew Dependencies fail, use this. 15 | command: sudo chmod +x ./gradlew 16 | - run: 17 | name: Download Dependencies 18 | command: ./gradlew androidDependencies 19 | - save_cache: 20 | paths: 21 | - ~/.gradle 22 | key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} 23 | - run: 24 | name: Run Tests 25 | command: ./gradlew lint test 26 | - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ 27 | path: app/build/reports 28 | destination: reports 29 | - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ 30 | path: app/build/test-results 31 | # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'com.android.application' 3 | } 4 | 5 | android { 6 | compileSdkVersion 30 7 | buildToolsVersion "30.0.2" 8 | 9 | viewBinding{ 10 | enabled true 11 | } 12 | 13 | defaultConfig { 14 | applicationId "dev.abhishekti7.filepickerexample" 15 | minSdkVersion 21 16 | targetSdkVersion 30 17 | versionCode 1 18 | versionName "1.0" 19 | 20 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 21 | } 22 | 23 | buildTypes { 24 | release { 25 | minifyEnabled false 26 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 27 | } 28 | } 29 | compileOptions { 30 | sourceCompatibility JavaVersion.VERSION_1_8 31 | targetCompatibility JavaVersion.VERSION_1_8 32 | } 33 | } 34 | 35 | dependencies { 36 | 37 | implementation 'androidx.appcompat:appcompat:1.2.0' 38 | implementation 'com.google.android.material:material:1.2.1' 39 | implementation 'androidx.constraintlayout:constraintlayout:2.0.4' 40 | implementation project(path: ':UnicornFilePicker') 41 | testImplementation 'junit:junit:4.+' 42 | androidTestImplementation 'androidx.test.ext:junit:1.1.2' 43 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' 44 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |