Skip to content

Commit

Permalink
[Feature] Add a commit message for automatic push in bus flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
sdesprez committed May 4, 2018
1 parent 9b53faa commit 43bda63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ android {
buildConfigField "String", "FLICKR_TOKEN", '"' + loadPropertiesFile("conf.properties").getProperty("flickr_token") + '"'
buildConfigField "String", "FLICKR_TOKEN_SECRET", '"' + loadPropertiesFile("conf.properties").getProperty("flickr_token_secret") + '"'
buildConfigField "String", "MAPBOX_TOKEN", '"' + loadPropertiesFile("conf.properties").getProperty("mapbox_token") + '"'
buildConfigField "String", "AUTO_COMMIT_CHANGESET", '""'
}

bus {
Expand All @@ -157,6 +158,7 @@ android {
buildConfigField "String", "FLICKR_TOKEN", '"' + loadPropertiesFile("conf.properties").getProperty("flickr_token") + '"'
buildConfigField "String", "FLICKR_TOKEN_SECRET", '"' + loadPropertiesFile("conf.properties").getProperty("flickr_token_secret") + '"'
buildConfigField "String", "MAPBOX_TOKEN", '"' + loadPropertiesFile("conf.properties").getProperty("mapbox_token") + '"'
buildConfigField "String", "AUTO_COMMIT_CHANGESET", '"Edited bus stop(s)"'
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

import javax.inject.Inject;

import io.jawg.osmcontributor.BuildConfig;
import io.jawg.osmcontributor.database.dao.PoiDao;
import io.jawg.osmcontributor.database.dao.PoiTypeDao;
import io.jawg.osmcontributor.database.events.DbInitializedEvent;
Expand Down Expand Up @@ -136,7 +137,7 @@ public void onInitDbEvent(InitDbEvent event) {

public Observable<Boolean> sync() {
return Observable.create(subscriber -> {
subscriber.onNext(remoteAddOrUpdateOrDeletePois("", poiDao.queryForAllUpdated(), poiDao.queryForAllNew(), poiDao.queryToDelete()));
subscriber.onNext(remoteAddOrUpdateOrDeletePois(BuildConfig.AUTO_COMMIT_CHANGESET, poiDao.queryForAllUpdated(), poiDao.queryForAllNew(), poiDao.queryToDelete()));
subscriber.onCompleted();
});
}
Expand Down

0 comments on commit 43bda63

Please sign in to comment.