Skip to content

Commit 6fde638

Browse files
Merge pull request #16 from smartdevelopers-ir/v2.0.3
V2.0.3
2 parents e52e24f + 7b6df5b commit 6fde638

Some content is hidden

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

55 files changed

+1816
-457
lines changed

SmartFileBrowser/build.gradle

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ plugins {
55
}
66

77
android {
8-
compileSdkVersion 33
8+
compileSdkVersion 36
99

1010
defaultConfig {
11-
minSdkVersion 19
12-
targetSdkVersion 33
11+
minSdkVersion 21
12+
targetSdkVersion 36
1313

1414
vectorDrawables.useSupportLibrary = true
1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -23,8 +23,8 @@ android {
2323
}
2424
}
2525
compileOptions {
26-
sourceCompatibility JavaVersion.VERSION_1_8
27-
targetCompatibility JavaVersion.VERSION_1_8
26+
sourceCompatibility JavaVersion.VERSION_11
27+
targetCompatibility JavaVersion.VERSION_11
2828
}
2929
namespace 'ir.smartdevelopers.smartfilebrowser'
3030
publishing {
@@ -34,69 +34,72 @@ android {
3434
}
3535
}
3636
group = 'ir.smartdevelopers'
37-
version = '1.5.2'
37+
version = '2.0.3'
3838

3939
dependencies {
4040

41-
implementation 'androidx.appcompat:appcompat:1.6.1'
42-
implementation 'com.google.android.material:material:1.9.0'
43-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
44-
implementation 'com.github.bumptech.glide:glide:4.12.0'
41+
implementation libs.appcompat
42+
implementation libs.androidxcore
43+
implementation libs.material
44+
implementation libs.activity
45+
implementation libs.constraintlayout
4546

46-
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
47-
implementation 'com.github.aurelhubert:ahbottomnavigation:v2.3.4'
47+
implementation libs.glide
4848

49-
implementation 'com.github.smartdevelopers-ir:PhotoEditor:1.1.3'
49+
annotationProcessor libs.compiler
50+
implementation libs.ahbottomnavigation
5051

52+
implementation libs.photoeditor
53+
// implementation libs.wix.playground.ahbottomnavigation
5154
}
55+
afterEvaluate {
56+
publishing {
57+
publications {
58+
release(MavenPublication) {
5259

53-
publishing {
54-
publications {
55-
release(MavenPublication) {
56-
afterEvaluate {
5760
from components.release
58-
}
59-
groupId = 'ir.smartdevelopers'
60-
artifactId = 'smart-file-picker'
6161

62-
pom {
63-
name = 'smart-file-picker'
64-
description = 'pick file easilly'
65-
url = 'https://github.com/smartdevelopers-ir/SmartFilePicker'
62+
groupId = 'ir.smartdevelopers'
63+
artifactId = 'smart-file-picker'
64+
65+
pom {
66+
name = 'smart-file-picker'
67+
description = 'pick file easilly'
68+
url = 'https://github.com/smartdevelopers-ir/SmartFilePicker'
6669

67-
licenses {
68-
license {
69-
name = 'The Apache License, Version 2.0'
70-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
70+
licenses {
71+
license {
72+
name = 'The Apache License, Version 2.0'
73+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
74+
}
7175
}
72-
}
73-
developers {
74-
developer {
75-
id = 'smartdevelopers'
76-
name = 'mostafa babaei'
77-
email = 'info@smartdevelopers.ir'
76+
developers {
77+
developer {
78+
id = 'smartdevelopers'
79+
name = 'mostafa babaei'
80+
email = 'info@smartdevelopers.ir'
81+
}
82+
}
83+
scm {
84+
connection = 'scm:git:git://github.com/smartdevelopers-ir/SmartFilePicker.git'
85+
developerConnection = 'scm:git:ssh://github.com/smartdevelopers-ir/SmartFilePicker.git'
86+
url = 'http://github.com/smartdevelopers-ir/SmartFilePicker'
7887
}
79-
}
80-
scm {
81-
connection = 'scm:git:git://github.com/smartdevelopers-ir/SmartFilePicker.git'
82-
developerConnection = 'scm:git:ssh://github.com/smartdevelopers-ir/SmartFilePicker.git'
83-
url = 'http://github.com/smartdevelopers-ir/SmartFilePicker'
84-
}
8588

89+
}
8690
}
8791
}
88-
}
89-
repositories {
90-
maven {
91-
// change URLs to point to your repos, e.g. http://my.org/repo
92-
def releasesRepoUrl = "$buildDir/repos/releases"
93-
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
94-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
92+
repositories {
93+
maven {
94+
// change URLs to point to your repos, e.g. http://my.org/repo
95+
def releasesRepoUrl = "${layout.buildDirectory.asFile.get()}/repos/releases"
96+
def snapshotsRepoUrl = "${layout.buildDirectory.asFile.get()}/repos/snapshots"
97+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
98+
}
9599
}
96100
}
97101
}
98102

99-
100103
signing {
101104
sign configurations.archives
102105
}

SmartFileBrowser/src/main/AndroidManifest.xml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@
55
<uses-feature
66
android:name="android.hardware.camera.any"
77
android:required="false" />
8-
9-
<uses-permission
10-
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
11-
tools:ignore="ScopedStorage" />
12-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
8+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"
9+
android:minSdkVersion="33"
10+
tools:ignore="PhotoAndVideoPolicy" />
11+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"
12+
android:minSdkVersion="33"
13+
tools:ignore="PhotoAndVideoPolicy"
14+
/>
15+
<uses-permission android:name="android.permission.READ_MEDIA_AUDIO"/>
16+
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED"/>
17+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
18+
android:maxSdkVersion="32"/>
1319

1420
<queries>
1521
<intent>
@@ -33,7 +39,8 @@
3339
<activity
3440
android:name=".acitivties.FileBrowserMainActivity"
3541
android:configChanges="keyboard|orientation"
36-
android:theme="@style/sfb_AppTheme" /> <!-- <activity -->
42+
android:launchMode="singleInstance"
43+
android:theme="@style/sfb_MainAppTheme.sfb_AppTheme" /> <!-- <activity -->
3744
<!-- android:name="iamutkarshtiwari.github.io.ananas.editimage.EditImageActivity" -->
3845
<!-- android:exported="true" -->
3946
<!-- android:label="@string/sfb_image_editor_label" -->

0 commit comments

Comments
 (0)