-
Notifications
You must be signed in to change notification settings - Fork 500
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
Fixes #638 - updated camera #1747
Fixes #638 - updated camera #1747
Conversation
**UPDATE: I pulled down develop, locally merged my feature branch with that, resolved conflicts, and pushed it back up. We should be good to go now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ianscott313: I did a first review of your PR (sorry for the delay ;)), it is a global review because I was not able to build Riot project from your sources. I got an error in RiotShareExtension:
"MatrixKit/MatrixKit.h file not found".
Could you please fix this compilation issue?
(You should read first all my review before working on this compilation issue, I mentioned some points that may help you).
Here are some others global remarks:
- You introduced a large part of code from third parties. You should do that only when it is really necessary. Some functionalities were already available, we would prefer to improve the existing ones rather than adding new files.
- you should update podfile.lock, the checksum is wrong since I resolved a conflict in it.
- icons: Could you please re-use the existing ones, and add only those which are really missing
pod 'OLMKit' | ||
#pod 'OLMKit', :path => '../olm/OLMKit.podspec' | ||
pod 'Realm', '~> 3.0.1' | ||
pod 'LLSimpleCamera', :inhibit_warnings => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove OLMKit and Realm pods here, they are handled at SDK level now
3C9CA406200C651F006031F1 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 3C9CA403200C651E006031F1 /* [email protected] */; }; | ||
3C9CA407200C651F006031F1 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 3C9CA404200C651E006031F1 /* [email protected] */; }; | ||
3C9CA408200C651F006031F1 /* send.png in Resources */ = {isa = PBXBuildFile; fileRef = 3C9CA405200C651E006031F1 /* send.png */; }; | ||
40D7564A9783FD6C28C157CE /* libPods-RiotPods-RiotShareExtension.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AF0A0746EF74FF15B8B79658 /* libPods-RiotPods-RiotShareExtension.a */; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why and how you added libPods-RiotPods-RiotShareExtension.a
here.
I think this is to hide a compilation error observed in RiotShareExtension since you unchecked 'Find Implicit Dependencies' in Edit Scheme > Build.
For your information, this added lib was automatically removed when I built locally the project.
@@ -382,8 +399,6 @@ | |||
F083BE141E7009ED00A9B29C /* HomeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F083BC311E7009EC00A9B29C /* HomeViewController.m */; }; | |||
F083BE151E7009ED00A9B29C /* MediaAlbumContentViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F083BC331E7009EC00A9B29C /* MediaAlbumContentViewController.m */; }; | |||
F083BE161E7009ED00A9B29C /* MediaAlbumContentViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F083BC341E7009EC00A9B29C /* MediaAlbumContentViewController.xib */; }; | |||
F083BE171E7009ED00A9B29C /* MediaPickerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F083BC361E7009EC00A9B29C /* MediaPickerViewController.m */; }; | |||
F083BE181E7009ED00A9B29C /* MediaPickerViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F083BC371E7009EC00A9B29C /* MediaPickerViewController.xib */; }; | |||
F083BE191E7009ED00A9B29C /* RecentsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = F083BC391E7009EC00A9B29C /* RecentsViewController.m */; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not remove the existing sources related to the MediaPickerViewController.
@@ -2770,7 +2833,7 @@ | |||
TargetAttributes = { | |||
24CBEC4D1F0EAD310093EABB = { | |||
CreatedOnToolsVersion = 8.3.2; | |||
DevelopmentTeam = 7J4U792NQT; | |||
DevelopmentTeam = 7J4U792NQT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove these useless diff due to tabulation changes?
@@ -4115,10 +4192,11 @@ | |||
isa = XCBuildConfiguration; | |||
baseConfigurationReference = A5030B7C3C0B6EB83A9257BD /* Pods-RiotPods-Riot.debug.xcconfig */; | |||
buildSettings = { | |||
APPLICATION_EXTENSION_API_ONLY = NO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain why and how this build setting APPLICATION_EXTENSION_API_ONLY
is appeared for the target named Riot?
// Created by Ian on 1/12/18. | ||
// Copyright © 2018 matrix.org. All rights reserved. | ||
// | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the following header template for each files you created
/*
Copyright 2018 <Your Name>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// | ||
// Created by Ian on 1/12/18. | ||
// Copyright © 2018 matrix.org. All rights reserved. | ||
// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my previous comment about file header
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface UIImage(CropCategory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this category UIImage+Crop
from the project sources, it is not use...
@@ -1,111 +0,0 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not remove the files related to MediaPickerViewController
{ | ||
[super viewWillAppear:animated]; | ||
|
||
// Screen tracking (via Google Analytics) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Google Analytics use has been removed. We use now Piwik tracker.
You may replace the following lines by the simple one:
[[AppDelegate theDelegate] trackScreen:@"Camera"];
We have merged #2620 for this feature. |
I accidentally switched off of the develop branch on to the master when i started this so its based off master. The only existing files i really changed had to do with the MediaPickerViewController which were completely taken out so I believe it should merge alright
Also 'Find Implicit Dependencies' needs to be unchecked in Edit Scheme > Build
**UPDATE: I pulled down develop, locally merged my feature branch with that, resolved conflicts, and pushed it back up. We should be good to go now
Signed-off-by: Ian Scott [email protected]
Fixes #638