-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document build process for Android and iOS #14
Comments
Changed the title to be more generally about documenting the build process for both Android and iOS apps. |
I'm also going to try setting myself up with the Android and iOS SDK's next week. Before I can move ahead with PR #21 , and before committing any other changes to this repo after that, I think I need to be able to confirm these builds work. For committing changes to the client, I think #22 should be helpful. |
Fantastic - if you have any questions about setting up the build process,
I'll be glad to help in any way I can!
…On Fri, Apr 27, 2018 at 3:04 PM, James Gaehring ***@***.***> wrote:
I'm also going to try setting myself up with the Android and iOS SDK's
next week. Before I can move ahead with PR #21
<#21> , I think we need to
confirm
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ARAC8KwF0XS2jl57xP3bhPvwg_0uXy0mks5ts2uzgaJpZM4S4pd9>
.
|
So I've been digging through the Cordova docs and the Webpack configurations Alex put in place, and I think I've got a general feel now for how the build process should run. There are basically 2 steps: Webpack builds the html/css/js assets into a production ready web app (in The first snag I hit was running Webpack. This should work by simply running the npm script, I'd still like to get a better understanding of the build process before I start cleaning up the Webpack and dependency stuff, so I'm generating a blank Cordova test app just to make sure I've got Cordova and the Android SDK set up properly (see Cordova's Android Platform Guide). As for the iOS SDK, I'll be somewhat limited in what I can do there, since I'm developing in Ubuntu (see "Developing an iOS App on Linux"). So for the time being, I'm just going to try to get the Cordova/Android process working, as a proof that Cordova in and of itself is working. Once I can get that test app to build, I'm planning to rewind the git head back to the last stable commit in the farmOS-native repo, back before the repo-split when Alex was able to build the first demo for Paicines, and try running a build of that. That way I can be pretty confident I know what all is required for our specific build. All the while I'll be documenting the whole process. After that, I'd really like to take a fresh look at our graph of dependencies between the two repos and figure out, once and for all, which repos get which deps, and which repos perform each part of the build process. More info on that in #7. My feeling at this point is that it might just be easiest to re-scaffold the whole project from scratch, using the Cordova and Vue cli tools, add the main |
Regarding:
I don't have time right now to test this, but I think I've found the Webpack config that's responsible for this issue, so I'm just noting it here until I have time to follow up properly. When I separated the repos, I had to add some configuration to |
Leaving some more notes for reference.... I went back and found the tutorial Alex used to initialize the project and setup the Webpack configuration: "Making work the Vue.js webpack template with cordova". I think I've found the problem with this setup which is leading to the duplication I mentioned in my previous comments. The tutorial goes against Webpack best practices by copying the Again, I might defer reintegrating the config files until I've settled on a strategy for managing depdenencies, and meanwhile just go for the quick-fix of duplicating the configurations from |
After implementing that quick-fix in There are likely still going to be bugs that need fixing, and corresponding updates to the docs, plus the longer term fix to |
I'd like to get set up with an Android APK build process on my laptop (Ubuntu), and document the steps for others.
The text was updated successfully, but these errors were encountered: