diff --git a/ios/RNReactNativeReplaykit.h b/ios/RNReactNativeReplaykit.h index 1a1765e..9668661 100644 --- a/ios/RNReactNativeReplaykit.h +++ b/ios/RNReactNativeReplaykit.h @@ -1,3 +1,5 @@ +// Created by Matt Thompson on 9/14/18. +// MIT Licence. #if __has_include("RCTBridgeModule.h") #import "RCTBridgeModule.h" diff --git a/ios/RNReactNativeReplaykit.m b/ios/RNReactNativeReplaykit.m index c894e11..da82f6a 100644 --- a/ios/RNReactNativeReplaykit.m +++ b/ios/RNReactNativeReplaykit.m @@ -1,7 +1,8 @@ +// Created by Matt Thompson on 9/14/18. +// MIT Licence. #import "RNReactNativeReplaykit.h" #import -//#import #import "RNReactNativeReplaykit-Swift.h" diff --git a/ios/ScreenRecord/FileUtil.swift b/ios/ScreenRecord/FileUtil.swift index d97e6ba..6ba47a3 100644 --- a/ios/ScreenRecord/FileUtil.swift +++ b/ios/ScreenRecord/FileUtil.swift @@ -1,11 +1,7 @@ -// -// FileManager.swift -// BugReporterTest -// // Created by Giridhar on 20/06/17. -// Copyright © 2017 Giridhar. All rights reserved. +// MIT Licence. // Modified By: [ -// Matt Thompson 9/2018 +// Matt Thompson 9/14/18 //] diff --git a/ios/ScreenRecord/ScreenRecordCoordinator.swift b/ios/ScreenRecord/ScreenRecordCoordinator.swift index 35b7cec..ba97e5e 100644 --- a/ios/ScreenRecord/ScreenRecordCoordinator.swift +++ b/ios/ScreenRecord/ScreenRecordCoordinator.swift @@ -1,11 +1,7 @@ -// -// ScreenRecordCoordinator.swift -// BugReporterTest -// // Created by Giridhar on 21/06/17. -// Copyright © 2017 Giridhar. All rights reserved. +// MIT Licence. // Modified By: [ -// Matt Thompson 9/2018 +// Matt Thompson 9/14/18 //] import Foundation @@ -115,29 +111,3 @@ extension UIApplication { return base } } - - -//extension FileManager { -// func replaceWithCopyOfFile(at:URL, with:URL) { -// do { -// let url = try self.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: with.deletingPathExtension(), create: true) -// try self.copyItem(at: with, to: url.appendingPathComponent(with.lastPathComponent)) -// -// let alert = NSAlert() -// alert.messageText = "Replace \"\(at.lastPathComponent)\" in \"\(at.pathComponents[at.pathComponents.count - 2])\" with new file?" -// alert.addButton(withTitle: "OK") -// alert.addButton(withTitle: "Cancel") -// -// if alert.runModal() == NSAlertFirstButtonReturn { -// _ = try FileManager.default.replaceItemAt(at, withItemAt: url.appendingPathComponent(with.lastPathComponent)) -// } -// -// // removes whole temporary directory as a clean up -// try self.removeItem(at: url) -// } -// catch { -// // error -// print("unknown error") -// } -// } -//} diff --git a/ios/ScreenRecord/ScreenRecorder.swift b/ios/ScreenRecord/ScreenRecorder.swift index 36bf427..a7c2fac 100644 --- a/ios/ScreenRecord/ScreenRecorder.swift +++ b/ios/ScreenRecord/ScreenRecorder.swift @@ -1,11 +1,7 @@ -// -// ScreenRecorder.swift -// BugReporterTest -// // Created by Giridhar on 09/06/17. -// Copyright © 2017 Giridhar. All rights reserved. +// MIT Licence. // Modified By: [ -// Matt Thompson 9/2018 +// Matt Thompson 9/14/18 //] import Foundation diff --git a/ios/ScreenRecord/WindowUtil.swift b/ios/ScreenRecord/WindowUtil.swift index 4047d5f..ec936db 100644 --- a/ios/ScreenRecord/WindowUtil.swift +++ b/ios/ScreenRecord/WindowUtil.swift @@ -1,11 +1,7 @@ -// -// WindowUtil.swift -// BugReporterTest -// // Created by Giridhar on 21/06/17. -// Copyright © 2017 Giridhar. All rights reserved. +// MIT Licence. // Modified By: [ -// Matt Thompson 9/2018 +// Matt Thompson 9/14/18 //] import Foundation @@ -78,6 +74,7 @@ class WindowUtil: Overlayable func show() { DispatchQueue.main.async { + self.stopButton.isHidden = false self.stopButton.transform = CGAffineTransform(translationX: 0, y: -30) self.stopButton.backgroundColor = self.stopButtonColor self.overlayWindow.makeKeyAndVisible() diff --git a/package.json b/package.json index be846e2..1d8746a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-replaykit", - "version": "1.0.5", + "version": "1.0.6", "description": "A React Native module to access ReplayKit Screen Recording Framework on iOS", "main": "index.js", "license" : "MIT",