Skip to content

[MOB-15997] Analytics app extension support#70

Merged
cdhoffmann merged 9 commits intoadobe:dev-v3.0.4from
cdhoffmann:analyticsAppExtensionSupport
May 12, 2022
Merged

[MOB-15997] Analytics app extension support#70
cdhoffmann merged 9 commits intoadobe:dev-v3.0.4from
cdhoffmann:analyticsAppExtensionSupport

Conversation

@cdhoffmann
Copy link
Copy Markdown
Contributor

@cdhoffmann cdhoffmann commented May 6, 2022

adobe/aepsdk-core-ios#812

Support for App Extensions. In order to support App Extensions we have used the @Availability attribute to mark the AnalyticsHelper is unavailable because it uses the UIApplication.shared instance. Then we made the Analytics Extension class a base class and created two children classes. One which will be used by Apps, and one which will be used by App Extensions when registering.

@cdhoffmann cdhoffmann requested review from emdobrin and kevinlind May 6, 2022 22:35
Copy link
Copy Markdown
Contributor

@kevinlind kevinlind left a comment

Choose a reason for hiding this comment

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

Are most of the new test cases for the AnalyticsAppExtension just copies of the Analytics tests? If so, could you point out where you made changes for the app extension tests?

@cdhoffmann cdhoffmann changed the title [WIP] Analytics app extension support [MOB-15997] Analytics app extension support May 9, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented May 10, 2022

Codecov Report

Merging #70 (70169be) into dev-v3.0.4 (59bf6f9) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@              Coverage Diff               @@
##           dev-v3.0.4      adobe/aepsdk-analytics-ios#70      +/-   ##
==============================================
+ Coverage       90.21%   90.23%   +0.03%     
==============================================
  Files              14       14              
  Lines            1113     1116       +3     
==============================================
+ Hits             1004     1007       +3     
  Misses            109      109              

@cdhoffmann cdhoffmann requested a review from kevinlind May 10, 2022 15:34
@@ -1,46 +0,0 @@
PODS:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why delete the Podfile.lock? Was this a mistake?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I was getting a CI cocoapods error where it said it couldn't find 3.6.0 so i wanted to see if removing the podfile.lock would fix it. And it did.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can you try adding the --repo-update flag to bundle exec pod install --repo-update in the CircleCI config? Sounds like the repo on the CI node just needs to be updated.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

}

func invalidate() {
// TODO: perform invalidation of server connection if necessary
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There are a lot of TODOs in this sample app. Is this work you'll do in another PR or is this FileProviderExtension a sample taken from someplace else and the actual implementation isn't needed for testing Analytics in an app extension?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is just Apple's template for a File Extension.

@cdhoffmann cdhoffmann requested a review from kevinlind May 11, 2022 21:24
@cdhoffmann cdhoffmann merged commit 60ab47a into adobe:dev-v3.0.4 May 12, 2022
@cdhoffmann cdhoffmann deleted the analyticsAppExtensionSupport branch May 12, 2022 16:00
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