Skip to content

Commit

Permalink
v8.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
boehlerlukas committed Oct 17, 2022
1 parent 4a98a97 commit 0f37605
Show file tree
Hide file tree
Showing 13 changed files with 256 additions and 67 deletions.
Binary file modified Example/.DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions Example/Example.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,8 @@
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -371,8 +371,8 @@
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen;
INFOPLIST_KEY_UIMainStoryboardFile = Main;
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait";
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
filePath = "Example/AppDelegate.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "40"
endingLineNumber = "40"
startingLineNumber = "36"
endingLineNumber = "36"
landmarkName = "application(_:didFinishLaunchingWithOptions:)"
landmarkType = "7">
</BreakpointContent>
Expand Down Expand Up @@ -236,9 +236,9 @@
filePath = "../Sources/ObjCSources/GleapNotificationHelper.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "125"
endingLineNumber = "125"
landmarkName = "+showNotification:"
startingLineNumber = "124"
endingLineNumber = "124"
landmarkName = "-pressedView:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
Expand Down Expand Up @@ -284,8 +284,8 @@
filePath = "Example/ImageViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "29"
endingLineNumber = "29"
startingLineNumber = "50"
endingLineNumber = "50"
landmarkName = "buttonClicked(_:)"
landmarkType = "7">
</BreakpointContent>
Expand Down Expand Up @@ -386,5 +386,53 @@
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "00E82013-1B5A-489D-96C9-7A7F38A7358B"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../Sources/ObjCSources/GleapUIOverlayViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "110"
endingLineNumber = "110"
landmarkName = "-isModal:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "B1F049E4-1815-46D5-9AD2-EB93CBB5C9DF"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../Sources/ObjCSources/GleapUIOverlayViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "90"
endingLineNumber = "90"
landmarkName = "-isModalStyle:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "E1238269-79EC-4F96-A7BC-3A46BEC97749"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../Sources/ObjCSources/GleapUIOverlayViewController.m"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "118"
endingLineNumber = "118"
landmarkName = "-isModal:"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
6 changes: 1 addition & 5 deletions Example/Example/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, GleapDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
Gleap.enableDebugConsoleLog()

Gleap.setFrameUrl("http://localhost:3001/app.html")
Gleap.setApiUrl("http://localhost:9000")

Gleap.initialize(withToken: "DUPaIr7s689BBblcFI4pc5aBgYJTm7Sc")
Gleap.initialize(withToken: "ogWhNhuiZcGWrva5nlDS8l7a78OfaLlV")

Gleap.showFeedbackButton(true)

Expand Down
39 changes: 20 additions & 19 deletions Example/Example/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="20037" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="20020"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -37,12 +38,12 @@
</buttonConfiguration>
<connections>
<action selector="sendData:" destination="BYZ-38-t0r" eventType="touchUpInside" id="woT-fp-wWR"/>
<segue destination="2wY-OI-ygZ" kind="presentation" id="uMd-jG-73o"/>
<segue destination="2wY-OI-ygZ" kind="presentation" id="EIH-5r-5a4"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="xob-OO-vdL" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="CFT-EB-OsH"/>
<constraint firstItem="S1J-0x-V21" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" constant="20" id="T6D-GB-8zW"/>
Expand All @@ -59,22 +60,22 @@
</objects>
<point key="canvasLocation" x="121.73913043478262" y="79.6875"/>
</scene>
<!--Image View Controller-->
<!--Test-->
<scene sceneID="YUe-fI-2S5">
<objects>
<viewController id="2wY-OI-ygZ" customClass="ImageViewController" customModule="Example" customModuleProvider="target" sceneMemberID="viewController">
<viewController title="Test" id="2wY-OI-ygZ" customClass="ImageViewController" customModule="Example" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Xy1-7i-YVC">
<rect key="frame" x="0.0" y="0.0" width="414" height="842"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="838"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pexels-michael-block-3225517" translatesAutoresizingMaskIntoConstraints="NO" id="doF-CX-Gug">
<rect key="frame" x="0.0" y="0.0" width="414" height="300"/>
<rect key="frame" x="0.0" y="20" width="414" height="300"/>
<constraints>
<constraint firstAttribute="height" constant="300" id="AIc-xt-Aog"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ru4-FV-kfb">
<rect key="frame" x="20" y="768" width="374" height="54"/>
<rect key="frame" x="20" y="764" width="374" height="54"/>
<color key="backgroundColor" red="0.29803922770000002" green="0.35294118520000001" blue="0.96470588450000005" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<constraints>
<constraint firstAttribute="height" constant="54" id="5Vk-gc-RHf"/>
Expand All @@ -84,13 +85,9 @@
<buttonConfiguration key="configuration" style="plain" title="Magic function" cornerStyle="large">
<fontDescription key="titleFontDescription" type="boldSystem" pointSize="21"/>
</buttonConfiguration>
<connections>
<action selector="buttonClicked:" destination="2wY-OI-ygZ" eventType="touchUpInside" id="ZqJ-Ad-2Rb"/>
<action selector="sendData:" destination="BYZ-38-t0r" eventType="touchUpInside" id="EOo-1Y-Q73"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Demo screen" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WBd-CM-Aqo">
<rect key="frame" x="20" y="327" width="374" height="21"/>
<rect key="frame" x="20" y="347" width="374" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="h4l-Tk-gfI"/>
</constraints>
Expand All @@ -99,7 +96,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="This is a demo 🎉" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4aH-KN-9rd">
<rect key="frame" x="20" y="366" width="374" height="32"/>
<rect key="frame" x="20" y="386" width="374" height="32"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="xXX-qL-5tL"/>
</constraints>
Expand All @@ -109,7 +106,7 @@
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="Zca-vq-hGg"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="4aH-KN-9rd" firstAttribute="leading" secondItem="Zca-vq-hGg" secondAttribute="leading" constant="20" id="5NF-gW-c8A"/>
<constraint firstItem="ru4-FV-kfb" firstAttribute="leading" secondItem="Zca-vq-hGg" secondAttribute="leading" constant="20" id="E4Z-FY-P2K"/>
Expand All @@ -119,24 +116,28 @@
<constraint firstItem="4aH-KN-9rd" firstAttribute="top" secondItem="WBd-CM-Aqo" secondAttribute="bottom" constant="18" id="O5n-oE-dbc"/>
<constraint firstItem="Zca-vq-hGg" firstAttribute="trailing" secondItem="4aH-KN-9rd" secondAttribute="trailing" constant="20" id="gQ5-cV-t9l"/>
<constraint firstItem="doF-CX-Gug" firstAttribute="leading" secondItem="Zca-vq-hGg" secondAttribute="leading" id="kEa-8w-qTf"/>
<constraint firstItem="doF-CX-Gug" firstAttribute="top" secondItem="Xy1-7i-YVC" secondAttribute="top" id="nc0-lW-ftp"/>
<constraint firstItem="doF-CX-Gug" firstAttribute="top" secondItem="Xy1-7i-YVC" secondAttribute="top" constant="20" id="nc0-lW-ftp"/>
<constraint firstItem="ru4-FV-kfb" firstAttribute="bottom" secondItem="Zca-vq-hGg" secondAttribute="bottom" constant="-20" id="q4n-fB-wni"/>
<constraint firstItem="WBd-CM-Aqo" firstAttribute="top" secondItem="doF-CX-Gug" secondAttribute="bottom" constant="27" id="qek-v9-eA3"/>
<constraint firstItem="WBd-CM-Aqo" firstAttribute="leading" secondItem="Zca-vq-hGg" secondAttribute="leading" constant="20" id="vr3-Lm-VVG"/>
</constraints>
</view>
<navigationItem key="navigationItem" id="xJU-Bg-9zf"/>
<tabBarItem key="tabBarItem" title="Item" id="i5b-gJ-ddb"/>
<navigationItem key="navigationItem" title="Test" id="xJU-Bg-9zf"/>
<connections>
<outlet property="button" destination="ru4-FV-kfb" id="258-QB-H5U"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="asx-GK-5vI" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="805.79710144927537" y="79.6875"/>
<point key="canvasLocation" x="855" y="80"/>
</scene>
</scenes>
<resources>
<image name="Logo" width="674" height="682"/>
<image name="pexels-michael-block-3225517" width="1554.6666259765625" height="1943.3333740234375"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
29 changes: 25 additions & 4 deletions Example/Example/ImageViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,42 @@
import UIKit
import Gleap

class ImageViewController: UIViewController {
class ImageViewController: UIViewController, UINavigationControllerDelegate, UITabBarControllerDelegate {
@IBOutlet weak var button: UIButton!

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return .portrait
}

override var shouldAutorotate: Bool {
return true
}

func tabBarControllerSupportedInterfaceOrientations(_ tabBarController: UITabBarController) -> UIInterfaceOrientationMask {
return .portrait
}

func navigationControllerSupportedInterfaceOrientations(_ navigationController: UINavigationController) -> UIInterfaceOrientationMask {
return .portrait
}

override func viewDidLoad() {
super.viewDidLoad()

self.navigationController?.delegate = self
self.tabBarController?.delegate = self

// Do any additional setup after loading the view.

self.button.layer.cornerRadius = 25

Gleap.showFeedbackButton(false)

NSLog("Test log :)")

Gleap.openNews()
if #available(iOS 16.0, *) {
self.setNeedsUpdateOfSupportedInterfaceOrientations()
} else {
// Fallback on earlier versions
}
}

@IBAction func buttonClicked(_ sender: Any) {
Expand Down
2 changes: 1 addition & 1 deletion Gleap.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "Gleap"
s.version = "8.1.0"
s.version = "8.2.0"
s.summary = "In-App Bug Reporting and Testing for Apps. Learn more at https://gleap.io"
s.homepage = "https://gleap.io"
s.license = { :type => 'Commercial', :file => 'LICENSE.md' }
Expand Down
4 changes: 2 additions & 2 deletions Sources/ObjCSources/GleapFeedbackButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ - (void)applyConfig {
}

self.layer.cornerRadius = self.frame.size.height / 2.0;
self.layer.shadowRadius = 10.0;
self.layer.shadowRadius = 6.0;
self.layer.shadowColor = [UIColor blackColor].CGColor;
self.layer.shadowOffset = CGSizeMake(0.0f, 0.0f);
self.layer.shadowOpacity = 0.3;
self.layer.shadowOpacity = 0.2;
self.layer.masksToBounds = NO;
self.clipsToBounds = NO;

Expand Down
Loading

0 comments on commit 0f37605

Please sign in to comment.