Skip to content

Commit 5f4303f

Browse files
committed
2023/06/09
fix crash when set showGalleryTab to false
1 parent b934aa2 commit 5f4303f

File tree

9 files changed

+285
-248
lines changed

9 files changed

+285
-248
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SmartFileBrowser/build.gradle

Lines changed: 46 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
minSdkVersion 19
1212
targetSdkVersion 33
1313

14-
vectorDrawables.useSupportLibrary=true
14+
vectorDrawables.useSupportLibrary = true
1515
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1616
consumerProguardFiles "consumer-rules.pro"
1717
}
@@ -27,17 +27,15 @@ android {
2727
targetCompatibility JavaVersion.VERSION_1_8
2828
}
2929
namespace 'ir.smartdevelopers.smartfilebrowser'
30+
publishing {
31+
singleVariant('release') {
32+
withSourcesJar()
33+
}
34+
}
3035
}
3136
group = 'ir.smartdevelopers'
32-
version = '1.5.1'
33-
task sourcesJar(type: Jar) {
34-
archiveClassifier.set("sources")
35-
from android.sourceSets.main.java.srcDirs
36-
}
37-
task javadocJar2(type: Jar) {
38-
archiveClassifier.set( 'javadoc')
39-
from android.sourceSets.main.java.srcDirs
40-
}
37+
version = '1.5.2'
38+
4139
dependencies {
4240

4341
implementation 'androidx.appcompat:appcompat:1.6.1'
@@ -51,56 +49,54 @@ dependencies {
5149
implementation 'com.github.smartdevelopers-ir:PhotoEditor:1.1.3'
5250

5351
}
54-
afterEvaluate{
55-
publishing {
56-
publications {
57-
release(MavenPublication) {
52+
53+
publishing {
54+
publications {
55+
release(MavenPublication) {
56+
afterEvaluate {
5857
from components.release
59-
groupId = 'ir.smartdevelopers'
60-
artifactId = 'smart-file-picker'
61-
pom {
62-
name = 'smart-file-picker'
63-
description = 'pick file easilly'
64-
url = 'https://github.com/smartdevelopers-ir/SmartFilePicker'
58+
}
59+
groupId = 'ir.smartdevelopers'
60+
artifactId = 'smart-file-picker'
6561

66-
licenses {
67-
license {
68-
name = 'The Apache License, Version 2.0'
69-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
70-
}
71-
}
72-
developers {
73-
developer {
74-
id = 'smartdevelopers'
75-
name = 'mostafa babaei'
76-
email = 'info@smartdevelopers.ir'
77-
}
62+
pom {
63+
name = 'smart-file-picker'
64+
description = 'pick file easilly'
65+
url = 'https://github.com/smartdevelopers-ir/SmartFilePicker'
66+
67+
licenses {
68+
license {
69+
name = 'The Apache License, Version 2.0'
70+
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
7871
}
79-
scm {
80-
connection = 'scm:git:git://github.com/smartdevelopers-ir/SmartFilePicker.git'
81-
developerConnection = 'scm:git:ssh://github.com/smartdevelopers-ir/SmartFilePicker.git'
82-
url = 'http://github.com/smartdevelopers-ir/SmartFilePicker'
72+
}
73+
developers {
74+
developer {
75+
id = 'smartdevelopers'
76+
name = 'mostafa babaei'
77+
email = 'info@smartdevelopers.ir'
8378
}
84-
8579
}
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+
}
85+
8686
}
8787
}
88-
repositories {
89-
maven {
90-
// change URLs to point to your repos, e.g. http://my.org/repo
91-
def releasesRepoUrl = "$buildDir/repos/releases"
92-
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
93-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
94-
}
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
9595
}
9696
}
97-
9897
}
98+
99+
99100
signing {
100101
sign configurations.archives
101102
}
102-
103-
artifacts {
104-
archives sourcesJar
105-
archives javadocJar2
106-
}

0 commit comments

Comments
 (0)