fix: exposed uri error
This commit is contained in:
@@ -36,6 +36,39 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
task buildApkPlugin {
|
||||
doLast {
|
||||
def pluginProjectDirPath = '..\\..\\AutoJsApkBuilderPlugin'
|
||||
def pluginProjectDir = file(pluginProjectDirPath)
|
||||
if(!pluginProjectDir.exists() || !pluginProjectDir.isDirectory()){
|
||||
println 'pluginProjectDir not exists'
|
||||
return
|
||||
}
|
||||
copy {
|
||||
from file('build\\outputs\\apk\\release\\')
|
||||
into new File(pluginProjectDir, 'app\\src\\main\\assets')
|
||||
include "inrt-release-unsigned.apk"
|
||||
rename "inrt-release-unsigned.apk", 'template.apk'
|
||||
}
|
||||
exec {
|
||||
workingDir pluginProjectDir
|
||||
commandLine 'gradlew.bat', 'assembleRelease'
|
||||
}
|
||||
copy {
|
||||
from new File(pluginProjectDir, 'app\\build\\outputs\\apk\\release')
|
||||
into file('..\\common\\release')
|
||||
include '*-release.apk'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.whenTaskAdded { task ->
|
||||
if (task.name == 'assembleRelease') {
|
||||
task.finalizedBy 'buildApkPlugin'
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
flatDir {
|
||||
dirs 'libs'
|
||||
|
||||
@@ -75,9 +75,7 @@ public class SplashActivity extends AppCompatActivity {
|
||||
runScript();
|
||||
}
|
||||
} else {
|
||||
int[] grantResults = new int[permissions.length];
|
||||
Arrays.fill(grantResults, PERMISSION_GRANTED);
|
||||
onRequestPermissionsResult(PERMISSION_REQUEST_CODE, permissions, grantResults);
|
||||
runScript();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user