├── .gitignore ├── Find for Kindle.xcodeproj ├── project.pbxproj └── project.xcworkspace │ └── contents.xcworkspacedata ├── Find for Kindle └── Images.xcassets │ ├── ActionIcon.appiconset │ ├── Contents.json │ ├── Icon-40.png │ ├── Icon-40@2x.png │ ├── Icon-40@3x.png │ ├── Icon-60@2x.png │ ├── Icon-60@3x.png │ ├── Icon-76.png │ ├── Icon-76@2x.png │ ├── Icon-83.5@2x.png │ ├── Icon-Small.png │ ├── Icon-Small@2x.png │ └── Icon-Small@3x.png │ └── Contents.json ├── LICENSE ├── README.md ├── fishfor ├── AppDelegate.swift ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── Icon-40.png │ │ ├── Icon-40@2x.png │ │ ├── Icon-40@3x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-76.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-83.5@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small@2x.png │ │ └── Icon-Small@3x.png │ ├── Brand Assets.launchimage │ │ └── Contents.json │ ├── Contents.json │ ├── arrow.imageset │ │ ├── Contents.json │ │ └── arrow.png │ ├── donebg.imageset │ │ ├── Contents.json │ │ └── donebg.png │ └── storeHeader.imageset │ │ ├── Artboard.png │ │ └── Contents.json ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── Info.plist └── ViewController.swift ├── here ├── ActionViewController.swift ├── Base.lproj │ └── MainInterface.storyboard └── Info.plist └── ux ├── Adobe After Effects Auto-Save ├── demo-compare auto-save 1.aep └── demo-compare auto-save 2.aep ├── demo-compare.aep ├── demo-compare.aep Logs └── AE 6-19-16 6-32-55 PM PDT.txt ├── demo-compare.mov.gif ├── demo-extension00.png ├── demo-extension01.png ├── demo01.mov.gif ├── demo02.mov.gif └── demo03-extension.mov /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /Find for Kindle.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C84485081D16140E00C5BA8E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C84485071D16140E00C5BA8E /* AppDelegate.swift */; }; 11 | C844850A1D16140E00C5BA8E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C84485091D16140E00C5BA8E /* ViewController.swift */; }; 12 | C844850D1D16140E00C5BA8E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C844850B1D16140E00C5BA8E /* Main.storyboard */; }; 13 | C844850F1D16140E00C5BA8E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C844850E1D16140E00C5BA8E /* Assets.xcassets */; }; 14 | C84485121D16140E00C5BA8E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C84485101D16140E00C5BA8E /* LaunchScreen.storyboard */; }; 15 | C84485201D16144F00C5BA8E /* ActionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C844851F1D16144F00C5BA8E /* ActionViewController.swift */; }; 16 | C84485231D16144F00C5BA8E /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C84485211D16144F00C5BA8E /* MainInterface.storyboard */; }; 17 | C84485271D16144F00C5BA8E /* Find for Kindle.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = C844851D1D16144F00C5BA8E /* Find for Kindle.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 18 | C844852D1D163AF300C5BA8E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C844852C1D163AF300C5BA8E /* Images.xcassets */; }; 19 | C84485301D163D2500C5BA8E /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C844852C1D163AF300C5BA8E /* Images.xcassets */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | C84485251D16144F00C5BA8E /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = C84484FC1D16140E00C5BA8E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = C844851C1D16144F00C5BA8E; 28 | remoteInfo = here; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXCopyFilesBuildPhase section */ 33 | C844852B1D16144F00C5BA8E /* Embed App Extensions */ = { 34 | isa = PBXCopyFilesBuildPhase; 35 | buildActionMask = 2147483647; 36 | dstPath = ""; 37 | dstSubfolderSpec = 13; 38 | files = ( 39 | C84485271D16144F00C5BA8E /* Find for Kindle.appex in Embed App Extensions */, 40 | ); 41 | name = "Embed App Extensions"; 42 | runOnlyForDeploymentPostprocessing = 0; 43 | }; 44 | /* End PBXCopyFilesBuildPhase section */ 45 | 46 | /* Begin PBXFileReference section */ 47 | C84485041D16140E00C5BA8E /* Find for Kindle .app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Find for Kindle .app"; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | C84485071D16140E00C5BA8E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 49 | C84485091D16140E00C5BA8E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 50 | C844850C1D16140E00C5BA8E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 51 | C844850E1D16140E00C5BA8E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 52 | C84485111D16140E00C5BA8E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 53 | C84485131D16140E00C5BA8E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | C844851D1D16144F00C5BA8E /* Find for Kindle.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Find for Kindle.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | C844851F1D16144F00C5BA8E /* ActionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionViewController.swift; sourceTree = ""; }; 56 | C84485221D16144F00C5BA8E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; 57 | C84485241D16144F00C5BA8E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | C844852C1D163AF300C5BA8E /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = "Find for Kindle/Images.xcassets"; sourceTree = SOURCE_ROOT; }; 59 | C844855C1D190CF800C5BA8E /* IndexRequestHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = IndexRequestHandler.swift; sourceTree = ""; }; 60 | C844855E1D190CF800C5BA8E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 61 | /* End PBXFileReference section */ 62 | 63 | /* Begin PBXFrameworksBuildPhase section */ 64 | C84485011D16140E00C5BA8E /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | ); 69 | runOnlyForDeploymentPostprocessing = 0; 70 | }; 71 | C844851A1D16144F00C5BA8E /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | ); 76 | runOnlyForDeploymentPostprocessing = 0; 77 | }; 78 | /* End PBXFrameworksBuildPhase section */ 79 | 80 | /* Begin PBXGroup section */ 81 | C84484FB1D16140E00C5BA8E = { 82 | isa = PBXGroup; 83 | children = ( 84 | C84485061D16140E00C5BA8E /* Find for Kindle */, 85 | C844851E1D16144F00C5BA8E /* Find for Kindle */, 86 | C844855B1D190CF800C5BA8E /* SpotlightExtension */, 87 | C84485051D16140E00C5BA8E /* Products */, 88 | ); 89 | sourceTree = ""; 90 | }; 91 | C84485051D16140E00C5BA8E /* Products */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | C84485041D16140E00C5BA8E /* Find for Kindle .app */, 95 | C844851D1D16144F00C5BA8E /* Find for Kindle.appex */, 96 | ); 97 | name = Products; 98 | sourceTree = ""; 99 | }; 100 | C84485061D16140E00C5BA8E /* Find for Kindle */ = { 101 | isa = PBXGroup; 102 | children = ( 103 | C84485071D16140E00C5BA8E /* AppDelegate.swift */, 104 | C84485091D16140E00C5BA8E /* ViewController.swift */, 105 | C844850B1D16140E00C5BA8E /* Main.storyboard */, 106 | C844850E1D16140E00C5BA8E /* Assets.xcassets */, 107 | C84485101D16140E00C5BA8E /* LaunchScreen.storyboard */, 108 | C84485131D16140E00C5BA8E /* Info.plist */, 109 | ); 110 | name = "Find for Kindle"; 111 | path = fishfor; 112 | sourceTree = ""; 113 | }; 114 | C844851E1D16144F00C5BA8E /* Find for Kindle */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | C844851F1D16144F00C5BA8E /* ActionViewController.swift */, 118 | C84485211D16144F00C5BA8E /* MainInterface.storyboard */, 119 | C84485241D16144F00C5BA8E /* Info.plist */, 120 | C844852C1D163AF300C5BA8E /* Images.xcassets */, 121 | ); 122 | name = "Find for Kindle"; 123 | path = here; 124 | sourceTree = ""; 125 | }; 126 | C844855B1D190CF800C5BA8E /* SpotlightExtension */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | C844855C1D190CF800C5BA8E /* IndexRequestHandler.swift */, 130 | C844855E1D190CF800C5BA8E /* Info.plist */, 131 | ); 132 | path = SpotlightExtension; 133 | sourceTree = ""; 134 | }; 135 | /* End PBXGroup section */ 136 | 137 | /* Begin PBXNativeTarget section */ 138 | C84485031D16140E00C5BA8E /* Find for Kindle */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = C84485161D16140E00C5BA8E /* Build configuration list for PBXNativeTarget "Find for Kindle " */; 141 | buildPhases = ( 142 | C84485001D16140E00C5BA8E /* Sources */, 143 | C84485011D16140E00C5BA8E /* Frameworks */, 144 | C84485021D16140E00C5BA8E /* Resources */, 145 | C844852B1D16144F00C5BA8E /* Embed App Extensions */, 146 | ); 147 | buildRules = ( 148 | ); 149 | dependencies = ( 150 | C84485261D16144F00C5BA8E /* PBXTargetDependency */, 151 | ); 152 | name = "Find for Kindle "; 153 | productName = fishfor; 154 | productReference = C84485041D16140E00C5BA8E /* Find for Kindle .app */; 155 | productType = "com.apple.product-type.application"; 156 | }; 157 | C844851C1D16144F00C5BA8E /* Find for Kindle */ = { 158 | isa = PBXNativeTarget; 159 | buildConfigurationList = C84485281D16144F00C5BA8E /* Build configuration list for PBXNativeTarget "Find for Kindle" */; 160 | buildPhases = ( 161 | C84485191D16144F00C5BA8E /* Sources */, 162 | C844851A1D16144F00C5BA8E /* Frameworks */, 163 | C844851B1D16144F00C5BA8E /* Resources */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | ); 169 | name = "Find for Kindle"; 170 | productName = here; 171 | productReference = C844851D1D16144F00C5BA8E /* Find for Kindle.appex */; 172 | productType = "com.apple.product-type.app-extension"; 173 | }; 174 | /* End PBXNativeTarget section */ 175 | 176 | /* Begin PBXProject section */ 177 | C84484FC1D16140E00C5BA8E /* Project object */ = { 178 | isa = PBXProject; 179 | attributes = { 180 | LastSwiftUpdateCheck = 0730; 181 | LastUpgradeCheck = 0730; 182 | ORGANIZATIONNAME = "Morten Just Petersen"; 183 | TargetAttributes = { 184 | C84485031D16140E00C5BA8E = { 185 | CreatedOnToolsVersion = 7.3.1; 186 | }; 187 | C844851C1D16144F00C5BA8E = { 188 | CreatedOnToolsVersion = 7.3.1; 189 | }; 190 | }; 191 | }; 192 | buildConfigurationList = C84484FF1D16140E00C5BA8E /* Build configuration list for PBXProject "Find for Kindle" */; 193 | compatibilityVersion = "Xcode 3.2"; 194 | developmentRegion = English; 195 | hasScannedForEncodings = 0; 196 | knownRegions = ( 197 | en, 198 | Base, 199 | ); 200 | mainGroup = C84484FB1D16140E00C5BA8E; 201 | productRefGroup = C84485051D16140E00C5BA8E /* Products */; 202 | projectDirPath = ""; 203 | projectRoot = ""; 204 | targets = ( 205 | C84485031D16140E00C5BA8E /* Find for Kindle */, 206 | C844851C1D16144F00C5BA8E /* Find for Kindle */, 207 | ); 208 | }; 209 | /* End PBXProject section */ 210 | 211 | /* Begin PBXResourcesBuildPhase section */ 212 | C84485021D16140E00C5BA8E /* Resources */ = { 213 | isa = PBXResourcesBuildPhase; 214 | buildActionMask = 2147483647; 215 | files = ( 216 | C84485121D16140E00C5BA8E /* LaunchScreen.storyboard in Resources */, 217 | C84485301D163D2500C5BA8E /* Images.xcassets in Resources */, 218 | C844850F1D16140E00C5BA8E /* Assets.xcassets in Resources */, 219 | C844850D1D16140E00C5BA8E /* Main.storyboard in Resources */, 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | }; 223 | C844851B1D16144F00C5BA8E /* Resources */ = { 224 | isa = PBXResourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | C84485231D16144F00C5BA8E /* MainInterface.storyboard in Resources */, 228 | C844852D1D163AF300C5BA8E /* Images.xcassets in Resources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXResourcesBuildPhase section */ 233 | 234 | /* Begin PBXSourcesBuildPhase section */ 235 | C84485001D16140E00C5BA8E /* Sources */ = { 236 | isa = PBXSourcesBuildPhase; 237 | buildActionMask = 2147483647; 238 | files = ( 239 | C844850A1D16140E00C5BA8E /* ViewController.swift in Sources */, 240 | C84485081D16140E00C5BA8E /* AppDelegate.swift in Sources */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | C84485191D16144F00C5BA8E /* Sources */ = { 245 | isa = PBXSourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | C84485201D16144F00C5BA8E /* ActionViewController.swift in Sources */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | /* End PBXSourcesBuildPhase section */ 253 | 254 | /* Begin PBXTargetDependency section */ 255 | C84485261D16144F00C5BA8E /* PBXTargetDependency */ = { 256 | isa = PBXTargetDependency; 257 | target = C844851C1D16144F00C5BA8E /* Find for Kindle */; 258 | targetProxy = C84485251D16144F00C5BA8E /* PBXContainerItemProxy */; 259 | }; 260 | /* End PBXTargetDependency section */ 261 | 262 | /* Begin PBXVariantGroup section */ 263 | C844850B1D16140E00C5BA8E /* Main.storyboard */ = { 264 | isa = PBXVariantGroup; 265 | children = ( 266 | C844850C1D16140E00C5BA8E /* Base */, 267 | ); 268 | name = Main.storyboard; 269 | sourceTree = ""; 270 | }; 271 | C84485101D16140E00C5BA8E /* LaunchScreen.storyboard */ = { 272 | isa = PBXVariantGroup; 273 | children = ( 274 | C84485111D16140E00C5BA8E /* Base */, 275 | ); 276 | name = LaunchScreen.storyboard; 277 | sourceTree = ""; 278 | }; 279 | C84485211D16144F00C5BA8E /* MainInterface.storyboard */ = { 280 | isa = PBXVariantGroup; 281 | children = ( 282 | C84485221D16144F00C5BA8E /* Base */, 283 | ); 284 | name = MainInterface.storyboard; 285 | sourceTree = ""; 286 | }; 287 | /* End PBXVariantGroup section */ 288 | 289 | /* Begin XCBuildConfiguration section */ 290 | C84485141D16140E00C5BA8E /* Debug */ = { 291 | isa = XCBuildConfiguration; 292 | buildSettings = { 293 | ALWAYS_SEARCH_USER_PATHS = NO; 294 | CLANG_ANALYZER_NONNULL = YES; 295 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 296 | CLANG_CXX_LIBRARY = "libc++"; 297 | CLANG_ENABLE_MODULES = YES; 298 | CLANG_ENABLE_OBJC_ARC = YES; 299 | CLANG_WARN_BOOL_CONVERSION = YES; 300 | CLANG_WARN_CONSTANT_CONVERSION = YES; 301 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 302 | CLANG_WARN_EMPTY_BODY = YES; 303 | CLANG_WARN_ENUM_CONVERSION = YES; 304 | CLANG_WARN_INT_CONVERSION = YES; 305 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 306 | CLANG_WARN_UNREACHABLE_CODE = YES; 307 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 308 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 309 | COPY_PHASE_STRIP = NO; 310 | DEBUG_INFORMATION_FORMAT = dwarf; 311 | ENABLE_STRICT_OBJC_MSGSEND = YES; 312 | ENABLE_TESTABILITY = YES; 313 | GCC_C_LANGUAGE_STANDARD = gnu99; 314 | GCC_DYNAMIC_NO_PIC = NO; 315 | GCC_NO_COMMON_BLOCKS = YES; 316 | GCC_OPTIMIZATION_LEVEL = 0; 317 | GCC_PREPROCESSOR_DEFINITIONS = ( 318 | "DEBUG=1", 319 | "$(inherited)", 320 | ); 321 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 322 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 323 | GCC_WARN_UNDECLARED_SELECTOR = YES; 324 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 325 | GCC_WARN_UNUSED_FUNCTION = YES; 326 | GCC_WARN_UNUSED_VARIABLE = YES; 327 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 328 | MTL_ENABLE_DEBUG_INFO = YES; 329 | ONLY_ACTIVE_ARCH = YES; 330 | SDKROOT = iphoneos; 331 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 332 | TARGETED_DEVICE_FAMILY = "1,2"; 333 | }; 334 | name = Debug; 335 | }; 336 | C84485151D16140E00C5BA8E /* Release */ = { 337 | isa = XCBuildConfiguration; 338 | buildSettings = { 339 | ALWAYS_SEARCH_USER_PATHS = NO; 340 | CLANG_ANALYZER_NONNULL = YES; 341 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 342 | CLANG_CXX_LIBRARY = "libc++"; 343 | CLANG_ENABLE_MODULES = YES; 344 | CLANG_ENABLE_OBJC_ARC = YES; 345 | CLANG_WARN_BOOL_CONVERSION = YES; 346 | CLANG_WARN_CONSTANT_CONVERSION = YES; 347 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 348 | CLANG_WARN_EMPTY_BODY = YES; 349 | CLANG_WARN_ENUM_CONVERSION = YES; 350 | CLANG_WARN_INT_CONVERSION = YES; 351 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 352 | CLANG_WARN_UNREACHABLE_CODE = YES; 353 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 354 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 355 | COPY_PHASE_STRIP = NO; 356 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 357 | ENABLE_NS_ASSERTIONS = NO; 358 | ENABLE_STRICT_OBJC_MSGSEND = YES; 359 | GCC_C_LANGUAGE_STANDARD = gnu99; 360 | GCC_NO_COMMON_BLOCKS = YES; 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 368 | MTL_ENABLE_DEBUG_INFO = NO; 369 | SDKROOT = iphoneos; 370 | TARGETED_DEVICE_FAMILY = "1,2"; 371 | VALIDATE_PRODUCT = YES; 372 | }; 373 | name = Release; 374 | }; 375 | C84485171D16140E00C5BA8E /* Debug */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 379 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 380 | INFOPLIST_FILE = fishfor/Info.plist; 381 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 382 | PRODUCT_BUNDLE_IDENTIFIER = "com.mortenjust.find-for-kindle"; 383 | PRODUCT_NAME = "$(TARGET_NAME)"; 384 | }; 385 | name = Debug; 386 | }; 387 | C84485181D16140E00C5BA8E /* Release */ = { 388 | isa = XCBuildConfiguration; 389 | buildSettings = { 390 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 391 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES; 392 | INFOPLIST_FILE = fishfor/Info.plist; 393 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 394 | PRODUCT_BUNDLE_IDENTIFIER = "com.mortenjust.find-for-kindle"; 395 | PRODUCT_NAME = "$(TARGET_NAME)"; 396 | }; 397 | name = Release; 398 | }; 399 | C84485291D16144F00C5BA8E /* Debug */ = { 400 | isa = XCBuildConfiguration; 401 | buildSettings = { 402 | ASSETCATALOG_COMPILER_APPICON_NAME = ActionIcon; 403 | CODE_SIGN_IDENTITY = "iPhone Developer"; 404 | INFOPLIST_FILE = here/Info.plist; 405 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 406 | PRODUCT_BUNDLE_IDENTIFIER = "com.mortenjust.find-for-kindle.here"; 407 | PRODUCT_NAME = "$(TARGET_NAME)"; 408 | SKIP_INSTALL = YES; 409 | }; 410 | name = Debug; 411 | }; 412 | C844852A1D16144F00C5BA8E /* Release */ = { 413 | isa = XCBuildConfiguration; 414 | buildSettings = { 415 | ASSETCATALOG_COMPILER_APPICON_NAME = ActionIcon; 416 | CODE_SIGN_IDENTITY = "iPhone Developer"; 417 | INFOPLIST_FILE = here/Info.plist; 418 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; 419 | PRODUCT_BUNDLE_IDENTIFIER = "com.mortenjust.find-for-kindle.here"; 420 | PRODUCT_NAME = "$(TARGET_NAME)"; 421 | SKIP_INSTALL = YES; 422 | }; 423 | name = Release; 424 | }; 425 | /* End XCBuildConfiguration section */ 426 | 427 | /* Begin XCConfigurationList section */ 428 | C84484FF1D16140E00C5BA8E /* Build configuration list for PBXProject "Find for Kindle" */ = { 429 | isa = XCConfigurationList; 430 | buildConfigurations = ( 431 | C84485141D16140E00C5BA8E /* Debug */, 432 | C84485151D16140E00C5BA8E /* Release */, 433 | ); 434 | defaultConfigurationIsVisible = 0; 435 | defaultConfigurationName = Release; 436 | }; 437 | C84485161D16140E00C5BA8E /* Build configuration list for PBXNativeTarget "Find for Kindle " */ = { 438 | isa = XCConfigurationList; 439 | buildConfigurations = ( 440 | C84485171D16140E00C5BA8E /* Debug */, 441 | C84485181D16140E00C5BA8E /* Release */, 442 | ); 443 | defaultConfigurationIsVisible = 0; 444 | defaultConfigurationName = Release; 445 | }; 446 | C84485281D16144F00C5BA8E /* Build configuration list for PBXNativeTarget "Find for Kindle" */ = { 447 | isa = XCConfigurationList; 448 | buildConfigurations = ( 449 | C84485291D16144F00C5BA8E /* Debug */, 450 | C844852A1D16144F00C5BA8E /* Release */, 451 | ); 452 | defaultConfigurationIsVisible = 0; 453 | defaultConfigurationName = Release; 454 | }; 455 | /* End XCConfigurationList section */ 456 | }; 457 | rootObject = C84484FC1D16140E00C5BA8E /* Project object */; 458 | } 459 | -------------------------------------------------------------------------------- /Find for Kindle.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-Small@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-Small@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "40x40", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-40@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-40@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "60x60", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-60@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-60@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "29x29", 41 | "idiom" : "ipad", 42 | "filename" : "Icon-Small.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "Icon-Small@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "40x40", 53 | "idiom" : "ipad", 54 | "filename" : "Icon-40.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-40@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "76x76", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-76.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-76@2x.png", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "83.5x83.5", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-83.5@2x.png", 79 | "scale" : "2x" 80 | } 81 | ], 82 | "info" : { 83 | "version" : 1, 84 | "author" : "xcode" 85 | } 86 | } -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/Find for Kindle/Images.xcassets/ActionIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /Find for Kindle/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Morten Just 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Find for Kindle 2 | 3 | A faster way to find and get a book for Kindle. Instead of copying the books title, opening a new browser tab, opening amazon.com, pasting the title, searching, tapping the title, changing to Kindle, this app lets you find a book by simply selecting a book's title and clicking Share 4 | 5 | # With Find for Kindle and without 6 | 7 | 8 | 9 | # How to use it 10 | 11 | ## 1. Select text and click share 12 | 13 | 14 | ## 2. Tap "Find for Kindle" 15 | 16 | 17 | Also adds a native Kindle Store app so you don't have to mess around with the browser to buy a book. 18 | -------------------------------------------------------------------------------- /fishfor/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // fishfor 4 | // 5 | // Created by Morten Just Petersen on 6/18/16. 6 | // Copyright © 2016 Morten Just Petersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-Small@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-Small@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "40x40", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-40@2x.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-40@3x.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "60x60", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-60@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-60@3x.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "29x29", 41 | "idiom" : "ipad", 42 | "filename" : "Icon-Small.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "29x29", 47 | "idiom" : "ipad", 48 | "filename" : "Icon-Small@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "40x40", 53 | "idiom" : "ipad", 54 | "filename" : "Icon-40.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "40x40", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-40@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "76x76", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-76.png", 67 | "scale" : "1x" 68 | }, 69 | { 70 | "size" : "76x76", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-76@2x.png", 73 | "scale" : "2x" 74 | }, 75 | { 76 | "size" : "83.5x83.5", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-83.5@2x.png", 79 | "scale" : "2x" 80 | } 81 | ], 82 | "info" : { 83 | "version" : 1, 84 | "author" : "xcode" 85 | } 86 | } -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/Brand Assets.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "ipad", 6 | "minimum-system-version" : "7.0", 7 | "extent" : "full-screen", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "landscape", 12 | "idiom" : "ipad", 13 | "minimum-system-version" : "7.0", 14 | "extent" : "full-screen", 15 | "scale" : "1x" 16 | }, 17 | { 18 | "orientation" : "landscape", 19 | "idiom" : "ipad", 20 | "minimum-system-version" : "7.0", 21 | "extent" : "full-screen", 22 | "scale" : "2x" 23 | }, 24 | { 25 | "orientation" : "portrait", 26 | "idiom" : "iphone", 27 | "minimum-system-version" : "7.0", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "minimum-system-version" : "7.0", 34 | "subtype" : "retina4", 35 | "scale" : "2x" 36 | }, 37 | { 38 | "orientation" : "portrait", 39 | "idiom" : "ipad", 40 | "minimum-system-version" : "7.0", 41 | "extent" : "full-screen", 42 | "scale" : "1x" 43 | } 44 | ], 45 | "info" : { 46 | "version" : 1, 47 | "author" : "xcode" 48 | } 49 | } -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/arrow.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "arrow.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/arrow.imageset/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/arrow.imageset/arrow.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/donebg.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "donebg.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/donebg.imageset/donebg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/donebg.imageset/donebg.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/storeHeader.imageset/Artboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/fishfor/Assets.xcassets/storeHeader.imageset/Artboard.png -------------------------------------------------------------------------------- /fishfor/Assets.xcassets/storeHeader.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Artboard.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /fishfor/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /fishfor/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /fishfor/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Application 6 | 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UIStatusBarHidden 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UISupportedInterfaceOrientations~ipad 44 | 45 | UIInterfaceOrientationPortrait 46 | UIInterfaceOrientationPortraitUpsideDown 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /fishfor/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // fishfor 4 | // 5 | // Created by Morten Just Petersen on 6/18/16. 6 | // Copyright © 2016 Morten Just Petersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import WebKit 11 | 12 | class ViewController: UIViewController, WKNavigationDelegate { 13 | 14 | var webView: WKWebView! 15 | var blockerView: UIView! 16 | 17 | @IBOutlet weak var containerView: UIView! 18 | 19 | override func preferredStatusBarStyle() -> UIStatusBarStyle { 20 | return UIStatusBarStyle.LightContent; 21 | } 22 | override func prefersStatusBarHidden() -> Bool { 23 | return true 24 | } 25 | 26 | func webView(webView: WKWebView, didFinishNavigation navigation: WKNavigation!) { 27 | print("are you loaded NOW?") 28 | let js = "$('input#nav-search-keywords.nav-input').focus()" 29 | 30 | 31 | // let's hide the blue view 32 | UIView.animateWithDuration(0.9, delay: 0, options: .CurveEaseInOut, animations: { 33 | self.blockerView.alpha = 0 34 | }) { (done) in 35 | // done 36 | } 37 | 38 | 39 | webView.evaluateJavaScript(js) { (obj, error) in 40 | print("injected dat scriptz") 41 | } 42 | } 43 | 44 | override func viewDidLoad() { 45 | super.viewDidLoad() 46 | 47 | webView = WKWebView(frame: view.bounds) 48 | 49 | webView.navigationDelegate = self 50 | view.addSubview(webView) 51 | 52 | blockerView = UIView(frame: view.frame) 53 | blockerView.backgroundColor = UIColor(red:0.135, green:0.183, blue:0.246, alpha:1) 54 | blockerView.userInteractionEnabled = false 55 | 56 | webView.addSubview(blockerView) 57 | 58 | 59 | webView.allowsBackForwardNavigationGestures = true 60 | webView.allowsLinkPreview = true 61 | 62 | view.backgroundColor = UIColor(red:0.135, green:0.183, blue:0.246, alpha:1) 63 | // Do any additional setup after loading the view, typically from a nib. 64 | 65 | let initialUrl = "https://www.amazon.com/b/ref=aw_lnk_sm_kbk/182-6354739-5340946?_encoding=UTF8&aid=aw_palldept&apid=2468829862&arc=1201&arid=MJHM0K1GARYMXF5EJJJR&asn=center-4&node=154606011&rh=i" 66 | let req = NSURLRequest(URL: NSURL(string: initialUrl)!) 67 | webView.loadRequest(req) 68 | 69 | webView.bringSubviewToFront(blockerView) 70 | } 71 | 72 | override func didReceiveMemoryWarning() { 73 | super.didReceiveMemoryWarning() 74 | // Dispose of any resources that can be recreated. 75 | } 76 | 77 | 78 | } 79 | 80 | -------------------------------------------------------------------------------- /here/ActionViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ActionViewController.swift 3 | // here 4 | // 5 | // Created by Morten Just Petersen on 6/18/16. 6 | // Copyright © 2016 Morten Just Petersen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import MobileCoreServices 11 | 12 | class ActionViewController: UIViewController, UIScrollViewDelegate { 13 | 14 | @IBOutlet weak var imageView: UIImageView! 15 | @IBOutlet weak var webView: UIWebView! 16 | // @IBOutlet weak var topBar: UINavigationBar! 17 | 18 | 19 | 20 | @IBOutlet weak var doneButton: UIButton! 21 | 22 | override func preferredStatusBarStyle() -> UIStatusBarStyle { 23 | return .LightContent 24 | } 25 | 26 | override func prefersStatusBarHidden() -> Bool { 27 | return true 28 | } 29 | 30 | @IBAction func doneButtonPressed(sender: AnyObject) { 31 | print("We just pressed the button") 32 | extensionContext?.completeRequestReturningItems(nil, completionHandler: nil) 33 | } 34 | 35 | override func preferredStatusBarUpdateAnimation() -> UIStatusBarAnimation { 36 | return .Slide 37 | } 38 | 39 | func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool) { 40 | let draggedTo = scrollView.contentOffset.y 41 | if draggedTo < -140 { 42 | self.done() 43 | print("DONE") 44 | } 45 | 46 | // print("did end dragging at "+String(scrollView.contentOffset.y)) 47 | 48 | } 49 | 50 | override func viewDidLoad() { 51 | super.viewDidLoad() 52 | doneButton.hidden = true // overscroll may be enough for now 53 | webView.scrollView.delegate = self 54 | 55 | view.backgroundColor = UIColor(red:0.135, green:0.183, blue:0.246, alpha:1) 56 | navigationController?.navigationBar.barStyle = .Black 57 | 58 | for item: AnyObject in self.extensionContext!.inputItems { 59 | let inputItem = item as! NSExtensionItem 60 | for provider: AnyObject in inputItem.attachments! { 61 | let itemProvider = provider as! NSItemProvider 62 | if itemProvider.hasItemConformingToTypeIdentifier(kUTTypeText as String) { 63 | // this is text 64 | itemProvider.loadItemForTypeIdentifier(kUTTypeText as String, options: nil, completionHandler: { (text, error) in 65 | 66 | if let searchString = text { 67 | print("let's do something about \(searchString)") 68 | self.loadPage(self.webView, query: searchString as! String) 69 | 70 | // load the web view 71 | } else { 72 | print("we don't know what to do ") 73 | } 74 | }) 75 | } 76 | } 77 | 78 | // let's only do something about the last item (would there ever be several?) 79 | 80 | } 81 | } 82 | 83 | func loadPage(webView:UIWebView, query:String){ 84 | let escapedQuery = query 85 | .stringByAddingPercentEncodingWithAllowedCharacters( 86 | NSCharacterSet.URLHostAllowedCharacterSet())! 87 | let urlString = "https://www.amazon.com/gp/aw/s/ref=is_s?n=154606011&n=154606011&k=\(escapedQuery)" 88 | let req = NSURLRequest(URL: NSURL(string: urlString)!) 89 | webView.loadRequest(req) 90 | } 91 | 92 | override func didReceiveMemoryWarning() { 93 | super.didReceiveMemoryWarning() 94 | // Dispose of any resources that can be recreated. 95 | } 96 | 97 | @IBAction func done() { 98 | // Return any edited content to the host app. 99 | // This template doesn't do anything, so we just echo the passed in items. 100 | self.extensionContext!.completeRequestReturningItems(self.extensionContext!.inputItems, completionHandler: nil) 101 | } 102 | 103 | } 104 | -------------------------------------------------------------------------------- /here/Base.lproj/MainInterface.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /here/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Find for Kindle 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIcons 12 | 13 | CFBundleIcons~ipad 14 | 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | $(PRODUCT_NAME) 21 | CFBundlePackageType 22 | XPC! 23 | CFBundleShortVersionString 24 | 1.0 25 | CFBundleSignature 26 | ???? 27 | CFBundleVersion 28 | 1 29 | NSExtension 30 | 31 | NSExtensionAttributes 32 | 33 | NSExtensionActivationRule 34 | TRUEPREDICATE 35 | 36 | NSExtensionMainStoryboard 37 | MainInterface 38 | NSExtensionPointIdentifier 39 | com.apple.ui-services 40 | 41 | UILaunchStoryboardName 42 | MainInterface 43 | 44 | 45 | -------------------------------------------------------------------------------- /ux/Adobe After Effects Auto-Save/demo-compare auto-save 1.aep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/Adobe After Effects Auto-Save/demo-compare auto-save 1.aep -------------------------------------------------------------------------------- /ux/Adobe After Effects Auto-Save/demo-compare auto-save 2.aep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/Adobe After Effects Auto-Save/demo-compare auto-save 2.aep -------------------------------------------------------------------------------- /ux/demo-compare.aep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo-compare.aep -------------------------------------------------------------------------------- /ux/demo-compare.aep Logs/AE 6-19-16 6-32-55 PM PDT.txt: -------------------------------------------------------------------------------- 1 | Adobe After Effects v13.5 Macintosh 64 render log for project “demo-compare.aep” Rendering started on 6/19/16 at 6:32:55 PM PDT 6/19/16 6:32:55 PM PDT: Starting composition “Comp 1”. Output To: /Users/mortenjust/code/fishfor/ux/demo-compare.mov 6/19/16 6:34:43 PM PDT: Finished composition “Comp 1”. Total Time Elapsed: 1 Min, 48 Sec Log closed on 6/19/16 at 6:34:43 PM PDT -------------------------------------------------------------------------------- /ux/demo-compare.mov.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo-compare.mov.gif -------------------------------------------------------------------------------- /ux/demo-extension00.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo-extension00.png -------------------------------------------------------------------------------- /ux/demo-extension01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo-extension01.png -------------------------------------------------------------------------------- /ux/demo01.mov.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo01.mov.gif -------------------------------------------------------------------------------- /ux/demo02.mov.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo02.mov.gif -------------------------------------------------------------------------------- /ux/demo03-extension.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mortenjust/find-for-kindle/374de86dbe21902f8b96fcbe9b959086c7fecee7/ux/demo03-extension.mov --------------------------------------------------------------------------------