-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from jefftharris/feature/12-onedrive-upgrade
Update OneDrive libraries Fixes #12
- Loading branch information
Showing
35 changed files
with
1,497 additions
and
698 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (©) 2016 Jeff Harris <[email protected]> | ||
* Copyright (©) 2016-2024 Jeff Harris <[email protected]> | ||
* All rights reserved. Use of the code is allowed under the | ||
* Artistic License 2.0 terms, as specified in the LICENSE file | ||
* distributed with this code, or available from | ||
|
@@ -16,14 +16,15 @@ | |
import android.content.Context; | ||
import android.text.format.DateUtils; | ||
import android.util.Log; | ||
import androidx.annotation.NonNull; | ||
|
||
/** | ||
* The Utils class provides general utilities | ||
*/ | ||
public final class Utils | ||
{ | ||
/** Format a date according to the current locale settings */ | ||
public static String formatDate(Date date, Context ctx) | ||
public static String formatDate(@NonNull Date date, Context ctx) | ||
{ | ||
return formatDate(date.getTime(), ctx); | ||
} | ||
|
@@ -60,10 +61,11 @@ public static String formatDate(long date, Context ctx, | |
|
||
|
||
/** Copy the input stream to the output */ | ||
public static int copyStream(InputStream is, OutputStream os) | ||
public static long copyStream(@NonNull InputStream is, | ||
@NonNull OutputStream os) | ||
throws IOException | ||
{ | ||
int streamSize = 0; | ||
long streamSize = 0; | ||
byte[] buf = new byte[4096]; | ||
int len; | ||
while ((len = is.read(buf)) > 0) { | ||
|
@@ -75,7 +77,7 @@ public static int copyStream(InputStream is, OutputStream os) | |
|
||
|
||
/** Close the streams */ | ||
public static void closeStreams(Closeable... cs) | ||
public static void closeStreams(@NonNull Closeable... cs) | ||
{ | ||
for (Closeable c: cs) { | ||
try { | ||
|
Binary file removed
BIN
-23.9 MB
...-libs/com/microsoft/graph/msgraph-sdk-android/1.7.0/msgraph-sdk-android-1.7.0-javadoc.jar
Binary file not shown.
Binary file removed
BIN
-6.56 MB
...-libs/com/microsoft/graph/msgraph-sdk-android/1.7.0/msgraph-sdk-android-1.7.0-sources.jar
Binary file not shown.
Binary file removed
BIN
-4.12 MB
maven-libs/com/microsoft/graph/msgraph-sdk-android/1.7.0/msgraph-sdk-android-1.7.0.aar
Binary file not shown.
17 changes: 0 additions & 17 deletions
17
maven-libs/com/microsoft/graph/msgraph-sdk-android/1.7.0/msgraph-sdk-android-1.7.0.pom
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.