19 lines
		
	
	
		
			No EOL
		
	
	
		
			475 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			No EOL
		
	
	
		
			475 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from .util import *
 | 
						|
from .merge_resources import merge_resources
 | 
						|
 | 
						|
import subprocess
 | 
						|
 | 
						|
def assemble_apk():
 | 
						|
    updated = merge_resources()
 | 
						|
    
 | 
						|
    print(f"IS UPDATED: {updated}")
 | 
						|
    
 | 
						|
    if not updated and Path(ASSEMBLED_APK).exists():
 | 
						|
        print("Skipping assembly")
 | 
						|
        return False
 | 
						|
    
 | 
						|
    # Assemble
 | 
						|
    print("Assembling APK...")
 | 
						|
    _ = subprocess.run([JAVA_BIN, '-jar', APKTOOL, 'b', MERGED_RSC_DIR, '-o', ASSEMBLED_APK])
 | 
						|
    
 | 
						|
    return True |