03-14-2018 08:19
03-14-2018 08:19
I know the .fba file is a zipped file that contains a number of zipped subfolders and manifest files. How is the fba file compiled? What tool are you using and is it possible for developers to compile offline without Fitbit Studio? The reason I ask is that I have started to use a source code repository for my code and resource files, but find it a nuisance to have to build and download the .fba file that matches a particular build version. I am trying to set up a continuous build / continuous integration process but without knowing how the .fba file is generated from the source code, I run the risk of having a fba file that is out of sync with the code.
Answered! Go to the Best Answer.
03-19-2018 23:10
03-19-2018 23:10
Higgs is the codename for Ionic, and Meson is the codename for Versa. In case you were wondering 🙂
03-19-2018 23:10
03-19-2018 23:10
We don't currently have any command line tools, but we're hoping to provide some in the future.
The current build process is done in the browser, basically bundling and tree-shaking using rollup.js.
We bundle the device javascript and convert it to ES 5.1 JavaScript for the device, process png images into txi format, then create a zip file like this for each platform.
Then we bundle and zip the companion, platform zips, and a manifest file into a single zip (named .fba).
03-19-2018 23:10
03-19-2018 23:10
Higgs is the codename for Ionic, and Meson is the codename for Versa. In case you were wondering 🙂
03-20-2018 06:07
03-20-2018 06:07
Good to know, thanks. Hoping that it won’t be too long before we’ll be able to code, build and run in the simulator offline and then upload / publish to Fitbit Studio to test on a real device. That way I can code in my favourite editor and use source control to keep everything in sync.
10-24-2022 10:16
10-24-2022 10:16
Is it still not possible to create a .fba outside of Fitbit Studio? I'm using Visual Studio Code to code in TypeScript, and I can build and send my app to the simulator using the command line window, but unless I can generate a .fba file I can't submit it for publishing. In 2018 you said that providing this functionality is planned for the future, and here we are.
10-24-2022 12:14
10-24-2022 12:14
If you're using Visual Studio Code with CLI to send apps to the simulator, you're probably making .fba files outside of Studio. Look in your project's 'build' directory.
10-27-2022 10:10
10-27-2022 10:10
Thank you! I found app.fba and it looks like the genuine article.