Skip to content

Commit

Permalink
Added macOS and tvOS compatibility (matomo-org#155)
Browse files Browse the repository at this point in the history
* re-enabled building the ios_demo app while performing tests

* renamed ios test project

* added macos example application

* removed UIKit dependencies

* Added tvOS Support

* Moved ios Example Application

* Updated travis to use the xcode8.3 image and always build the osx and tvos demos
  • Loading branch information
brototyp authored Jun 10, 2017
1 parent 8b2eeec commit 9a46e68
Show file tree
Hide file tree
Showing 88 changed files with 2,292 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ before_install:
- cd $TRAVIS_BUILD_DIR
- pod install || pod install --repo-update
script: rake test
osx_image: xcode8
osx_image: xcode8.3
cache: cocoapods
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## Unreleased
* **feature** Added macOS and tvOS compatibility. [#134](https://github.com/piwik/piwik-sdk-ios/issues/134)

## 4.0.0
* **feature** Renamed the Tracker to PiwikTracker. [#146](https://github.com/piwik/piwik-sdk-ios/issues/146)
* **feature** Added isOptedOut parameter to the PiwikTracker. [#124](https://github.com/piwik/piwik-sdk-ios/issues/124)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 45 additions & 0 deletions Example/ios/iOS Example/OptOutViewController.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//
// OptOutViewController.m
// PiwikTracker
//
// Created by Mattias Levin on 9/17/13.
// Copyright (c) 2013 Mattias Levin. All rights reserved.
//

#import "OptOutViewController.h"
#import "PiwikTracker.h"


@interface OptOutViewController ()
@end


@implementation OptOutViewController


- (void)viewDidLoad {
[super viewDidLoad];

self.optOutSwitch.on = ![PiwikTracker sharedInstance].optOut;

}


- (IBAction)sendOptOutAction:(id)sender {

UISwitch *option = (UISwitch*)sender;

if (option.on) {

[PiwikTracker sharedInstance].optOut = NO;

} else {

[PiwikTracker sharedInstance].optOut = YES;

}

}


@end
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
BlueprintIdentifier = "CDC335FE17B97B110098386C"
BuildableName = "Documentation"
BlueprintName = "Documentation"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -48,7 +48,7 @@
BlueprintIdentifier = "CDC335FE17B97B110098386C"
BuildableName = "Documentation"
BlueprintName = "Documentation"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
Expand All @@ -66,7 +66,7 @@
BlueprintIdentifier = "CDC335FE17B97B110098386C"
BuildableName = "Documentation"
BlueprintName = "Documentation"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
BlueprintIdentifier = "CDE4CAE61813DDFE007E0EF7"
BuildableName = "Upload API"
BlueprintName = "Upload API"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -48,7 +48,7 @@
BlueprintIdentifier = "CDE4CAE61813DDFE007E0EF7"
BuildableName = "Upload API"
BlueprintName = "Upload API"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
Expand All @@ -66,7 +66,7 @@
BlueprintIdentifier = "CDE4CAE61813DDFE007E0EF7"
BuildableName = "Upload API"
BlueprintName = "Upload API"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
BlueprintIdentifier = "CD93EC8A17E76E290062BE20"
BuildableName = "ios.app"
BlueprintName = "ios"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -35,7 +35,7 @@
BlueprintIdentifier = "CD93EC8A17E76E290062BE20"
BuildableName = "ios.app"
BlueprintName = "ios"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
Expand All @@ -58,7 +58,7 @@
BlueprintIdentifier = "CD93EC8A17E76E290062BE20"
BuildableName = "ios.app"
BlueprintName = "ios"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
Expand All @@ -77,7 +77,7 @@
BlueprintIdentifier = "CD93EC8A17E76E290062BE20"
BuildableName = "ios.app"
BlueprintName = "ios"
ReferencedContainer = "container:Example.xcodeproj">
ReferencedContainer = "container:ios.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Loading

0 comments on commit 9a46e68

Please sign in to comment.