Closed bkbonner closed 4 years ago
Unfortunately, I have 0 experience with the iOS part of Flutter. I have had several problems with the add_2_calendar
package in the past. It was an issue with Kotlin & some Android SDK tools, updating those tools solved my issue.
I work with @AppleEducate on some other projects, where he manage the iOS aspect.
Hope he could help you where I can't. I'm sorry :/
@bkboner I use the package in other apps. What are you trying to build for? Release mode?
Have you added #use_frameworks! To the podfile? It is required for swift plugins
Hi sorry, I'm not super familiar with iOS stuff. this stackoverflow says use_frameworks! isn't needed for > iOS 9? I'll give it a shot though. I have xcode Version 10.1 (10B61) installed.
It sounds like I'm trying to get something to work that may have never been working to begin with. The readme led me to believe it was working with iOS:
allows me to deploy it to Android & iOS with ease
I'll give the #use_frameworks! a try.
It’s definitely needed. You will need to create the main project with swift and kotlin flags enabled. This project I believe was built with just objC on ios
This project was created months ago, when I didn't know was I was doing. Is there a way I could add Swift and Kotlin support a posteriori?
Not sure. For me I have had the best luck creating a new project and porting the /lib folder
I've been doing some refactor on the Android, iOS & packages side of this project. Basically, I've generated a new project, and comparing both project, checking for updated done on the last few months.
Hopefully it works now :)
Right on!!!
Sent from my iPhone
On Jan 24, 2019, at 8:31 AM, Chechu notifications@github.com wrote:
I've been doing some refactor on the Android, iOS & packages side of this project. Basically, I've generated a new project, and comparing both project, checking for updated done on the last few months.
Hopefully it works now :)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Does it work to you? Before the update, it didn't work on CodeMagic, but since the last commit, it now generates the 'Runner.app' flawlessly :)
I haven’t tried it yet, I am about to try out code magic though 👌🏻
@bkbonner Since I think this is now solved, I'm closing this issue. If you have further iOS issues, please let me know :)
Sorry for the delayed response. been buried with a production issue. I am testing it out tonight. Thank you for the assistance. My apologies, I'm usually more prompt than this.
I was able to get it to work by copying over the lib and assets directory from the old project to a flutter project created with -i swift.
I ran diff -rq spacex-go spacex-swift
where space-go is the orig project and spacex-swift is project created with -i swift and I've attached a list of files that were different. Too many to mention.
There were so many differences, it was easier to just move the lib and assets directory from the spacex-go directory to spacex-swift and it seemed to work ok. differences.txt
I was able to get things added to the calendar, but only after I added a null safe check to:
description: model.launch.details??"",
in tab_home.dart
and
description: _launch.details??"",
in page_launch.dart
It was blowing up when I tried to add an event that didn't have a description coming back from the data.
Did you check if the changes made in d5f8ba35c046a47146e1de39aeaf502d69b20fe0 solves this issue?
Please, run git pull
and let me know if I have to make further updates to the iOS/
folder.
I did not, but can pull that tonight.
btw, fwiw I noticed that you're making changes on the Master branch. In my experiences, the master branch is usually reserved for code that has been released to the world. Normal development should happen on the Develop branch and then merged into master when it's ready to be released. That way, you can proceed w/ normal development and enhancements, and if there's a bug in the released code, you can do a hot-fix off of that master branch to fix the issue without introducing any code from new development.
On Thu, Jan 31, 2019 at 10:32 AM Chechu notifications@github.com wrote:
Did you check if the changes made in d5f8ba3 https://github.com/jesusrp98/spacex-go/commit/d5f8ba35c046a47146e1de39aeaf502d69b20fe0 solves this issue? Please, run git pull and let me know if I have to make further updates to the iOS/ folder.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jesusrp98/spacex-go/issues/6#issuecomment-459387824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoweS3udGw_nOYW1eRYa25EKVoDE_kiks5vIwyggaJpZM4aLV2b .
I had copied the lib and assets directories over to a new swift based project. I had tried to do the compare...but there were just too many places and I didn't want to wipe out your stuff.
I will take a look. If it doesn't work, I'm happy to replace it w/ my changes from a swift project as a pull request for you. I'm able to pull the app up. There are still bugs, but it at least runs.
I'll let you know tonight.
On Thu, Jan 31, 2019 at 2:39 PM Brian Bonner brian.bonner@paraware.com wrote:
I did not, but can pull that tonight.
btw, fwiw I noticed that you're making changes on the Master branch. In my experiences, the master branch is usually reserved for code that has been released to the world. Normal development should happen on the Develop branch and then merged into master when it's ready to be released. That way, you can proceed w/ normal development and enhancements, and if there's a bug in the released code, you can do a hot-fix off of that master branch to fix the issue without introducing any code from new development.
On Thu, Jan 31, 2019 at 10:32 AM Chechu notifications@github.com wrote:
Did you check if the changes made in d5f8ba3 https://github.com/jesusrp98/spacex-go/commit/d5f8ba35c046a47146e1de39aeaf502d69b20fe0 solves this issue? Please, run git pull and let me know if I have to make further updates to the iOS/ folder.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jesusrp98/spacex-go/issues/6#issuecomment-459387824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoweS3udGw_nOYW1eRYa25EKVoDE_kiks5vIwyggaJpZM4aLV2b .
In the commit I referenced in my last comment, I basically created a new Flutter project, and compared the new project with the old one, and included those changes. If there are significant and key changes between the master
branch & your local copy, please consider posting a pull request.
Regarding Git, I want to take a deeper look into more complex systems, like git-flow
. Since the v2.1 is mostly finished, I want to wait until I release it to the public in the coming weeks to start using new git branching models. I started using GitHub just a year a go, so if you have some knowledge you want to share with me, please send me an email.
Thank you very much!
@jesusrp98 I will have to get back to you re: the iOS portion.
There are a few things missing:
`
That's unfortunate, since I don't know basically anything about iOS development. I'm very grateful to you for taking some of your time to investigate & fix all issues in the iOS section of this project.
Since my other project with @AppleEducate will be uploaded to the App Store, and it shares most of the structure & packages from spacex-go
, I think we will be able eventually to fix all issues in the coming weeks.
Once again, thank you very much.
Absolutely, once we finish the other one I can merge the iOS portion for this app.
Hey @bkbonner, long time I don't take a look at this issue.
Recently, I had the opportunity to grab a Mac mini for other projects, and now I have the change to launch SpaceX GO! as a standalone app in the App Store.
I'm updating the ios
folder in the dev-ios branch if you want to take a look. At first glance, all the features the app offers work on iOS. I want to take a deeper look before I publish it. Planning to do it hopefully next month, if all goes well :)
Thanks for the support!
I've just cloned and run the app in iOS and works flawlessly! If you need to test something I'm pleased to help you folks 😊🚀
@DrankoLQ hey, can you please tell me what I'm doing wrong?
I only can see loading screen and seems like an error with receiving data?
Running Xcode build...
├─Assembling Flutter resources... 5,4s
└─Compiling, linking and signing... 8,9s
Xcode build done. 18,0s
flutter: The system locale is en
flutter: Error loading translation RangeError (index): Invalid value: Only valid value is 0: 1
flutter: JSON file loaded for en
Syncing files to device iPhone 11 Pro Max...
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: 'package:provider/src/provider.dart': Failed assertion: line 213 pos 7: 'context.owner.debugBuilding || listen == false || _debugIsInInheritedProviderUpdate': Tried to listen to a value exposed with provider, from outside of the widget tree.
This is likely caused by an event handler (like a button's onPressed) that called
Provider.of without passing `listen: false`.
To fix, write:
Provider.of<AppModel>(context, listen: false);
It is unsupported because may pointlessly rebuild the widget associated to the
event handler, when the widget tree doesn't care about the value.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:42:39)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:38:5)
#2 Provider.of (package:provider/src/provider.dart:213:7)
#3 HomeModel._scheduleNotification (package:cherry/data/models/home.dart:102:20)
#4 HomeModel.initNotifications (package:cherry/data/models/home.dart:53:1<…>
Syncing files to device iPhone 11 Pro Max... 21 796ms (!)
Sorry guys https://github.com/flutter/flutter/issues/17831
flutter clean did the thing!
@jesusrp98 thank you for your app!
@vladyslav2 Glad your issue was fixed! :)
I was planning to launch the iOS app in the App Store this year, but unfortunately due to time constrains, I'll instead release it in the coming months, in Q1 2020, hopefully February.
More testing should be performed, like notifications, issue posting via email (available inside the 'About' screen) and a general interface inspection to check if there's anything wrong.
I was trying to run the iOS portion and I ran into the issue described here: https://github.com/ja2375/add_2_calendar/issues/4
Were you able to work around this issue?