Skip to content
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

Feature/contacts history #29

Merged
merged 15 commits into from
Jul 18, 2017
Merged

Feature/contacts history #29

merged 15 commits into from
Jul 18, 2017

Conversation

MurhafSousli
Copy link
Contributor

@MurhafSousli MurhafSousli commented Jul 17, 2017

closes #4, (this PR extends the store PR #18)

  • Contacts are tested with Android emulator. yet I still can't display contacts images because of the links, more info in this SO
  • History is just a layout, I couldn't embed it in the app because there isn't an ionic plugin for the logs! I also couldn't open the native call log app, I opened this ticket

_

Copy link
Member

@adrianq adrianq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @MurhafSousli, thank you for this and for opening tickets for the missing bits! I know this feature has been a sort of a pain and a lot of investigation was needed. Before testing this PR deeper, there are a few files that have changes and they look to me as auto-generated files. Some of these files, IMHO, shouldn't be changed (most of package.json content, config.xml, etc.) for this feature. My comments try to point you to some of these changes. Can you please have a look them and let me know what you think?

config.xml Outdated
<plugin name="cordova-plugin-device" spec="1.1.4"/>
<plugin name="cordova-plugin-splashscreen" spec="~4.0.1"/>
<name>WiFiCalling</name>
<description>An awesome Ionic/Cordova app.</description>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you are updating this file, can you please also set the proper description, team and so on?

package.json Outdated
@@ -1,8 +1,8 @@
{
"name": "wifi-calling",
"version": "0.0.1",
"author": "EyeSeeTea Team",
"homepage": "http://eyeseetea.com/",
"author": "Ionic Framework",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please keep the current author and homepage?

package.json Outdated
"@ionic-native/core": "3.12.1",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@angular/animations": "^4.1.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should downgrade the version unless there is a reason to do so, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, 4.1.3 is the angular version generated by the current latest ionic cli. I had many difficulties getting our project to work with the emulator, it was throwing non-sense errors. finally I got it to work, downgrading angular version was the fix. these issues could be caused by npm 5 or ionic. I can't remember them in details! but there are couple of opened issues related to it. like this one

package.json Outdated
"cordova-plugin-contacts": "^2.3.1",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-inappbrowser": "^1.7.1",
"cordova-plugin-splashscreen": "^4.0.3",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is splashscreen actually needed btw? Can you review we actually need all this bunch of libs?

Copy link
Contributor Author

@MurhafSousli MurhafSousli Jul 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • splashscreen is used to show welcome/loading page just before the app loads. I think it is important.
  • inappbrowser "is suppoused to" let you launch other apps or web pages from the app. if it works as expected, we will use it to launch the native history app (call log). depends on this
  • cordova-plugin-device for device information, it also has the onDeviceReady event which we use.

Currently we are using all of them.

src/index.html Outdated
<!-- The bundle js is generated during the build process -->
<!-- The vendor js is generated during the build process
It contains all of the dependencies in node_modules -->
<script src="build/vendor.js"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why wasn't this needed before?

Copy link
Contributor Author

@MurhafSousli MurhafSousli Jul 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was generated by ionic, it is part of the new update

@@ -7,6 +7,5 @@
},
"rulesDirectory": [
"node_modules/tslint-eslint-rules/dist/rules"
],
"extends": "tslint-ionic-rules"
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, it is also a part of the update. things are constantly being changed by ionic so it might be added again. I am just going with the framework as it goes. It's not stable as I thought!

@adrianq
Copy link
Member

adrianq commented Jul 18, 2017

Thanks @MurhafSousli ! I just merged it with development and some minor fixes.

@adrianq adrianq merged commit 3961b40 into development Jul 18, 2017
@adrianq adrianq removed the testing label Jul 18, 2017
@adrianq
Copy link
Member

adrianq commented Jul 18, 2017

I have created two issues (#31 and #32) to tackle missing bits

@adrianq adrianq deleted the feature/contacts-history branch August 19, 2017 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants