Skip to content

Commit f5690c1

Browse files
committed
first commit before remove Max(date_added) as max
0 parents  commit f5690c1

File tree

99 files changed

+5068
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+5068
-0
lines changed

SmartFileBrowser/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

SmartFileBrowser/build.gradle

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
plugins {
2+
id 'com.android.library'
3+
}
4+
5+
android {
6+
compileSdkVersion 29
7+
buildToolsVersion "30.0.3"
8+
9+
defaultConfig {
10+
minSdkVersion 19
11+
targetSdkVersion 29
12+
versionCode 1
13+
versionName "1.0"
14+
15+
vectorDrawables.useSupportLibrary=true
16+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
17+
consumerProguardFiles "consumer-rules.pro"
18+
}
19+
20+
buildTypes {
21+
release {
22+
minifyEnabled false
23+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_1_8
28+
targetCompatibility JavaVersion.VERSION_1_8
29+
}
30+
}
31+
32+
dependencies {
33+
34+
implementation 'androidx.appcompat:appcompat:1.2.0'
35+
implementation 'com.google.android.material:material:1.2.1'
36+
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
37+
testImplementation 'junit:junit:4.+'
38+
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
39+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
40+
implementation 'com.squareup.picasso:picasso:2.71828'
41+
implementation 'com.github.bumptech.glide:glide:4.11.0'
42+
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
43+
implementation 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:3.0.0'
44+
// implementation 'com.ashokvarma.android:bottom-navigation-bar:2.2.0'
45+
def lifecycle_version = "2.2.0"
46+
// ViewModel
47+
implementation "androidx.lifecycle:lifecycle-viewmodel:$lifecycle_version"
48+
// LiveData
49+
implementation "androidx.lifecycle:lifecycle-livedata:$lifecycle_version"
50+
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
51+
implementation "androidx.lifecycle:lifecycle-reactivestreams:$lifecycle_version"
52+
}

SmartFileBrowser/consumer-rules.pro

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package ir.smartdevelopers.smartfilebrowser;
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
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("ir.smartdevelopers.smartfilebrowser.test", appContext.getPackageName());
25+
}
26+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="ir.smartdevelopers.smartfilebrowser">
5+
<uses-feature android:name="android.hardware.Camera"
6+
android:required="false"/>
7+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
8+
tools:ignore="ScopedStorage" />
9+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
10+
<application
11+
android:requestLegacyExternalStorage="true">
12+
<activity android:name=".acitivties.FileBrowserMainActivity"
13+
android:theme="@style/sfb_AppTheme"
14+
15+
/>
16+
<provider
17+
android:authorities="${applicationId}.provider"
18+
android:name="androidx.core.content.FileProvider"
19+
android:exported="false"
20+
android:grantUriPermissions="true">
21+
<meta-data
22+
android:name="android.support.FILE_PROVIDER_PATHS"
23+
android:resource="@xml/sfb_provider_paths"/>
24+
</provider>
25+
</application>
26+
27+
</manifest>

0 commit comments

Comments
 (0)