Skip to content

Commit fff3c7a

Browse files
author
Gregor Santner
committed
v0.2.0a
1 parent bea3529 commit fff3c7a

File tree

17 files changed

+1043
-28
lines changed

17 files changed

+1043
-28
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ app/src/main/res/raw/contributors.md
55
app/src/main/res/raw/license.md
66
app/src/main/res/raw/readme.md
77
app/src/main/res/raw/contributors.txt
8-
app/src/main/res/raw/podlist.json
8+
#app/src/main/res/raw/podlist.json
99

1010
##############
1111
### Common ###

app/build.gradle

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ android {
1010
minSdkVersion 17
1111
targetSdkVersion 24
1212
versionCode 10
13-
versionName "0.2.0-next"
13+
versionName "0.2.0a"
1414
setProperty("archivesBaseName", "diasporaAndroid__${versionName}__")
1515

1616
vectorDrawables.useSupportLibrary = true
@@ -61,8 +61,6 @@ dependencies {
6161
// #####################
6262
final String RAW_DIR = "app/src/main/res/raw"
6363
final String[] ROOT_TO_RAW_COPYFILES = ["README.md", "LICENSE.md", "CHANGELOG.md", "CONTRIBUTORS.txt"]
64-
final String PODLIST_URL = 'https://raw.githubusercontent.com/Diaspora-for-Android/diaspora-android-extras/master/podList/podlist.json'
65-
final String PODLIST_PATH = "${RAW_DIR}/podlist.json"
6664

6765
// Called before building
6866
task copyRepoFiles(type: Copy) {
@@ -84,26 +82,6 @@ task copyRepoFiles(type: Copy) {
8482
(line.toString().matches("..l>>.*") || line.toString().startsWith("## 99l CONTRIBUTORS")) ? null : line.toString().trim().replaceAll(" \\(.*\\)", "")
8583
}
8684
}
87-
88-
// Download PodList
89-
downloadFile(PODLIST_PATH, PODLIST_URL, false)
90-
91-
// Application variants
92-
android.applicationVariants.all { v ->
93-
// Do if we build in release (signed apk) mode
94-
if (v.buildType.name == "release") {
95-
downloadFile(PODLIST_PATH, PODLIST_URL, true)
96-
}
97-
}
98-
}
99-
100-
// Downloads a file
101-
def downloadFile(filePath, url, downloadIfExists) {
102-
def f = new File(filePath)
103-
f.exists() && downloadIfExists && f.delete();
104-
if (!f.exists()) {
105-
new URL(url).withInputStream { i -> f.withOutputStream { it << i } }
106-
}
10785
}
10886

10987
tasks.copyRepoFiles.execute()

app/src/main/java/com/github/dfa/diaspora_android/service/FetchPodsService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
public class FetchPodsService extends Service {
4242
public static final String EXTRA_PODLIST = "pods";
4343
public static final String MESSAGE_PODS_RECEIVED = "com.github.dfa.diaspora.podsreceived";
44-
public static final String PODDY_PODLIST_URL = "https://raw.githubusercontent.com/Diaspora-for-Android/diaspora-android-extras/master/podList/podlist.json";
44+
public static final String PODDY_PODLIST_URL = "https://raw.githubusercontent.com/Diaspora-for-Android/diaspora-android/master/app/src/main/res/raw/podlist.json";
4545

4646
public FetchPodsService() {
4747
}

0 commit comments

Comments
 (0)