build.json

415 views
Skip to first unread message

Arjun Gowda

unread,
Dec 24, 2016, 2:56:24 AM12/24/16
to DroidScript
hello,please can anyone help me with how to create build.json file,i google for more than half the day but could not find out the method to create build.json file

Symbroson Development

unread,
Dec 24, 2016, 3:12:31 AM12/24/16
to DroidScript

Steve Garman

unread,
Dec 24, 2016, 3:19:42 AM12/24/16
to DroidScript
There is a section on build.json in the topic "Building APKs" near the top of this group https://groups.google.com/d/msg/androidscript/znTcLsg4u9M/JK9Q52a7DQAJ

One important thing to note is that the build.json file is optional and it is very likely you do not need one.

Arjun Gowda

unread,
Dec 24, 2016, 6:13:18 AM12/24/16
to DroidScript
thank you for helping me but i already seen this https://groups.google.com/forum/m/#!topic/androidscript/znTcLsg4u9M 
but i didnt understand where to put these code

{

"manifest" : 

"minSdkVersion" : 18,

"targetSdkVersion" : 21,

"debuggable" : false,

"removePermissions" : "WRITE_EXTERNAL_STORAGE, ACCESS_WIFI_STATE",

"homeScreen":false,

"pathPattern":".*\\.jpg,.*\\.txt"

}

}

i am trying to build  a launcher ,it says create a build.json file so when i try to put these 

{

"manifest" : 

"minSdkVersion" : 18,

"targetSdkVersion" : 21,

"debuggable" : false,

"removePermissions" : "WRITE_EXTERNAL_STORAGE, ACCESS_WIFI_STATE",

"homeScreen":false,

"pathPattern":".*\\.jpg,.*\\.txt"

}

}

 code at the top of the other rest javascript code and try to launch it is giving me error, and please help me by uploading the sample of build.json ,i want to see where to add that above mentioned code in my javascript app

please help.........

Message has been deleted

Steve Garman

unread,
Dec 24, 2016, 6:41:58 AM12/24/16
to DroidScript
No Alex.
It goes in a separate file called build.json in the same folder as your main .js file.

If you are not using the WiFi editor, the easiest way is to use a simple text editor.

Arjun Gowda

unread,
Dec 24, 2016, 8:49:25 AM12/24/16
to DroidScript
so finally should i create another folder of text editor and then put these

{

"manifest" : 

"minSdkVersion" : 18,

"targetSdkVersion" : 21,

"debuggable" : false,

"removePermissions" : "WRITE_EXTERNAL_STORAGE, ACCESS_WIFI_STATE",

"homeScreen":false,

"pathPattern":".*\\.jpg,.*\\.txt"

}

}
 into that folder??

Chris

unread,
Dec 24, 2016, 11:21:17 AM12/24/16
to DroidScript
If your app name is 'Launcher' go to the DroidScript folder and go to your app folder..,

My example:
/sdcard/DroidScript/Launcher

In THIS folder create a new text file named 'build.json' and place your configuration there.

:-)
Chris

Arjun Gowda

unread,
Dec 25, 2016, 2:13:16 AM12/25/16
to DroidScript
thanks for helping me and replies
but even after creating build.json file ,i am not able to set the launcher as default launcher and i think build.json file is not working at all in restricring the min sdk and maxsdk version

Sergio Gensetter

unread,
Dec 26, 2016, 10:28:15 AM12/26/16
to DroidScript
{
"manifest":
{
homeScreen:true
}
}

Dave Smart

unread,
Dec 29, 2016, 2:18:55 PM12/29/16
to DroidScript
Please tell us the exact folder path that your build.json file lives at.

Please tell us your app name.


Benjamin Pasalic

unread,
Jan 13, 2018, 8:13:25 AM1/13/18
to DroidScript
long press on the app that contains the file, select build apk, and make sure that obfuscate code is checked.
Reply all
Reply to author
Forward
0 new messages