Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2023-01-23 14:44:17 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
56944184df4e99f193c32e14a7bf1cfe51299c46
56944184
1 parent
a9b6eaec
revert session impl, crash fixes
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
warply_android_sdk/build.gradle
warply_android_sdk/src/main/java/ly/warp/sdk/io/volley/toolbox/DiskBasedCache.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyProperty.java
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
warply_android_sdk/build.gradle
View file @
5694418
...
...
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
ext
{
PUBLISH_GROUP_ID
=
'ly.warp'
PUBLISH_VERSION
=
'4.5.4.6rc4
0
'
PUBLISH_VERSION
=
'4.5.4.6rc4
1
'
PUBLISH_ARTIFACT_ID
=
'warply-android-sdk'
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/io/volley/toolbox/DiskBasedCache.java
View file @
5694418
...
...
@@ -119,7 +119,7 @@ public class DiskBasedCache implements Cache {
byte
[]
data
=
streamToBytes
(
cis
,
(
int
)
Math
.
abs
((
int
)(
file
.
length
()
-
cis
.
bytesRead
)));
// byte[] data = readAllBytes(cis);
return
entry
.
toCacheEntry
(
data
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
|
NegativeArraySizeException
e
)
{
VolleyLog
.
d
(
"%s: %s"
,
file
.
getAbsolutePath
(),
e
.
toString
());
remove
(
key
);
return
null
;
...
...
@@ -315,11 +315,11 @@ public class DiskBasedCache implements Cache {
/**
* Reads the contents of an InputStream into a byte[].
* */
private
static
byte
[]
streamToBytes
(
InputStream
in
,
int
length
)
throws
IOException
{
private
static
byte
[]
streamToBytes
(
InputStream
in
,
int
length
)
throws
IOException
,
NegativeArraySizeException
{
byte
[]
bytes
=
new
byte
[
1
];
try
{
bytes
=
IOUtils
.
toByteArray
(
in
);
}
catch
(
OutOfMemoryError
e
)
{
}
catch
(
OutOfMemoryError
|
NegativeArraySizeException
e
)
{
e
.
printStackTrace
();
}
int
count
;
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/WarplyProperty.java
View file @
5694418
...
...
@@ -63,7 +63,7 @@ public class WarplyProperty {
Properties
properties
=
new
Properties
();
properties
.
load
(
context
.
getResources
().
getAssets
().
open
(
PROPERTIES_FILE
));
return
properties
.
getProperty
(
propertyKey
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
|
NullPointerException
e
)
{
WarpUtils
.
log
(
e
.
getMessage
());
return
""
;
}
...
...
warply_android_sdk/src/main/java/ly/warp/sdk/utils/managers/WarplyManager.java
View file @
5694418
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment