Skip to content
This repository was archived by the owner on Sep 4, 2026. It is now read-only.
This repository was archived by the owner on Sep 4, 2026. It is now read-only.

#import "APCAppCore.h" where it's not necessary #16

Closed

Description

@p2

Both APCTabBarViewController and APCPasscodeViewController import all AppCore headers, making it impossible to use them outside of the whole bundle.

Activity

  1. p2 commented on Apr 30, 2015

    @p2
    MemberAuthor

    Also, would it be possible to replace

    [[UIStoryboard storyboardWithName:@"APCPasscode" bundle:[NSBundle appleCoreBundle]]
    

    with

    [[UIStoryboard storyboardWithName:@"APCPasscode" bundle:[NSBundle bundleForClass:[self class]]]
    

    I'm not sure why the storyboard is made dependent on a specific bundle key.

  2. added a commit that references this issue on Apr 30, 2015
    a33b444
  3. jwe-apple commented on Apr 30, 2015

    @jwe-apple
    Member

    Same - please submit as a PR and I'll have someone review it!

  4. p2 commented on Apr 30, 2015

    @p2
    MemberAuthor

    I'm running into more of these as I integrate, happy to send a PR once I'm through.

  5. added a commit that references this issue on Apr 30, 2015
    23db712
  6. p2 commented on Apr 30, 2015

    @p2
    MemberAuthor

    A lot of the view controllers depend on APCAppDelegate. I have moved the methods accessed into a protocol that APCAppDelegate adopts, and my own app delegate as well. Since to get this to work on my end I have to follow this path throughout and I'm doing this while I'm removing all the AppCore.h imports.

    Should I or should I not commit this to this branch?

    The protocol currently is:

    @protocol APCAppDelegateTasks <NSObject>
    
    @required
    @property (copy, nonatomic, readonly) NSDictionary *__nullable initializationOptions;
    
    @property (strong, nonatomic, readonly) APCDataSubstrate *__nullable dataSubstrate;
    
    @property (strong, nonatomic, readonly) APCOnboarding *__nullable onboarding;
    
    - (void)instantiateOnboardingForType:(APCOnboardingTaskType)type;
    
    @end
  7. jwe-apple commented on Apr 30, 2015

    @jwe-apple
    Member

    I'd lean toward getting the first PR accepted, then submitting it as a follow-on.

  8. p2 commented on Apr 30, 2015

    @p2
    MemberAuthor

    I'll keep it piling up on my master branch, can later cherry-pick.

  9. added a commit that references this issue on Sep 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions