Fix the exception when addAllowedApplication
This commit is contained in:
+5
-2
@@ -43,9 +43,12 @@ task goClean(type: Exec) {
|
||||
args "-c", "src/overture/clean.bash"
|
||||
}
|
||||
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
tasks.whenTaskAdded { task ->
|
||||
if (task.name == 'generateJsonModelDebug' ||
|
||||
task.name == 'generateJsonModelRelease') {
|
||||
if ((task.name == 'generateJsonModelDebug' ||
|
||||
task.name == 'generateJsonModelRelease') &&
|
||||
!Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||
task.dependsOn(goBuild)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ if [ ! -f "$ANDROID_X86_CC" ]; then
|
||||
--api $MIN_API --install-dir $ANDROID_X86_TOOLCHAIN
|
||||
fi
|
||||
|
||||
if [ ! -d "$DIR/go/bin" ]; then
|
||||
if [ ! -f "$DIR/go/bin/go" ]; then
|
||||
echo "Build the custom go"
|
||||
|
||||
pushd $DIR/go/src
|
||||
|
||||
@@ -152,7 +152,7 @@ class VpnService : BaseVpnService(), LocalDnsService.Interface {
|
||||
Log.e(tag, "Invalid package name", ex)
|
||||
}
|
||||
}
|
||||
builder.addAllowedApplication(me)
|
||||
if (!profile.bypass) builder.addAllowedApplication(me)
|
||||
}
|
||||
|
||||
when (profile.route) {
|
||||
|
||||
Reference in New Issue
Block a user