Execute gradle scripts with bash.
This commit is contained in:
		@@ -1,6 +1,5 @@
 | 
			
		||||
#Fri Jun 22 01:12:28 EDT 2018
 | 
			
		||||
distributionBase=GRADLE_USER_HOME
 | 
			
		||||
distributionPath=wrapper/dists
 | 
			
		||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-bin.zip
 | 
			
		||||
zipStoreBase=GRADLE_USER_HOME
 | 
			
		||||
zipStorePath=wrapper/dists
 | 
			
		||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.7-all.zip
 | 
			
		||||
 
 | 
			
		||||
@@ -56,10 +56,10 @@ dependencies {
 | 
			
		||||
 | 
			
		||||
preBuild {
 | 
			
		||||
    dependsOn task( type: Exec, 'buildLibSodium', {
 | 
			
		||||
        commandLine "$projectDir/../lib/bin/build_libsodium-android"
 | 
			
		||||
        commandLine 'bash', "$rootDir/../lib/bin/build_libsodium-android"
 | 
			
		||||
    } )
 | 
			
		||||
    dependsOn task( type: Exec, 'buildLibJson-c', {
 | 
			
		||||
        commandLine "$projectDir/../lib/bin/build_libjson-c-android"
 | 
			
		||||
        commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-android"
 | 
			
		||||
    } )
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,13 +53,11 @@ library {
 | 
			
		||||
 | 
			
		||||
        if (project.tasks.findByName('buildLibSodium') == null)
 | 
			
		||||
            archive.dependsOn task( type: Exec, 'buildLibSodium', {
 | 
			
		||||
                workingDir file( "$rootDir/../lib/bin" )
 | 
			
		||||
                commandLine 'bash', "./build_libsodium-${platform}"
 | 
			
		||||
                commandLine 'bash', "$rootDir/../lib/bin/build_libsodium-${platform}"
 | 
			
		||||
            } )
 | 
			
		||||
//        if (project.tasks.findByName('buildLibJson-c') == null)
 | 
			
		||||
//            archive.dependsOn task( type: Exec, 'buildLibJson-c', {
 | 
			
		||||
//                workingDir file( "$rootDir/../lib/bin" )
 | 
			
		||||
//                commandLine 'bash', "./build_libjson-c-${platform}"
 | 
			
		||||
//                commandLine 'bash', "$rootDir/../lib/bin/build_libjson-c-${platform}"
 | 
			
		||||
//            } )
 | 
			
		||||
 | 
			
		||||
        project.dependencies {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user