Browse Source

Android: some fixes (#1501)

- Android: enable debug logs in debug build type
- Android: enable debug in native lib
- Android: remove hardcoded chmod
master
Alexander Epaneshnikov 2 years ago
parent
commit
cfeaf70fa4
No account linked to committer's email address

+ 0
- 1
android/jni/Application.mk View File

APP_OPTIM := release

+ 0
- 4
android/src/com/reecedunn/espeak/DownloadVoiceData.java View File



if (entry.isDirectory()) { if (entry.isDirectory()) {
progress.file.mkdirs(); progress.file.mkdirs();
FileUtils.chmod(progress.file);
continue; continue;
} }


outputStream.close(); outputStream.close();
} }
zipStream.closeEntry(); zipStream.closeEntry();

// Make sure the output file is readable.
FileUtils.chmod(progress.file);
} }


final String version = FileUtils.read(mContext.getResources().openRawResource(R.raw.espeakdata_version)); final String version = FileUtils.read(mContext.getResources().openRawResource(R.raw.espeakdata_version));

+ 0
- 9
android/src/com/reecedunn/espeak/FileUtils.java View File

} finally { } finally {
outputStream.close(); outputStream.close();
} }
chmod(outputFile);
}

public static void chmod(File file) {
try {
Runtime.getRuntime().exec("/system/bin/chmod 755 " + file.getAbsolutePath());
} catch (IOException e) {
e.printStackTrace();
}
} }


public static void rmdir(File directory) { public static void rmdir(File directory) {

+ 1
- 1
android/src/com/reecedunn/espeak/TtsService.java View File



private static final String TAG = TtsService.class.getSimpleName(); private static final String TAG = TtsService.class.getSimpleName();
private static Context storageContext; private static Context storageContext;
private static final boolean DEBUG = false;
private static final boolean DEBUG = BuildConfig.DEBUG;


private SpeechSynthesis mEngine; private SpeechSynthesis mEngine;
private SynthesisCallback mCallback; private SynthesisCallback mCallback;

Loading…
Cancel
Save