Skip to content

Implement auto-detection of active subscriptions

Codecov / codecov/patch failed Apr 20, 2024 in 1s

29.18% of diff hit (target 85.00%)

View this Pull Request on Codecov

29.18% of diff hit (target 85.00%)

Annotations

Check warning on line 14 in Sources/Flare/Classes/Extensions/Product.SubscriptionInfo.Status+ISubscriptionInfoStatus.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Extensions/Product.SubscriptionInfo.Status+ISubscriptionInfoStatus.swift#L12-L14

Added lines #L12 - L14 were not covered by tests

Check warning on line 23 in Sources/Flare/Classes/Extensions/Product.SubscriptionInfo.Status+ISubscriptionInfoStatus.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Extensions/Product.SubscriptionInfo.Status+ISubscriptionInfoStatus.swift#L16-L23

Added lines #L16 - L23 were not covered by tests

Check warning on line 159 in Sources/Flare/Classes/Flare.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Flare.swift#L157-L159

Added lines #L157 - L159 were not covered by tests

Check warning on line 58 in Sources/Flare/Classes/Listeners/TransactionListener/TransactionListener.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Listeners/TransactionListener/TransactionListener.swift#L57-L58

Added lines #L57 - L58 were not covered by tests

Check warning on line 65 in Sources/Flare/Classes/Listeners/TransactionListener/TransactionListener.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Listeners/TransactionListener/TransactionListener.swift#L60-L65

Added lines #L60 - L65 were not covered by tests

Check warning on line 76 in Sources/Flare/Classes/Listeners/TransactionListener/TransactionListener.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Listeners/TransactionListener/TransactionListener.swift#L74-L76

Added lines #L74 - L76 were not covered by tests

Check warning on line 36 in Sources/Flare/Classes/Models/ExpirationReason.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/ExpirationReason.swift#L21-L36

Added lines #L21 - L36 were not covered by tests

Check warning on line 83 in Sources/Flare/Classes/Models/Internal/SK1StoreProduct.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK1StoreProduct.swift#L81-L83

Added lines #L81 - L83 were not covered by tests

Check warning on line 20 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L18-L20

Added lines #L18 - L20 were not covered by tests

Check warning on line 29 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L27-L29

Added lines #L27 - L29 were not covered by tests

Check warning on line 33 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L31-L33

Added lines #L31 - L33 were not covered by tests

Check warning on line 37 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L35-L37

Added lines #L35 - L37 were not covered by tests

Check warning on line 41 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L39-L41

Added lines #L39 - L41 were not covered by tests

Check warning on line 45 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L43-L45

Added lines #L43 - L45 were not covered by tests

Check warning on line 49 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L47-L49

Added lines #L47 - L49 were not covered by tests

Check warning on line 53 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L51-L53

Added lines #L51 - L53 were not covered by tests

Check warning on line 57 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L55-L57

Added lines #L55 - L57 were not covered by tests

Check warning on line 64 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L59-L64

Added lines #L59 - L64 were not covered by tests

Check warning on line 68 in Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2RenewalInfo.swift#L66-L68

Added lines #L66 - L68 were not covered by tests

Check warning on line 94 in Sources/Flare/Classes/Models/Internal/SK2StoreProduct.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2StoreProduct.swift#L89-L94

Added lines #L89 - L94 were not covered by tests

Check warning on line 20 in Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfo.swift#L18-L20

Added lines #L18 - L20 were not covered by tests

Check warning on line 30 in Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfo.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfo.swift#L28-L30

Added lines #L28 - L30 were not covered by tests

Check warning on line 20 in Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfoStatus.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfoStatus.swift#L18-L20

Added lines #L18 - L20 were not covered by tests

Check warning on line 29 in Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfoStatus.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfoStatus.swift#L27-L29

Added lines #L27 - L29 were not covered by tests

Check warning on line 33 in Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfoStatus.swift

See this annotation in the file changed.

@codecov codecov / codecov/patch

Sources/Flare/Classes/Models/Internal/SK2SubscriptionInfoStatus.swift#L31-L33

Added lines #L31 - L33 were not covered by tests