Skip to content

Commit

Permalink
chore(android): update titanium_prep
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Aug 6, 2019
1 parent d2530a6 commit e58aeb0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions android/templates/build/AssetCryptImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
import java.util.HashMap;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.CharBuffer;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.lang.reflect.Method;
import java.lang.System;
import java.util.Collection;

import org.appcelerator.kroll.util.KrollAssetHelper;
import org.appcelerator.kroll.common.Log;
import org.appcelerator.titanium.TiApplication;

import android.os.Debug;
import android.util.Base64;

public class AssetCryptImpl implements KrollAssetHelper.AssetCrypt
{
Expand Down Expand Up @@ -49,7 +50,7 @@ public String readAsset(String path)
if (bytes == null) {
return null;
}
return new String(bytes);
return new String(bytes, StandardCharsets.UTF_8);
}

@Override
Expand Down
Binary file modified support/android/titanium_prep.linux32
Binary file not shown.
Binary file modified support/android/titanium_prep.linux64
Binary file not shown.
Binary file modified support/android/titanium_prep.macos
Binary file not shown.
Binary file modified support/android/titanium_prep.win32.exe
Binary file not shown.
Binary file modified support/android/titanium_prep.win64.exe
Binary file not shown.

0 comments on commit e58aeb0

Please sign in to comment.