mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-11-04 01:03:00 +00:00 
			
		
		
		
	Allow passing in package suffix for release builds through CLI param
This commit is contained in:
		@@ -54,6 +54,11 @@ android {
 | 
			
		||||
        // debug build. This seems to be a Gradle bug, therefore
 | 
			
		||||
        // TODO: update Gradle version
 | 
			
		||||
        release {
 | 
			
		||||
            if (System.properties.containsKey('packageSuffix')) {
 | 
			
		||||
                applicationIdSuffix System.getProperty('packageSuffix')
 | 
			
		||||
                resValue "string", "app_name", "NewPipe " + System.getProperty('packageSuffix')
 | 
			
		||||
                archivesBaseName = 'NewPipe_' + System.getProperty('packageSuffix')
 | 
			
		||||
            }
 | 
			
		||||
            minifyEnabled true
 | 
			
		||||
            shrinkResources false // disabled to fix F-Droid's reproducible build
 | 
			
		||||
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user