mirror of
				https://github.com/recloudstream/cloudstream.git
				synced 2024-08-15 01:53:11 +00:00 
			
		
		
		
	Update build.gradle.kts
This commit is contained in:
		
							parent
							
								
									829b8691ad
								
							
						
					
					
						commit
						d069d4c759
					
				
					 1 changed files with 8 additions and 3 deletions
				
			
		|  | @ -14,7 +14,6 @@ plugins { | ||||||
| 
 | 
 | ||||||
| val tmpFilePath = System.getProperty("user.home") + "/work/_temp/keystore/" | val tmpFilePath = System.getProperty("user.home") + "/work/_temp/keystore/" | ||||||
| val prereleaseStoreFile: File? = File(tmpFilePath).listFiles()?.first() | val prereleaseStoreFile: File? = File(tmpFilePath).listFiles()?.first() | ||||||
| var isLibraryDebug = false |  | ||||||
| 
 | 
 | ||||||
| fun String.execute() = ByteArrayOutputStream().use { baot -> | fun String.execute() = ByteArrayOutputStream().use { baot -> | ||||||
|     if (project.exec { |     if (project.exec { | ||||||
|  | @ -105,7 +104,6 @@ android { | ||||||
|             ) |             ) | ||||||
|         } |         } | ||||||
|         debug { |         debug { | ||||||
|             isLibraryDebug = true |  | ||||||
|             isDebuggable = true |             isDebuggable = true | ||||||
|             applicationIdSuffix = ".debug" |             applicationIdSuffix = ".debug" | ||||||
|             proguardFiles( |             proguardFiles( | ||||||
|  | @ -236,7 +234,14 @@ dependencies { | ||||||
|     implementation("com.github.Blatzar:NiceHttp:0.4.11") // HTTP Lib |     implementation("com.github.Blatzar:NiceHttp:0.4.11") // HTTP Lib | ||||||
| 
 | 
 | ||||||
|     implementation(project(":library") { |     implementation(project(":library") { | ||||||
|         this.extra.set("isDebug", isLibraryDebug) |         // There does not seem to be a good way of getting the android flavor. | ||||||
|  |         val isDebug = gradle.startParameter.taskRequests.any { task -> | ||||||
|  |             task.args.any { arg -> | ||||||
|  |                 arg.contains("debug", true) | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         this.extra.set("isDebug", isDebug) | ||||||
|     }) |     }) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue