style: cleanup formatting

This commit is contained in:
Connor Tumbleson 2019-06-01 09:27:41 -04:00
parent 4a856b46c4
commit 5f43a1fbca
No known key found for this signature in database
GPG Key ID: C3CC0A201EC7DA75
2 changed files with 4 additions and 5 deletions

View File

@ -240,7 +240,7 @@ public class Androlib {
if (in.containsDir("META-INF")) {
in.copyToDir(originalDir, "META-INF");
if(in.containsDir("META-INF/services")){
if (in.containsDir("META-INF/services")) {
// If the original APK contains the folder META-INF/services folder
// that is used for service locators (like coroutines on android),
// copy it to the destination folder so it does not get dropped.

View File

@ -17,9 +17,7 @@
package brut.androlib.decode;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import java.io.File;
@ -44,6 +42,7 @@ import static org.junit.Assert.assertTrue;
*/
public class DecodeKotlinCoroutinesTest extends BaseTest {
private static String apk = "test-kotlin-coroutines.apk";
@BeforeClass
public static void beforeClass() throws Exception {
TestUtils.cleanFrameworkFile();
@ -65,8 +64,8 @@ public class DecodeKotlinCoroutinesTest extends BaseTest {
apkDecoder.setOutDir(new File(sTmpDir + File.separator + apk + ".out"));
apkDecoder.setForceDelete(true);
apkDecoder.decode();
File coroutinesExceptionHandler = new File(sTmpDir + File.separator + apk + ".out"+File.separator + "META-INF" + File.separator + "services", "kotlinx.coroutines.CoroutineExceptionHandler");
File coroutinenMainDispatcherHandler = new File(sTmpDir + File.separator + apk + ".out"+File.separator + "META-INF" + File.separator + "services", "kotlinx.coroutines.internal.MainDispatcherFactory");
File coroutinesExceptionHandler = new File(sTmpDir + File.separator + apk + ".out" + File.separator + "META-INF" + File.separator + "services", "kotlinx.coroutines.CoroutineExceptionHandler");
File coroutinenMainDispatcherHandler = new File(sTmpDir + File.separator + apk + ".out" + File.separator + "META-INF" + File.separator + "services", "kotlinx.coroutines.internal.MainDispatcherFactory");
assert (coroutinesExceptionHandler.exists());
assert (coroutinenMainDispatcherHandler.exists());