Skip to content

Commit

Permalink
#55 Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo Grimstad committed Jun 7, 2017
1 parent 47051f0 commit 68ab6ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
applicationId "org.literacyapp.analytics"
minSdkVersion 21
targetSdkVersion 23
versionCode 1001000
versionName "1.1.0"
versionCode 1002000
versionName "1.2.0"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* Master of DAO (schema version 1001000): knows all DAOs.
* Master of DAO (schema version 1002000): knows all DAOs.
*/
public class DaoMaster extends AbstractDaoMaster {
public static final int SCHEMA_VERSION = 1001000;
public static final int SCHEMA_VERSION = 1002000;

/** Creates underlying database table using DAOs. */
public static void createAllTables(Database db, boolean ifNotExists) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ protected Void doInBackground(File... files) {

File file = files[0];
Log.i(getClass().getName(), "file: " + file);
Log.i(getClass().getName(), "file.getName(): " + file.getName());

try {
// See https://stackoverflow.com/a/11826317
Expand All @@ -44,7 +45,7 @@ protected Void doInBackground(File... files) {
DataOutputStream request = new DataOutputStream(connection.getOutputStream());

request.writeBytes("--*****\r\n");
request.writeBytes("Content-Disposition: form-data; name=\"multipartFile\";filename=\"application_opened_events_2017-06-07.log\"\r\n");
request.writeBytes("Content-Disposition: form-data; name=\"multipartFile\";filename=\"" + file.getName() + "\"\r\n");
request.writeBytes("\r\n");

byte[] fileBytes = FileUtils.readFileToByteArray(file);
Expand Down

0 comments on commit 68ab6ab

Please sign in to comment.