Skip to content

Commit d1ef474

Browse files
committed
Gradle folder restructure (library)
1 parent 1f30ab1 commit d1ef474

File tree

74 files changed

+2363
-2398
lines changed

Some content is hidden

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

74 files changed

+2363
-2398
lines changed

library/AndroidManifest.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

library/build.gradle

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
11
apply plugin: 'com.android.library'
22

3-
dependencies {
4-
testCompile 'junit:junit:4.12'
5-
testCompile 'org.robolectric:robolectric:3.0-rc3'
6-
testCompile 'com.squareup.assertj:assertj-android:1.0.0'
7-
}
8-
93
android {
104
compileSdkVersion 22
115
buildToolsVersion "22.0.1"
126

137
defaultConfig {
148
minSdkVersion 5
159
targetSdkVersion 22
16-
}
17-
18-
sourceSets {
19-
main {
20-
manifest.srcFile 'AndroidManifest.xml'
21-
java.srcDirs = ['src']
22-
res.srcDirs = ['res']
23-
}
10+
versionCode 40
11+
versionName "1.9.5"
2412
}
2513

2614
compileOptions {
@@ -29,6 +17,13 @@ android {
2917
}
3018
}
3119

20+
dependencies {
21+
testCompile 'junit:junit:4.12'
22+
testCompile 'org.robolectric:robolectric:3.0-rc3'
23+
testCompile 'com.squareup.assertj:assertj-android:1.0.0'
24+
}
25+
26+
3227
// build a jar with source files
3328
task sourcesJar(type: Jar) {
3429
from android.sourceSets.main.java.srcDirs

library/src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.nostra13.universalimageloader"/>

library/src/com/nostra13/universalimageloader/cache/disc/impl/ext/DiskLruCache.java renamed to library/src/main/java/com/nostra13/universalimageloader/cache/disc/impl/ext/DiskLruCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,11 +964,11 @@ private IOException invalidLengths(String[] strings) throws IOException {
964964
}
965965

966966
public File getCleanFile(int i) {
967-
return new File(directory, key + "." + i);
967+
return new File(directory, key + "" + i);
968968
}
969969

970970
public File getDirtyFile(int i) {
971-
return new File(directory, key + "." + i + ".tmp");
971+
return new File(directory, key + "" + i + ".tmp");
972972
}
973973
}
974974
}
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package com.nostra13.universalimageloader.core.assist;
2-
3-
/**
4-
* Source image loaded from.
5-
*
6-
* @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
7-
*/
8-
public enum LoadedFrom {
9-
NETWORK, DISC_CACHE, MEMORY_CACHE
10-
}
1+
package com.nostra13.universalimageloader.core.assist;
2+
3+
/**
4+
* Source image loaded from.
5+
*
6+
* @author Sergey Tarasevich (nostra13[at]gmail[dot]com)
7+
*/
8+
public enum LoadedFrom {
9+
NETWORK, DISC_CACHE, MEMORY_CACHE
10+
}

0 commit comments

Comments
 (0)