├── .flowconfig ├── .gitignore ├── .watchmanconfig ├── CHANGELOG.md ├── README.md ├── android ├── app │ ├── build.gradle │ ├── proguard-rules.pro │ ├── react.gradle │ └── src │ │ └── main │ │ └── java │ │ └── com │ │ └── gitmonitor │ │ ├── MainActivity.java │ │ └── ios │ │ └── MainActivity.java ├── build.gradle ├── gradle.properties └── settings.gradle ├── github ├── 120x120.png ├── IMG_1742.PNG ├── IMG_1743.PNG └── flow.png ├── index.ios.js ├── ios ├── Gitmonitor.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ ├── AwesomeProject.xcscheme │ │ └── Gitmonitor.xcscheme ├── Gitmonitor │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── AppDelegate_new.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── DroidSansMono.ttf │ ├── Files │ │ └── DIN Alternate Bold.ttf │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── 120x120.png │ │ │ ├── Contents.json │ │ │ ├── iPhone 6 Plus@2x-1.png │ │ │ ├── iPhone 6 Plus@2x-2.png │ │ │ ├── iPhone 6 Plus@2x.png │ │ │ ├── iPhone 6 Plus@3x-1.png │ │ │ ├── iPhone 6 Plus@3x-2.png │ │ │ ├── iPhone 6 Plus@3x-3.png │ │ │ └── iPhone 6 Plus@3x.png │ │ ├── Contents.json │ │ ├── Group.imageset │ │ │ ├── Contents.json │ │ │ ├── Group.png │ │ │ ├── Group@2x.png │ │ │ └── Group@3x.png │ │ ├── LaunchImage.launchimage │ │ │ ├── 1242x2208-1.png │ │ │ ├── 1242x2208.png │ │ │ ├── 640x1136-1.png │ │ │ ├── 640x1136.png │ │ │ ├── 750x1334.png │ │ │ ├── Contents.json │ │ │ ├── iPhone 6 Plus.png │ │ │ ├── iPhone 6 Plus@2x-1.png │ │ │ └── iPhone 6 Plus@2x.png │ │ ├── Qrscan.imageset │ │ │ ├── Contents.json │ │ │ ├── Qrscan.png │ │ │ ├── Qrscan@2x.png │ │ │ └── Qrscan@3x.png │ │ ├── Scanbutton.imageset │ │ │ ├── Contents.json │ │ │ ├── Scanbutton.png │ │ │ ├── Scanbutton@2x.png │ │ │ └── Scanbutton@3x.png │ │ └── Xbutton.imageset │ │ │ ├── Contents.json │ │ │ ├── Xbutton@1x.png │ │ │ ├── Xbutton@2x.png │ │ │ └── Xbutton@3x.png │ ├── Info.plist │ ├── Info_new.plist │ ├── Lato-Bold.ttf │ ├── Lato-Regular.ttf │ └── main.m ├── GitmonitorTests │ ├── GitmonitorTests.m │ └── Info.plist ├── gitmonitor.ios.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── gitmonitor.ios.xcscheme ├── gitmonitor.ios │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── main.m ├── gitmonitor.iosTests │ ├── Info.plist │ └── gitmonitor.iosTests.m ├── loader.gif └── main.jsbundle ├── package.json └── src ├── actions ├── RepoActions.js └── SettingActions.js ├── assets └── loader.gif ├── components ├── Button.js ├── Camera.js ├── Header.js ├── Item.js ├── ItemList.js └── Router.js ├── constants.js ├── containers └── App.js ├── reducer.js ├── reducer ├── Repos.js └── Settings.js ├── root.js ├── store.js ├── utils ├── api.js ├── helper.js ├── mirror.js └── stylesForm.js └── views ├── ListView.js ├── QrView.js └── SettingsView.js /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | # We fork some components by platform. 4 | .*/*.web.js 5 | .*/*.android.js 6 | 7 | # Some modules have their own node_modules with overlap 8 | .*/node_modules/node-haste/.* 9 | 10 | # Ugh 11 | .*/node_modules/babel.* 12 | .*/node_modules/babylon.* 13 | .*/node_modules/invariant.* 14 | 15 | # Ignore react and fbjs where there are overlaps, but don't ignore 16 | # anything that react-native relies on 17 | .*/node_modules/fbjs/lib/Map.js 18 | .*/node_modules/fbjs/lib/Promise.js 19 | .*/node_modules/fbjs/lib/fetch.js 20 | .*/node_modules/fbjs/lib/ExecutionEnvironment.js 21 | .*/node_modules/fbjs/lib/isEmpty.js 22 | .*/node_modules/fbjs/lib/crc32.js 23 | .*/node_modules/fbjs/lib/ErrorUtils.js 24 | 25 | # Flow has a built-in definition for the 'react' module which we prefer to use 26 | # over the currently-untyped source 27 | .*/node_modules/react/react.js 28 | .*/node_modules/react/lib/React.js 29 | .*/node_modules/react/lib/ReactDOM.js 30 | 31 | # Ignore commoner tests 32 | .*/node_modules/commoner/test/.* 33 | 34 | # See https://github.com/facebook/flow/issues/442 35 | .*/react-tools/node_modules/commoner/lib/reader.js 36 | 37 | # Ignore jest 38 | .*/node_modules/jest-cli/.* 39 | 40 | # Ignore Website 41 | .*/website/.* 42 | 43 | [include] 44 | 45 | [libs] 46 | node_modules/react-native/Libraries/react-native/react-native-interface.js 47 | 48 | [options] 49 | module.system=haste 50 | 51 | munge_underscores=true 52 | 53 | module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' 54 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub' 55 | 56 | suppress_type=$FlowIssue 57 | suppress_type=$FlowFixMe 58 | suppress_type=$FixMe 59 | 60 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 61 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 62 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 63 | 64 | [version] 65 | 0.20.1 66 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IJ 26 | # 27 | .idea 28 | .gradle 29 | local.properties 30 | 31 | # node.js 32 | # 33 | node_modules/ 34 | npm-debug.log 35 | .gitmonitor 36 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | All notable changes to this project will be documented in this file. 3 | This project adheres to [Semantic Versioning](http://semver.org/). 4 | 5 | ## [1.0.1] - 2016-02-04 6 | ### Added 7 | - CHANGELOG.md file to list changes 8 | - added a settings page 9 | - refactored some code 10 | ### Changed 11 | - README.md added changelog link 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![logo](https://github.com/theotow/gitmonitor-ios/raw/master/github/120x120.png "logo") 2 | 3 | # gitmonitor-ios 4 | 5 | ## purpose 6 | 7 | The purpose of this app is to remind you to push your code before you shut your macbook and go home, it may be that other people depend on it or your harddrive dies on the way home... 8 | 9 | 10 | ## how to install 11 | 12 | 1. Setup your env https://facebook.github.io/react-native/docs/getting-started.html#content 13 | 2. Adjust the path to your [gitmonitor-server](https://github.com/theotow/gitmonitor-server) in ```src/reducer/Settings.js``` 14 | 3. Npm install all ```npm install``` 15 | 4. Open gitmonitor-ios/ios/Gitmonitor/AppDelegate.m 16 | 5. Adjust localhost to your ip address if your testing on device ```jsCodeLocation = ...``` 17 | 18 | Open Xcode project in ios/ folder 19 | 20 | ## how to build it for your iphone 21 | 22 | 1. Open gitmonitor-ios/ios/Gitmonitor/AppDelegate.m 23 | 2. Uncomment ```jsCodeLocation = [[NSBundle mainBundle] ...``` 24 | 3. run ```react-native bundle --dev false --entry-file ./index.ios.js --bundle-output ./ios/main.jsbundle --platform ios``` in the gitmonitor-ios folder 25 | 4. The JS bundle will be built for dev or prod depending on your app's scheme (Debug = development build with warnings, Release = minified prod build with perf optimizations). To change the scheme navigate to Product > Scheme > Edit Scheme... in xcode and change Build Configuration between Debug and Release. 26 | 27 | ## uses 28 | 29 | * custom fonts 30 | * embedded images 31 | * qr code scanner 32 | * async storage 33 | * react-redux 34 | * ... -> package.json 35 | 36 | ## preview 37 | 38 | ![img 1](https://github.com/theotow/gitmonitor-ios/raw/master/github/IMG_1743.PNG "img1") 39 | ![img 2](https://github.com/theotow/gitmonitor-ios/raw/master/github/IMG_1742.PNG "img2") 40 | 41 | ## changelog 42 | 43 | [see here](https://github.com/theotow/gitmonitor-ios/blob/master/CHANGELOG.md) 44 | 45 | ## depends on 46 | 47 | * [gitmonitor-client](https://github.com/theotow/gitmonitor-client) 48 | * [gitmonitor-server](https://github.com/theotow/gitmonitor-server) 49 | * Xcode 50 | * node 51 | 52 | Tested on Mac OSX 10.10.5 & node 4.2.2 & Xcode 7.2.1 53 | 54 | ## open todos 55 | 56 | * [ x ] add settings to make endpoint changeable 57 | * [ ] cleanup / simplify 58 | 59 | ## how to contribute 60 | 61 | feel free to send me PRs for the open todos, or come up with other suggestions and improvements 62 | 63 | ## licence 64 | 65 | MIT 66 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets. 7 | * These basically call `react-native bundle` with the correct arguments during the Android build 8 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 9 | * bundle directly from the development server. Below you can see all the possible configurations 10 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 11 | * `apply from: "react.gradle"` line. 12 | * 13 | * project.ext.react = [ 14 | * // the name of the generated asset file containing your JS bundle 15 | * bundleAssetName: "index.android.bundle", 16 | * 17 | * // the entry file for bundle generation 18 | * entryFile: "index.android.js", 19 | * 20 | * // whether to bundle JS and assets in debug mode 21 | * bundleInDebug: false, 22 | * 23 | * // whether to bundle JS and assets in release mode 24 | * bundleInRelease: true, 25 | * 26 | * // the root of your project, i.e. where "package.json" lives 27 | * root: "../../", 28 | * 29 | * // where to put the JS bundle asset in debug mode 30 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 31 | * 32 | * // where to put the JS bundle asset in release mode 33 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 34 | * 35 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 36 | * // require('./image.png')), in debug mode 37 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 38 | * 39 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 40 | * // require('./image.png')), in release mode 41 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 42 | * 43 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 44 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 45 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 46 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 47 | * // for example, you might want to remove it from here. 48 | * inputExcludes: ["android/**", "ios/**"] 49 | * ] 50 | */ 51 | 52 | apply from: "react.gradle" 53 | 54 | /** 55 | * Set this to true to create three separate APKs instead of one: 56 | * - A universal APK that works on all devices 57 | * - An APK that only works on ARM devices 58 | * - An APK that only works on x86 devices 59 | * The advantage is the size of the APK is reduced by about 4MB. 60 | * Upload all the APKs to the Play Store and people will download 61 | * the correct one based on the CPU architecture of their device. 62 | */ 63 | def enableSeparateBuildPerCPUArchitecture = false 64 | 65 | /** 66 | * Run Proguard to shrink the Java bytecode in release builds. 67 | */ 68 | def enableProguardInReleaseBuilds = false 69 | 70 | android { 71 | compileSdkVersion 23 72 | buildToolsVersion "23.0.1" 73 | 74 | defaultConfig { 75 | applicationId "com.gitmonitor.ios" 76 | minSdkVersion 16 77 | targetSdkVersion 22 78 | versionCode 1 79 | versionName "1.0" 80 | ndk { 81 | abiFilters "armeabi-v7a", "x86" 82 | } 83 | } 84 | splits { 85 | abi { 86 | enable enableSeparateBuildPerCPUArchitecture 87 | universalApk true 88 | reset() 89 | include "armeabi-v7a", "x86" 90 | } 91 | } 92 | buildTypes { 93 | release { 94 | minifyEnabled enableProguardInReleaseBuilds 95 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 96 | } 97 | } 98 | // applicationVariants are e.g. debug, release 99 | applicationVariants.all { variant -> 100 | variant.outputs.each { output -> 101 | // For each separate APK per architecture, set a unique version code as described here: 102 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 103 | def versionCodes = ["armeabi-v7a":1, "x86":2] 104 | def abi = output.getFilter(OutputFile.ABI) 105 | if (abi != null) { // null for the universal-debug, universal-release variants 106 | output.versionCodeOverride = 107 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 108 | } 109 | } 110 | } 111 | } 112 | 113 | dependencies { 114 | compile fileTree(dir: "libs", include: ["*.jar"]) 115 | compile "com.android.support:appcompat-v7:23.0.1" 116 | compile "com.facebook.react:react-native:0.18.+" 117 | } 118 | -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | 30 | # Do not strip any method/class that is annotated with @DoNotStrip 31 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 32 | -keepclassmembers class * { 33 | @com.facebook.proguard.annotations.DoNotStrip *; 34 | } 35 | 36 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 37 | void set*(***); 38 | *** get*(); 39 | } 40 | 41 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 42 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 43 | -keepclassmembers,includedescriptorclasses class * { native ; } 44 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 45 | -keepclassmembers class * { @com.facebook.react.uimanager.ReactProp ; } 46 | -keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup ; } 47 | 48 | -dontwarn com.facebook.react.** 49 | 50 | # okhttp 51 | 52 | -keepattributes Signature 53 | -keepattributes *Annotation* 54 | -keep class com.squareup.okhttp.** { *; } 55 | -keep interface com.squareup.okhttp.** { *; } 56 | -dontwarn com.squareup.okhttp.** 57 | 58 | # okio 59 | 60 | -keep class sun.misc.Unsafe { *; } 61 | -dontwarn java.nio.file.* 62 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 63 | -dontwarn okio.** 64 | 65 | # stetho 66 | 67 | -dontwarn com.facebook.stetho.** 68 | -------------------------------------------------------------------------------- /android/app/react.gradle: -------------------------------------------------------------------------------- 1 | import org.apache.tools.ant.taskdefs.condition.Os 2 | 3 | def config = project.hasProperty("react") ? project.react : []; 4 | 5 | def bundleAssetName = config.bundleAssetName ?: "index.android.bundle" 6 | def entryFile = config.entryFile ?: "index.android.js" 7 | 8 | // because elvis operator 9 | def elvisFile(thing) { 10 | return thing ? file(thing) : null; 11 | } 12 | 13 | def reactRoot = elvisFile(config.root) ?: file("../../") 14 | def jsBundleDirDebug = elvisFile(config.jsBundleDirDebug) ?: 15 | file("$buildDir/intermediates/assets/debug") 16 | def jsBundleDirRelease = elvisFile(config.jsBundleDirRelease) ?: 17 | file("$buildDir/intermediates/assets/release") 18 | def resourcesDirDebug = elvisFile(config.resourcesDirDebug) ?: 19 | file("$buildDir/intermediates/res/merged/debug") 20 | def resourcesDirRelease = elvisFile(config.resourcesDirRelease) ?: 21 | file("$buildDir/intermediates/res/merged/release") 22 | def inputExcludes = config.inputExcludes ?: ["android/**", "ios/**"] 23 | 24 | def jsBundleFileDebug = file("$jsBundleDirDebug/$bundleAssetName") 25 | def jsBundleFileRelease = file("$jsBundleDirRelease/$bundleAssetName") 26 | 27 | task bundleDebugJsAndAssets(type: Exec) { 28 | // create dirs if they are not there (e.g. the "clean" task just ran) 29 | doFirst { 30 | jsBundleDirDebug.mkdirs() 31 | resourcesDirDebug.mkdirs() 32 | } 33 | 34 | // set up inputs and outputs so gradle can cache the result 35 | inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) 36 | outputs.dir jsBundleDirDebug 37 | outputs.dir resourcesDirDebug 38 | 39 | // set up the call to the react-native cli 40 | workingDir reactRoot 41 | if (Os.isFamily(Os.FAMILY_WINDOWS)) { 42 | commandLine "cmd", "/c", "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", 43 | entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug 44 | } else { 45 | commandLine "react-native", "bundle", "--platform", "android", "--dev", "true", "--entry-file", 46 | entryFile, "--bundle-output", jsBundleFileDebug, "--assets-dest", resourcesDirDebug 47 | } 48 | 49 | enabled config.bundleInDebug ?: false 50 | } 51 | 52 | task bundleReleaseJsAndAssets(type: Exec) { 53 | // create dirs if they are not there (e.g. the "clean" task just ran) 54 | doFirst { 55 | jsBundleDirRelease.mkdirs() 56 | resourcesDirRelease.mkdirs() 57 | } 58 | 59 | // set up inputs and outputs so gradle can cache the result 60 | inputs.files fileTree(dir: reactRoot, excludes: inputExcludes) 61 | outputs.dir jsBundleDirRelease 62 | outputs.dir resourcesDirRelease 63 | 64 | // set up the call to the react-native cli 65 | workingDir reactRoot 66 | if (Os.isFamily(Os.FAMILY_WINDOWS)) { 67 | commandLine "cmd","/c", "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", 68 | entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease 69 | } else { 70 | commandLine "react-native", "bundle", "--platform", "android", "--dev", "false", "--entry-file", 71 | entryFile, "--bundle-output", jsBundleFileRelease, "--assets-dest", resourcesDirRelease 72 | } 73 | 74 | enabled config.bundleInRelease ?: true 75 | } 76 | 77 | void runBefore(String dependentTaskName, Task task) { 78 | Task dependentTask = tasks.findByPath(dependentTaskName); 79 | if (dependentTask != null) { 80 | dependentTask.dependsOn task 81 | } 82 | } 83 | 84 | gradle.projectsEvaluated { 85 | 86 | // hook bundleDebugJsAndAssets into the android build process 87 | 88 | bundleDebugJsAndAssets.dependsOn mergeDebugResources 89 | bundleDebugJsAndAssets.dependsOn mergeDebugAssets 90 | 91 | runBefore('processArmeabi-v7aDebugResources', bundleDebugJsAndAssets) 92 | runBefore('processX86DebugResources', bundleDebugJsAndAssets) 93 | runBefore('processUniversalDebugResources', bundleDebugJsAndAssets) 94 | runBefore('processDebugResources', bundleDebugJsAndAssets) 95 | 96 | // hook bundleReleaseJsAndAssets into the android build process 97 | 98 | bundleReleaseJsAndAssets.dependsOn mergeReleaseResources 99 | bundleReleaseJsAndAssets.dependsOn mergeReleaseAssets 100 | 101 | runBefore('processArmeabi-v7aReleaseResources', bundleReleaseJsAndAssets) 102 | runBefore('processX86ReleaseResources', bundleReleaseJsAndAssets) 103 | runBefore('processUniversalReleaseResources', bundleReleaseJsAndAssets) 104 | runBefore('processReleaseResources', bundleReleaseJsAndAssets) 105 | 106 | } 107 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gitmonitor/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.gitmonitor; 2 | 3 | import android.app.Activity; 4 | import android.os.Bundle; 5 | import android.view.KeyEvent; 6 | 7 | import com.facebook.react.LifecycleState; 8 | import com.facebook.react.ReactInstanceManager; 9 | import com.facebook.react.ReactRootView; 10 | import com.facebook.react.modules.core.DefaultHardwareBackBtnHandler; 11 | import com.facebook.react.shell.MainReactPackage; 12 | import com.facebook.soloader.SoLoader; 13 | 14 | public class MainActivity extends Activity implements DefaultHardwareBackBtnHandler { 15 | 16 | private ReactInstanceManager mReactInstanceManager; 17 | private ReactRootView mReactRootView; 18 | 19 | @Override 20 | protected void onCreate(Bundle savedInstanceState) { 21 | super.onCreate(savedInstanceState); 22 | mReactRootView = new ReactRootView(this); 23 | 24 | mReactInstanceManager = ReactInstanceManager.builder() 25 | .setApplication(getApplication()) 26 | .setBundleAssetName("index.android.bundle") 27 | .setJSMainModuleName("index.android") 28 | .addPackage(new MainReactPackage()) 29 | .setUseDeveloperSupport(BuildConfig.DEBUG) 30 | .setInitialLifecycleState(LifecycleState.RESUMED) 31 | .build(); 32 | 33 | mReactRootView.startReactApplication(mReactInstanceManager, "Gitmonitor", null); 34 | 35 | setContentView(mReactRootView); 36 | } 37 | 38 | @Override 39 | public boolean onKeyUp(int keyCode, KeyEvent event) { 40 | if (keyCode == KeyEvent.KEYCODE_MENU && mReactInstanceManager != null) { 41 | mReactInstanceManager.showDevOptionsDialog(); 42 | return true; 43 | } 44 | return super.onKeyUp(keyCode, event); 45 | } 46 | 47 | @Override 48 | public void onBackPressed() { 49 | if (mReactInstanceManager != null) { 50 | mReactInstanceManager.onBackPressed(); 51 | } else { 52 | super.onBackPressed(); 53 | } 54 | } 55 | 56 | @Override 57 | public void invokeDefaultOnBackPressed() { 58 | super.onBackPressed(); 59 | } 60 | 61 | @Override 62 | protected void onPause() { 63 | super.onPause(); 64 | 65 | if (mReactInstanceManager != null) { 66 | mReactInstanceManager.onPause(); 67 | } 68 | } 69 | 70 | @Override 71 | protected void onResume() { 72 | super.onResume(); 73 | 74 | if (mReactInstanceManager != null) { 75 | mReactInstanceManager.onResume(this, this); 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/gitmonitor/ios/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.gitmonitor.ios; 2 | 3 | import com.facebook.react.ReactActivity; 4 | import com.facebook.react.ReactPackage; 5 | import com.facebook.react.shell.MainReactPackage; 6 | 7 | import java.util.Arrays; 8 | import java.util.List; 9 | 10 | public class MainActivity extends ReactActivity { 11 | 12 | /** 13 | * Returns the name of the main component registered from JavaScript. 14 | * This is used to schedule rendering of the component. 15 | */ 16 | @Override 17 | protected String getMainComponentName() { 18 | return "gitmonitor.ios"; 19 | } 20 | 21 | /** 22 | * Returns whether dev mode should be enabled. 23 | * This enables e.g. the dev menu. 24 | */ 25 | @Override 26 | protected boolean getUseDeveloperSupport() { 27 | return BuildConfig.DEBUG; 28 | } 29 | 30 | /** 31 | * A list of packages used by the app. If the app uses additional views 32 | * or modules besides the default ones, add more packages here. 33 | */ 34 | @Override 35 | protected List getPackages() { 36 | return Arrays.asList( 37 | new MainReactPackage()); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'gitmonitor.ios' 2 | 3 | include ':app' 4 | -------------------------------------------------------------------------------- /github/120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/github/120x120.png -------------------------------------------------------------------------------- /github/IMG_1742.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/github/IMG_1742.PNG -------------------------------------------------------------------------------- /github/IMG_1743.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/github/IMG_1743.PNG -------------------------------------------------------------------------------- /github/flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/github/flow.png -------------------------------------------------------------------------------- /index.ios.js: -------------------------------------------------------------------------------- 1 | import React from 'react-native' 2 | import Root from './src/root' 3 | 4 | const { 5 | AppRegistry 6 | } = React 7 | 8 | AppRegistry.registerComponent('Gitmonitor', () => Root) 9 | -------------------------------------------------------------------------------- /ios/Gitmonitor.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 16 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 17 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 18 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 19 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 20 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 21 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 22 | 641297C21C0E0FCF0058C4F9 /* Lato-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 641297C11C0E0F890058C4F9 /* Lato-Bold.ttf */; }; 23 | 641297C31C0E0FCF0058C4F9 /* Lato-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 641297C01C0E0F7F0058C4F9 /* Lato-Regular.ttf */; }; 24 | 641297C41C0E0FCF0058C4F9 /* DroidSansMono.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 641297B11C0E0F3B0058C4F9 /* DroidSansMono.ttf */; }; 25 | 64596F871C056A23009A22F6 /* libRCTCamera.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64596F861C0569FA009A22F6 /* libRCTCamera.a */; }; 26 | 64596F8E1C056F68009A22F6 /* libRCTPushNotification.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64596F8D1C056F4F009A22F6 /* libRCTPushNotification.a */; }; 27 | 64596F951C0573C8009A22F6 /* libRCTRemotePushManager.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 64596F941C0573B2009A22F6 /* libRCTRemotePushManager.a */; }; 28 | 64BD9DC31C074BDE001B7E21 /* DIN Alternate Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 64BD9DC21C074BDE001B7E21 /* DIN Alternate Bold.ttf */; }; 29 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 30 | /* End PBXBuildFile section */ 31 | 32 | /* Begin PBXContainerItemProxy section */ 33 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 36 | proxyType = 2; 37 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 38 | remoteInfo = RCTActionSheet; 39 | }; 40 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 41 | isa = PBXContainerItemProxy; 42 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 43 | proxyType = 2; 44 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 45 | remoteInfo = RCTGeolocation; 46 | }; 47 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 50 | proxyType = 2; 51 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 52 | remoteInfo = RCTImage; 53 | }; 54 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 59 | remoteInfo = RCTNetwork; 60 | }; 61 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 66 | remoteInfo = RCTVibration; 67 | }; 68 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 73 | remoteInfo = RCTSettings; 74 | }; 75 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 78 | proxyType = 2; 79 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 80 | remoteInfo = RCTWebSocket; 81 | }; 82 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 85 | proxyType = 2; 86 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 87 | remoteInfo = React; 88 | }; 89 | 64596F851C0569FA009A22F6 /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = 64596F811C0569FA009A22F6 /* RCTCamera.xcodeproj */; 92 | proxyType = 2; 93 | remoteGlobalIDString = 4107012F1ACB723B00C6AA39; 94 | remoteInfo = RCTCamera; 95 | }; 96 | 64596F8C1C056F4F009A22F6 /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = 64596F881C056F4F009A22F6 /* RCTPushNotification.xcodeproj */; 99 | proxyType = 2; 100 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 101 | remoteInfo = RCTPushNotification; 102 | }; 103 | 64596F931C0573B2009A22F6 /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = 64596F8F1C0573B2009A22F6 /* RCTRemotePushManager.xcodeproj */; 106 | proxyType = 2; 107 | remoteGlobalIDString = 48DDA26A1B0A1157004C75B0; 108 | remoteInfo = RCTRemotePushManager; 109 | }; 110 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 111 | isa = PBXContainerItemProxy; 112 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 113 | proxyType = 2; 114 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 115 | remoteInfo = RCTLinking; 116 | }; 117 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 118 | isa = PBXContainerItemProxy; 119 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 120 | proxyType = 2; 121 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 122 | remoteInfo = RCTText; 123 | }; 124 | /* End PBXContainerItemProxy section */ 125 | 126 | /* Begin PBXFileReference section */ 127 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 128 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 129 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 130 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 131 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 132 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 133 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 134 | 13B07F961A680F5B00A75B9A /* Gitmonitor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Gitmonitor.app; sourceTree = BUILT_PRODUCTS_DIR; }; 135 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 136 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 137 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 138 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 139 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 140 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 141 | 641297B11C0E0F3B0058C4F9 /* DroidSansMono.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = DroidSansMono.ttf; sourceTree = ""; }; 142 | 641297C01C0E0F7F0058C4F9 /* Lato-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Lato-Regular.ttf"; sourceTree = ""; }; 143 | 641297C11C0E0F890058C4F9 /* Lato-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Lato-Bold.ttf"; sourceTree = ""; }; 144 | 64596F811C0569FA009A22F6 /* RCTCamera.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTCamera.xcodeproj; path = "../node_modules/react-native-camera/ios/RCTCamera.xcodeproj"; sourceTree = ""; }; 145 | 64596F881C056F4F009A22F6 /* RCTPushNotification.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTPushNotification.xcodeproj; path = "../node_modules/react-native/Libraries/PushNotificationIOS/RCTPushNotification.xcodeproj"; sourceTree = ""; }; 146 | 64596F8F1C0573B2009A22F6 /* RCTRemotePushManager.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTRemotePushManager.xcodeproj; path = "../node_modules/react-native-remote-push/RCTRemotePushManager.xcodeproj"; sourceTree = ""; }; 147 | 64BD9DC21C074BDE001B7E21 /* DIN Alternate Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = "DIN Alternate Bold.ttf"; path = "Files/DIN Alternate Bold.ttf"; sourceTree = ""; }; 148 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 149 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 150 | /* End PBXFileReference section */ 151 | 152 | /* Begin PBXFrameworksBuildPhase section */ 153 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 154 | isa = PBXFrameworksBuildPhase; 155 | buildActionMask = 2147483647; 156 | files = ( 157 | 64596F951C0573C8009A22F6 /* libRCTRemotePushManager.a in Frameworks */, 158 | 64596F8E1C056F68009A22F6 /* libRCTPushNotification.a in Frameworks */, 159 | 64596F871C056A23009A22F6 /* libRCTCamera.a in Frameworks */, 160 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 161 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 162 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 163 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 164 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 165 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 166 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 167 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 168 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 169 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 170 | ); 171 | runOnlyForDeploymentPostprocessing = 0; 172 | }; 173 | /* End PBXFrameworksBuildPhase section */ 174 | 175 | /* Begin PBXGroup section */ 176 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 180 | ); 181 | name = Products; 182 | sourceTree = ""; 183 | }; 184 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 185 | isa = PBXGroup; 186 | children = ( 187 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 188 | ); 189 | name = Products; 190 | sourceTree = ""; 191 | }; 192 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 193 | isa = PBXGroup; 194 | children = ( 195 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 196 | ); 197 | name = Products; 198 | sourceTree = ""; 199 | }; 200 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 204 | ); 205 | name = Products; 206 | sourceTree = ""; 207 | }; 208 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 212 | ); 213 | name = Products; 214 | sourceTree = ""; 215 | }; 216 | 139105B71AF99BAD00B5F7CC /* Products */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 220 | ); 221 | name = Products; 222 | sourceTree = ""; 223 | }; 224 | 139FDEE71B06529A00C62182 /* Products */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 228 | ); 229 | name = Products; 230 | sourceTree = ""; 231 | }; 232 | 13B07FAE1A68108700A75B9A /* Gitmonitor */ = { 233 | isa = PBXGroup; 234 | children = ( 235 | 64BD9DC11C074BAB001B7E21 /* Fonts */, 236 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 237 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 238 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 239 | 13B07FB61A68108700A75B9A /* Info.plist */, 240 | 13B07FB71A68108700A75B9A /* main.m */, 241 | ); 242 | path = Gitmonitor; 243 | sourceTree = ""; 244 | }; 245 | 146834001AC3E56700842450 /* Products */ = { 246 | isa = PBXGroup; 247 | children = ( 248 | 146834041AC3E56700842450 /* libReact.a */, 249 | ); 250 | name = Products; 251 | sourceTree = ""; 252 | }; 253 | 64596F821C0569FA009A22F6 /* Products */ = { 254 | isa = PBXGroup; 255 | children = ( 256 | 64596F861C0569FA009A22F6 /* libRCTCamera.a */, 257 | ); 258 | name = Products; 259 | sourceTree = ""; 260 | }; 261 | 64596F891C056F4F009A22F6 /* Products */ = { 262 | isa = PBXGroup; 263 | children = ( 264 | 64596F8D1C056F4F009A22F6 /* libRCTPushNotification.a */, 265 | ); 266 | name = Products; 267 | sourceTree = ""; 268 | }; 269 | 64596F901C0573B2009A22F6 /* Products */ = { 270 | isa = PBXGroup; 271 | children = ( 272 | 64596F941C0573B2009A22F6 /* libRCTRemotePushManager.a */, 273 | ); 274 | name = Products; 275 | sourceTree = ""; 276 | }; 277 | 64BD9DC11C074BAB001B7E21 /* Fonts */ = { 278 | isa = PBXGroup; 279 | children = ( 280 | 641297C11C0E0F890058C4F9 /* Lato-Bold.ttf */, 281 | 641297C01C0E0F7F0058C4F9 /* Lato-Regular.ttf */, 282 | 641297B11C0E0F3B0058C4F9 /* DroidSansMono.ttf */, 283 | 64BD9DC21C074BDE001B7E21 /* DIN Alternate Bold.ttf */, 284 | ); 285 | name = Fonts; 286 | sourceTree = ""; 287 | }; 288 | 78C398B11ACF4ADC00677621 /* Products */ = { 289 | isa = PBXGroup; 290 | children = ( 291 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 292 | ); 293 | name = Products; 294 | sourceTree = ""; 295 | }; 296 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 297 | isa = PBXGroup; 298 | children = ( 299 | 64596F8F1C0573B2009A22F6 /* RCTRemotePushManager.xcodeproj */, 300 | 64596F881C056F4F009A22F6 /* RCTPushNotification.xcodeproj */, 301 | 64596F811C0569FA009A22F6 /* RCTCamera.xcodeproj */, 302 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 303 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 304 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 305 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 306 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 307 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 308 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 309 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 310 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 311 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 312 | ); 313 | name = Libraries; 314 | sourceTree = ""; 315 | }; 316 | 832341B11AAA6A8300B99B32 /* Products */ = { 317 | isa = PBXGroup; 318 | children = ( 319 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 320 | ); 321 | name = Products; 322 | sourceTree = ""; 323 | }; 324 | 83CBB9F61A601CBA00E9B192 = { 325 | isa = PBXGroup; 326 | children = ( 327 | 13B07FAE1A68108700A75B9A /* Gitmonitor */, 328 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 329 | 83CBBA001A601CBA00E9B192 /* Products */, 330 | ); 331 | indentWidth = 2; 332 | sourceTree = ""; 333 | tabWidth = 2; 334 | }; 335 | 83CBBA001A601CBA00E9B192 /* Products */ = { 336 | isa = PBXGroup; 337 | children = ( 338 | 13B07F961A680F5B00A75B9A /* Gitmonitor.app */, 339 | ); 340 | name = Products; 341 | sourceTree = ""; 342 | }; 343 | /* End PBXGroup section */ 344 | 345 | /* Begin PBXNativeTarget section */ 346 | 13B07F861A680F5B00A75B9A /* Gitmonitor */ = { 347 | isa = PBXNativeTarget; 348 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Gitmonitor" */; 349 | buildPhases = ( 350 | 13B07F871A680F5B00A75B9A /* Sources */, 351 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 352 | 13B07F8E1A680F5B00A75B9A /* Resources */, 353 | 64DE4B851CB55EE60086034D /* react */, 354 | ); 355 | buildRules = ( 356 | ); 357 | dependencies = ( 358 | ); 359 | name = Gitmonitor; 360 | productName = "Hello World"; 361 | productReference = 13B07F961A680F5B00A75B9A /* Gitmonitor.app */; 362 | productType = "com.apple.product-type.application"; 363 | }; 364 | /* End PBXNativeTarget section */ 365 | 366 | /* Begin PBXProject section */ 367 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 368 | isa = PBXProject; 369 | attributes = { 370 | LastUpgradeCheck = 0610; 371 | ORGANIZATIONNAME = Facebook; 372 | TargetAttributes = { 373 | 13B07F861A680F5B00A75B9A = { 374 | DevelopmentTeam = 89X4B3THCC; 375 | SystemCapabilities = { 376 | com.apple.Push = { 377 | enabled = 0; 378 | }; 379 | }; 380 | }; 381 | }; 382 | }; 383 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Gitmonitor" */; 384 | compatibilityVersion = "Xcode 3.2"; 385 | developmentRegion = English; 386 | hasScannedForEncodings = 0; 387 | knownRegions = ( 388 | en, 389 | Base, 390 | ); 391 | mainGroup = 83CBB9F61A601CBA00E9B192; 392 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 393 | projectDirPath = ""; 394 | projectReferences = ( 395 | { 396 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 397 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 398 | }, 399 | { 400 | ProductGroup = 64596F821C0569FA009A22F6 /* Products */; 401 | ProjectRef = 64596F811C0569FA009A22F6 /* RCTCamera.xcodeproj */; 402 | }, 403 | { 404 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 405 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 406 | }, 407 | { 408 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 409 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 410 | }, 411 | { 412 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 413 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 414 | }, 415 | { 416 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 417 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 418 | }, 419 | { 420 | ProductGroup = 64596F891C056F4F009A22F6 /* Products */; 421 | ProjectRef = 64596F881C056F4F009A22F6 /* RCTPushNotification.xcodeproj */; 422 | }, 423 | { 424 | ProductGroup = 64596F901C0573B2009A22F6 /* Products */; 425 | ProjectRef = 64596F8F1C0573B2009A22F6 /* RCTRemotePushManager.xcodeproj */; 426 | }, 427 | { 428 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 429 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 430 | }, 431 | { 432 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 433 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 434 | }, 435 | { 436 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 437 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 438 | }, 439 | { 440 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 441 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 442 | }, 443 | { 444 | ProductGroup = 146834001AC3E56700842450 /* Products */; 445 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 446 | }, 447 | ); 448 | projectRoot = ""; 449 | targets = ( 450 | 13B07F861A680F5B00A75B9A /* Gitmonitor */, 451 | ); 452 | }; 453 | /* End PBXProject section */ 454 | 455 | /* Begin PBXReferenceProxy section */ 456 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 457 | isa = PBXReferenceProxy; 458 | fileType = archive.ar; 459 | path = libRCTActionSheet.a; 460 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 461 | sourceTree = BUILT_PRODUCTS_DIR; 462 | }; 463 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 464 | isa = PBXReferenceProxy; 465 | fileType = archive.ar; 466 | path = libRCTGeolocation.a; 467 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 468 | sourceTree = BUILT_PRODUCTS_DIR; 469 | }; 470 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 471 | isa = PBXReferenceProxy; 472 | fileType = archive.ar; 473 | path = libRCTImage.a; 474 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 475 | sourceTree = BUILT_PRODUCTS_DIR; 476 | }; 477 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 478 | isa = PBXReferenceProxy; 479 | fileType = archive.ar; 480 | path = libRCTNetwork.a; 481 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 482 | sourceTree = BUILT_PRODUCTS_DIR; 483 | }; 484 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 485 | isa = PBXReferenceProxy; 486 | fileType = archive.ar; 487 | path = libRCTVibration.a; 488 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 489 | sourceTree = BUILT_PRODUCTS_DIR; 490 | }; 491 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 492 | isa = PBXReferenceProxy; 493 | fileType = archive.ar; 494 | path = libRCTSettings.a; 495 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 496 | sourceTree = BUILT_PRODUCTS_DIR; 497 | }; 498 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 499 | isa = PBXReferenceProxy; 500 | fileType = archive.ar; 501 | path = libRCTWebSocket.a; 502 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 503 | sourceTree = BUILT_PRODUCTS_DIR; 504 | }; 505 | 146834041AC3E56700842450 /* libReact.a */ = { 506 | isa = PBXReferenceProxy; 507 | fileType = archive.ar; 508 | path = libReact.a; 509 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 510 | sourceTree = BUILT_PRODUCTS_DIR; 511 | }; 512 | 64596F861C0569FA009A22F6 /* libRCTCamera.a */ = { 513 | isa = PBXReferenceProxy; 514 | fileType = archive.ar; 515 | path = libRCTCamera.a; 516 | remoteRef = 64596F851C0569FA009A22F6 /* PBXContainerItemProxy */; 517 | sourceTree = BUILT_PRODUCTS_DIR; 518 | }; 519 | 64596F8D1C056F4F009A22F6 /* libRCTPushNotification.a */ = { 520 | isa = PBXReferenceProxy; 521 | fileType = archive.ar; 522 | path = libRCTPushNotification.a; 523 | remoteRef = 64596F8C1C056F4F009A22F6 /* PBXContainerItemProxy */; 524 | sourceTree = BUILT_PRODUCTS_DIR; 525 | }; 526 | 64596F941C0573B2009A22F6 /* libRCTRemotePushManager.a */ = { 527 | isa = PBXReferenceProxy; 528 | fileType = archive.ar; 529 | path = libRCTRemotePushManager.a; 530 | remoteRef = 64596F931C0573B2009A22F6 /* PBXContainerItemProxy */; 531 | sourceTree = BUILT_PRODUCTS_DIR; 532 | }; 533 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 534 | isa = PBXReferenceProxy; 535 | fileType = archive.ar; 536 | path = libRCTLinking.a; 537 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 538 | sourceTree = BUILT_PRODUCTS_DIR; 539 | }; 540 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 541 | isa = PBXReferenceProxy; 542 | fileType = archive.ar; 543 | path = libRCTText.a; 544 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 545 | sourceTree = BUILT_PRODUCTS_DIR; 546 | }; 547 | /* End PBXReferenceProxy section */ 548 | 549 | /* Begin PBXResourcesBuildPhase section */ 550 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 551 | isa = PBXResourcesBuildPhase; 552 | buildActionMask = 2147483647; 553 | files = ( 554 | 641297C21C0E0FCF0058C4F9 /* Lato-Bold.ttf in Resources */, 555 | 641297C31C0E0FCF0058C4F9 /* Lato-Regular.ttf in Resources */, 556 | 641297C41C0E0FCF0058C4F9 /* DroidSansMono.ttf in Resources */, 557 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 558 | 64BD9DC31C074BDE001B7E21 /* DIN Alternate Bold.ttf in Resources */, 559 | ); 560 | runOnlyForDeploymentPostprocessing = 0; 561 | }; 562 | /* End PBXResourcesBuildPhase section */ 563 | 564 | /* Begin PBXShellScriptBuildPhase section */ 565 | 64DE4B851CB55EE60086034D /* react */ = { 566 | isa = PBXShellScriptBuildPhase; 567 | buildActionMask = 2147483647; 568 | files = ( 569 | ); 570 | inputPaths = ( 571 | ); 572 | name = react; 573 | outputPaths = ( 574 | ); 575 | runOnlyForDeploymentPostprocessing = 0; 576 | shellPath = /bin/zsh; 577 | shellScript = "../node_modules/react-native/packager/react-native-xcode.sh"; 578 | }; 579 | /* End PBXShellScriptBuildPhase section */ 580 | 581 | /* Begin PBXSourcesBuildPhase section */ 582 | 13B07F871A680F5B00A75B9A /* Sources */ = { 583 | isa = PBXSourcesBuildPhase; 584 | buildActionMask = 2147483647; 585 | files = ( 586 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 587 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 588 | ); 589 | runOnlyForDeploymentPostprocessing = 0; 590 | }; 591 | /* End PBXSourcesBuildPhase section */ 592 | 593 | /* Begin XCBuildConfiguration section */ 594 | 13B07F941A680F5B00A75B9A /* Debug */ = { 595 | isa = XCBuildConfiguration; 596 | buildSettings = { 597 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 598 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 599 | CODE_SIGN_IDENTITY = "iPhone Developer"; 600 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 601 | DEAD_CODE_STRIPPING = NO; 602 | HEADER_SEARCH_PATHS = ( 603 | "$(inherited)", 604 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 605 | "$(SRCROOT)/../node_modules/react-native/React/**", 606 | "$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS", 607 | "$(SRCROOT)/../node_modules/react-native-remote-push/", 608 | ); 609 | INFOPLIST_FILE = "$(SRCROOT)/Gitmonitor/Info.plist"; 610 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 611 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 612 | New_Setting = ""; 613 | OTHER_LDFLAGS = "-ObjC"; 614 | PRODUCT_BUNDLE_IDENTIFIER = com.gitmonitor.gitmonitor; 615 | PRODUCT_NAME = Gitmonitor; 616 | PROVISIONING_PROFILE = ""; 617 | TARGETED_DEVICE_FAMILY = 1; 618 | }; 619 | name = Debug; 620 | }; 621 | 13B07F951A680F5B00A75B9A /* Release */ = { 622 | isa = XCBuildConfiguration; 623 | buildSettings = { 624 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 625 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 626 | CODE_SIGN_IDENTITY = "iPhone Developer"; 627 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 628 | HEADER_SEARCH_PATHS = ( 629 | "$(inherited)", 630 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 631 | "$(SRCROOT)/../node_modules/react-native/React/**", 632 | "$(SRCROOT)/../node_modules/react-native/Libraries/PushNotificationIOS", 633 | "$(SRCROOT)/../node_modules/react-native-remote-push/", 634 | ); 635 | INFOPLIST_FILE = "$(SRCROOT)/Gitmonitor/Info.plist"; 636 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 637 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 638 | New_Setting = ""; 639 | OTHER_LDFLAGS = "-ObjC"; 640 | PRODUCT_BUNDLE_IDENTIFIER = com.gitmonitor.gitmonitor; 641 | PRODUCT_NAME = Gitmonitor; 642 | PROVISIONING_PROFILE = ""; 643 | TARGETED_DEVICE_FAMILY = 1; 644 | }; 645 | name = Release; 646 | }; 647 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 648 | isa = XCBuildConfiguration; 649 | buildSettings = { 650 | ALWAYS_SEARCH_USER_PATHS = NO; 651 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 652 | CLANG_CXX_LIBRARY = "libc++"; 653 | CLANG_ENABLE_MODULES = YES; 654 | CLANG_ENABLE_OBJC_ARC = YES; 655 | CLANG_WARN_BOOL_CONVERSION = YES; 656 | CLANG_WARN_CONSTANT_CONVERSION = YES; 657 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 658 | CLANG_WARN_EMPTY_BODY = YES; 659 | CLANG_WARN_ENUM_CONVERSION = YES; 660 | CLANG_WARN_INT_CONVERSION = YES; 661 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 662 | CLANG_WARN_UNREACHABLE_CODE = YES; 663 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 664 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 665 | COPY_PHASE_STRIP = NO; 666 | ENABLE_STRICT_OBJC_MSGSEND = YES; 667 | GCC_C_LANGUAGE_STANDARD = gnu99; 668 | GCC_DYNAMIC_NO_PIC = NO; 669 | GCC_OPTIMIZATION_LEVEL = 0; 670 | GCC_PREPROCESSOR_DEFINITIONS = ( 671 | "DEBUG=1", 672 | "$(inherited)", 673 | ); 674 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 675 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 676 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 677 | GCC_WARN_UNDECLARED_SELECTOR = YES; 678 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 679 | GCC_WARN_UNUSED_FUNCTION = YES; 680 | GCC_WARN_UNUSED_VARIABLE = YES; 681 | HEADER_SEARCH_PATHS = ( 682 | "$(inherited)", 683 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 684 | "$(SRCROOT)/../node_modules/react-native/React/**", 685 | ); 686 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 687 | MTL_ENABLE_DEBUG_INFO = YES; 688 | ONLY_ACTIVE_ARCH = YES; 689 | SDKROOT = iphoneos; 690 | }; 691 | name = Debug; 692 | }; 693 | 83CBBA211A601CBA00E9B192 /* Release */ = { 694 | isa = XCBuildConfiguration; 695 | buildSettings = { 696 | ALWAYS_SEARCH_USER_PATHS = NO; 697 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 698 | CLANG_CXX_LIBRARY = "libc++"; 699 | CLANG_ENABLE_MODULES = YES; 700 | CLANG_ENABLE_OBJC_ARC = YES; 701 | CLANG_WARN_BOOL_CONVERSION = YES; 702 | CLANG_WARN_CONSTANT_CONVERSION = YES; 703 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 704 | CLANG_WARN_EMPTY_BODY = YES; 705 | CLANG_WARN_ENUM_CONVERSION = YES; 706 | CLANG_WARN_INT_CONVERSION = YES; 707 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 708 | CLANG_WARN_UNREACHABLE_CODE = YES; 709 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 710 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 711 | COPY_PHASE_STRIP = YES; 712 | ENABLE_NS_ASSERTIONS = NO; 713 | ENABLE_STRICT_OBJC_MSGSEND = YES; 714 | GCC_C_LANGUAGE_STANDARD = gnu99; 715 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 716 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 717 | GCC_WARN_UNDECLARED_SELECTOR = YES; 718 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 719 | GCC_WARN_UNUSED_FUNCTION = YES; 720 | GCC_WARN_UNUSED_VARIABLE = YES; 721 | HEADER_SEARCH_PATHS = ( 722 | "$(inherited)", 723 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 724 | "$(SRCROOT)/../node_modules/react-native/React/**", 725 | ); 726 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 727 | MTL_ENABLE_DEBUG_INFO = NO; 728 | SDKROOT = iphoneos; 729 | VALIDATE_PRODUCT = YES; 730 | }; 731 | name = Release; 732 | }; 733 | /* End XCBuildConfiguration section */ 734 | 735 | /* Begin XCConfigurationList section */ 736 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Gitmonitor" */ = { 737 | isa = XCConfigurationList; 738 | buildConfigurations = ( 739 | 13B07F941A680F5B00A75B9A /* Debug */, 740 | 13B07F951A680F5B00A75B9A /* Release */, 741 | ); 742 | defaultConfigurationIsVisible = 0; 743 | defaultConfigurationName = Release; 744 | }; 745 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Gitmonitor" */ = { 746 | isa = XCConfigurationList; 747 | buildConfigurations = ( 748 | 83CBBA201A601CBA00E9B192 /* Debug */, 749 | 83CBBA211A601CBA00E9B192 /* Release */, 750 | ); 751 | defaultConfigurationIsVisible = 0; 752 | defaultConfigurationName = Release; 753 | }; 754 | /* End XCConfigurationList section */ 755 | }; 756 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 757 | } 758 | -------------------------------------------------------------------------------- /ios/Gitmonitor.xcodeproj/xcshareddata/xcschemes/AwesomeProject.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /ios/Gitmonitor.xcodeproj/xcshareddata/xcschemes/Gitmonitor.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /ios/Gitmonitor/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/Gitmonitor/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTRootView.h" 13 | #import "RCTPushNotificationManager.h" 14 | #import "RemotePushDelegate.h" 15 | @implementation AppDelegate 16 | 17 | - (id) init { 18 | return self; 19 | } 20 | 21 | // Required to register for notifications 22 | - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings 23 | { 24 | [RCTPushNotificationManager didRegisterUserNotificationSettings:notificationSettings]; 25 | } 26 | // Required for the register event. 27 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken 28 | { 29 | [RCTPushNotificationManager didRegisterForRemoteNotificationsWithDeviceToken:deviceToken]; 30 | } 31 | // Required for the notification event. 32 | - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)notification 33 | { 34 | [RCTPushNotificationManager didReceiveRemoteNotification:notification]; 35 | } 36 | 37 | 38 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 39 | { 40 | NSURL *jsCodeLocation; 41 | 42 | /** 43 | * Loading JavaScript code - uncomment the one you want. 44 | * 45 | * OPTION 1 46 | * Load from development server. Start the server from the repository root: 47 | * 48 | * $ npm start 49 | * 50 | * To run on device, change `localhost` to the IP address of your computer 51 | * (you can get this by typing `ifconfig` into the terminal and selecting the 52 | * `inet` value under `en0:`) and make sure your computer and iOS device are 53 | * on the same Wi-Fi network. 54 | */ 55 | 56 | //jsCodeLocation = [NSURL URLWithString:@"http://192.168.1.101:8081/index.ios.bundle?platform=ios&dev=true"]; 57 | 58 | /** 59 | * OPTION 2 60 | * Load from pre-bundled file on disk. To re-generate the static bundle 61 | * from the root of your project directory, run 62 | * 63 | * $ react-native bundle --minify 64 | * 65 | * see http://facebook.github.io/react-native/docs/runningondevice.html 66 | */ 67 | 68 | jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 69 | 70 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 71 | moduleName:@"Gitmonitor" 72 | initialProperties:nil 73 | launchOptions:launchOptions]; 74 | 75 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 76 | UIViewController *rootViewController = [[UIViewController alloc] init]; 77 | rootViewController.view = rootView; 78 | self.window.rootViewController = rootViewController; 79 | [self.window makeKeyAndVisible]; 80 | return YES; 81 | } 82 | 83 | @end 84 | -------------------------------------------------------------------------------- /ios/Gitmonitor/AppDelegate_new.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTRootView.h" 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | NSURL *jsCodeLocation; 19 | 20 | /** 21 | * Loading JavaScript code - uncomment the one you want. 22 | * 23 | * OPTION 1 24 | * Load from development server. Start the server from the repository root: 25 | * 26 | * $ npm start 27 | * 28 | * To run on device, change `localhost` to the IP address of your computer 29 | * (you can get this by typing `ifconfig` into the terminal and selecting the 30 | * `inet` value under `en0:`) and make sure your computer and iOS device are 31 | * on the same Wi-Fi network. 32 | */ 33 | 34 | jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]; 35 | 36 | /** 37 | * OPTION 2 38 | * Load from pre-bundled file on disk. The static bundle is automatically 39 | * generated by "Bundle React Native code and images" build step. 40 | */ 41 | 42 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 43 | 44 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 45 | moduleName:@"Gitmonitor" 46 | initialProperties:nil 47 | launchOptions:launchOptions]; 48 | 49 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 50 | UIViewController *rootViewController = [UIViewController new]; 51 | rootViewController.view = rootView; 52 | self.window.rootViewController = rootViewController; 53 | [self.window makeKeyAndVisible]; 54 | return YES; 55 | } 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /ios/Gitmonitor/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/Gitmonitor/DroidSansMono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/DroidSansMono.ttf -------------------------------------------------------------------------------- /ios/Gitmonitor/Files/DIN Alternate Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Files/DIN Alternate Bold.ttf -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/120x120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/120x120.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "29x29", 5 | "idiom" : "iphone", 6 | "filename" : "iPhone 6 Plus@2x-2.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "29x29", 11 | "idiom" : "iphone", 12 | "filename" : "iPhone 6 Plus@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "40x40", 17 | "idiom" : "iphone", 18 | "filename" : "iPhone 6 Plus@2x-1.png", 19 | "scale" : "2x" 20 | }, 21 | { 22 | "size" : "40x40", 23 | "idiom" : "iphone", 24 | "filename" : "iPhone 6 Plus@3x-1.png", 25 | "scale" : "3x" 26 | }, 27 | { 28 | "size" : "60x60", 29 | "idiom" : "iphone", 30 | "filename" : "iPhone 6 Plus@2x.png", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "size" : "60x60", 35 | "idiom" : "iphone", 36 | "filename" : "iPhone 6 Plus@3x-2.png", 37 | "scale" : "3x" 38 | }, 39 | { 40 | "size" : "60x60", 41 | "idiom" : "car", 42 | "filename" : "120x120.png", 43 | "scale" : "2x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "car", 48 | "filename" : "iPhone 6 Plus@3x-3.png", 49 | "scale" : "3x" 50 | } 51 | ], 52 | "info" : { 53 | "version" : 1, 54 | "author" : "xcode" 55 | } 56 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@2x-1.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@2x-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@2x-2.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@2x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x-1.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x-2.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x-3.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/AppIcon.appiconset/iPhone 6 Plus@3x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Group.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Group.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Group@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Group@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Group.imageset/Group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Group.imageset/Group.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Group.imageset/Group@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Group.imageset/Group@2x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Group.imageset/Group@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Group.imageset/Group@3x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/1242x2208-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/1242x2208-1.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/1242x2208.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/1242x2208.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/640x1136-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/640x1136-1.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/640x1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/640x1136.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/750x1334.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/750x1334.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "extent" : "full-screen", 5 | "idiom" : "iphone", 6 | "subtype" : "736h", 7 | "filename" : "1242x2208.png", 8 | "minimum-system-version" : "8.0", 9 | "orientation" : "portrait", 10 | "scale" : "3x" 11 | }, 12 | { 13 | "extent" : "full-screen", 14 | "idiom" : "iphone", 15 | "subtype" : "736h", 16 | "filename" : "1242x2208-1.png", 17 | "minimum-system-version" : "8.0", 18 | "orientation" : "landscape", 19 | "scale" : "3x" 20 | }, 21 | { 22 | "extent" : "full-screen", 23 | "idiom" : "iphone", 24 | "subtype" : "667h", 25 | "filename" : "750x1334.png", 26 | "minimum-system-version" : "8.0", 27 | "orientation" : "portrait", 28 | "scale" : "2x" 29 | }, 30 | { 31 | "orientation" : "portrait", 32 | "idiom" : "iphone", 33 | "filename" : "iPhone 6 Plus@2x-1.png", 34 | "extent" : "full-screen", 35 | "minimum-system-version" : "7.0", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "extent" : "full-screen", 40 | "idiom" : "iphone", 41 | "subtype" : "retina4", 42 | "filename" : "640x1136.png", 43 | "minimum-system-version" : "7.0", 44 | "orientation" : "portrait", 45 | "scale" : "2x" 46 | }, 47 | { 48 | "orientation" : "portrait", 49 | "idiom" : "iphone", 50 | "filename" : "iPhone 6 Plus.png", 51 | "extent" : "full-screen", 52 | "scale" : "1x" 53 | }, 54 | { 55 | "orientation" : "portrait", 56 | "idiom" : "iphone", 57 | "filename" : "iPhone 6 Plus@2x.png", 58 | "extent" : "full-screen", 59 | "scale" : "2x" 60 | }, 61 | { 62 | "orientation" : "portrait", 63 | "idiom" : "iphone", 64 | "filename" : "640x1136-1.png", 65 | "extent" : "full-screen", 66 | "subtype" : "retina4", 67 | "scale" : "2x" 68 | } 69 | ], 70 | "info" : { 71 | "version" : 1, 72 | "author" : "xcode" 73 | } 74 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/iPhone 6 Plus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/iPhone 6 Plus.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/iPhone 6 Plus@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/iPhone 6 Plus@2x-1.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/iPhone 6 Plus@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/LaunchImage.launchimage/iPhone 6 Plus@2x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Qrscan.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Qrscan@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Qrscan@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Qrscan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Qrscan.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Qrscan@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Qrscan@2x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Qrscan@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Qrscan.imageset/Qrscan@3x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Scanbutton.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Scanbutton@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Scanbutton@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Scanbutton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Scanbutton.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Scanbutton@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Scanbutton@2x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Scanbutton@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Scanbutton.imageset/Scanbutton@3x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Xbutton@1x.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "Xbutton@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "Xbutton@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Xbutton@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Xbutton@1x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Xbutton@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Xbutton@2x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Xbutton@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Images.xcassets/Xbutton.imageset/Xbutton@3x.png -------------------------------------------------------------------------------- /ios/Gitmonitor/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | 30 | NSLocationWhenInUseUsageDescription 31 | 32 | UIAppFonts 33 | 34 | DroidSansMono.ttf 35 | Lato-Bold.ttf 36 | Lato-Regular.ttf 37 | DIN Alternate Bold.ttf 38 | 39 | UILaunchStoryboardName 40 | LaunchScreen 41 | UIRequiredDeviceCapabilities 42 | 43 | armv7 44 | 45 | UISupportedInterfaceOrientations 46 | 47 | UIInterfaceOrientationPortrait 48 | 49 | UIViewControllerBasedStatusBarAppearance 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /ios/Gitmonitor/Info_new.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSAllowsArbitraryLoads 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /ios/Gitmonitor/Lato-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Lato-Bold.ttf -------------------------------------------------------------------------------- /ios/Gitmonitor/Lato-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/Gitmonitor/Lato-Regular.ttf -------------------------------------------------------------------------------- /ios/Gitmonitor/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/GitmonitorTests/GitmonitorTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import "RCTLog.h" 14 | #import "RCTRootView.h" 15 | 16 | #define TIMEOUT_SECONDS 240 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface GitmonitorTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation GitmonitorTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /ios/GitmonitorTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* gitmonitor.iosTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* gitmonitor.iosTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 31 | proxyType = 2; 32 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 33 | remoteInfo = RCTActionSheet; 34 | }; 35 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 36 | isa = PBXContainerItemProxy; 37 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 38 | proxyType = 2; 39 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 40 | remoteInfo = RCTGeolocation; 41 | }; 42 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 43 | isa = PBXContainerItemProxy; 44 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 45 | proxyType = 2; 46 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 47 | remoteInfo = RCTImage; 48 | }; 49 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 50 | isa = PBXContainerItemProxy; 51 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 52 | proxyType = 2; 53 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 54 | remoteInfo = RCTNetwork; 55 | }; 56 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 57 | isa = PBXContainerItemProxy; 58 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 59 | proxyType = 2; 60 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 61 | remoteInfo = RCTVibration; 62 | }; 63 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 64 | isa = PBXContainerItemProxy; 65 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 66 | proxyType = 1; 67 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 68 | remoteInfo = gitmonitor.ios; 69 | }; 70 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 71 | isa = PBXContainerItemProxy; 72 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 73 | proxyType = 2; 74 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 75 | remoteInfo = RCTSettings; 76 | }; 77 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 78 | isa = PBXContainerItemProxy; 79 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 80 | proxyType = 2; 81 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 82 | remoteInfo = RCTWebSocket; 83 | }; 84 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 85 | isa = PBXContainerItemProxy; 86 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 87 | proxyType = 2; 88 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 89 | remoteInfo = React; 90 | }; 91 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 92 | isa = PBXContainerItemProxy; 93 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 94 | proxyType = 2; 95 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 96 | remoteInfo = RCTLinking; 97 | }; 98 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 99 | isa = PBXContainerItemProxy; 100 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 101 | proxyType = 2; 102 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 103 | remoteInfo = RCTText; 104 | }; 105 | /* End PBXContainerItemProxy section */ 106 | 107 | /* Begin PBXFileReference section */ 108 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = main.jsbundle; path = main.jsbundle; sourceTree = ""; }; 109 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = ../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj; sourceTree = ""; }; 110 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = ../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = ""; }; 111 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = ../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj; sourceTree = ""; }; 112 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = ../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj; sourceTree = ""; }; 113 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = ../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj; sourceTree = ""; }; 114 | 00E356EE1AD99517003FC87E /* gitmonitor.iosTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = gitmonitor.iosTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 115 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 116 | 00E356F21AD99517003FC87E /* gitmonitor.iosTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = gitmonitor.iosTests.m; sourceTree = ""; }; 117 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = ../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj; sourceTree = ""; }; 118 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = ../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj; sourceTree = ""; }; 119 | 13B07F961A680F5B00A75B9A /* gitmonitor.ios.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = gitmonitor.ios.app; sourceTree = BUILT_PRODUCTS_DIR; }; 120 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = gitmonitor.ios/AppDelegate.h; sourceTree = ""; }; 121 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = gitmonitor.ios/AppDelegate.m; sourceTree = ""; }; 122 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 123 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = gitmonitor.ios/Images.xcassets; sourceTree = ""; }; 124 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = gitmonitor.ios/Info.plist; sourceTree = ""; }; 125 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = gitmonitor.ios/main.m; sourceTree = ""; }; 126 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../node_modules/react-native/React/React.xcodeproj; sourceTree = ""; }; 127 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = ""; }; 128 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../node_modules/react-native/Libraries/Text/RCTText.xcodeproj; sourceTree = ""; }; 129 | /* End PBXFileReference section */ 130 | 131 | /* Begin PBXFrameworksBuildPhase section */ 132 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 133 | isa = PBXFrameworksBuildPhase; 134 | buildActionMask = 2147483647; 135 | files = ( 136 | ); 137 | runOnlyForDeploymentPostprocessing = 0; 138 | }; 139 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 140 | isa = PBXFrameworksBuildPhase; 141 | buildActionMask = 2147483647; 142 | files = ( 143 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 144 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 145 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 146 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 147 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 148 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 149 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 150 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 151 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 152 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 153 | ); 154 | runOnlyForDeploymentPostprocessing = 0; 155 | }; 156 | /* End PBXFrameworksBuildPhase section */ 157 | 158 | /* Begin PBXGroup section */ 159 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 163 | ); 164 | name = Products; 165 | sourceTree = ""; 166 | }; 167 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 171 | ); 172 | name = Products; 173 | sourceTree = ""; 174 | }; 175 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 179 | ); 180 | name = Products; 181 | sourceTree = ""; 182 | }; 183 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 184 | isa = PBXGroup; 185 | children = ( 186 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 187 | ); 188 | name = Products; 189 | sourceTree = ""; 190 | }; 191 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 192 | isa = PBXGroup; 193 | children = ( 194 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 195 | ); 196 | name = Products; 197 | sourceTree = ""; 198 | }; 199 | 00E356EF1AD99517003FC87E /* gitmonitor.iosTests */ = { 200 | isa = PBXGroup; 201 | children = ( 202 | 00E356F21AD99517003FC87E /* gitmonitor.iosTests.m */, 203 | 00E356F01AD99517003FC87E /* Supporting Files */, 204 | ); 205 | path = gitmonitor.iosTests; 206 | sourceTree = ""; 207 | }; 208 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | 00E356F11AD99517003FC87E /* Info.plist */, 212 | ); 213 | name = "Supporting Files"; 214 | sourceTree = ""; 215 | }; 216 | 139105B71AF99BAD00B5F7CC /* Products */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 220 | ); 221 | name = Products; 222 | sourceTree = ""; 223 | }; 224 | 139FDEE71B06529A00C62182 /* Products */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 228 | ); 229 | name = Products; 230 | sourceTree = ""; 231 | }; 232 | 13B07FAE1A68108700A75B9A /* gitmonitor.ios */ = { 233 | isa = PBXGroup; 234 | children = ( 235 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 236 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 237 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 238 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 239 | 13B07FB61A68108700A75B9A /* Info.plist */, 240 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 241 | 13B07FB71A68108700A75B9A /* main.m */, 242 | ); 243 | name = gitmonitor.ios; 244 | sourceTree = ""; 245 | }; 246 | 146834001AC3E56700842450 /* Products */ = { 247 | isa = PBXGroup; 248 | children = ( 249 | 146834041AC3E56700842450 /* libReact.a */, 250 | ); 251 | name = Products; 252 | sourceTree = ""; 253 | }; 254 | 78C398B11ACF4ADC00677621 /* Products */ = { 255 | isa = PBXGroup; 256 | children = ( 257 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 258 | ); 259 | name = Products; 260 | sourceTree = ""; 261 | }; 262 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 263 | isa = PBXGroup; 264 | children = ( 265 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 266 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 267 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 268 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 269 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 270 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 271 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 272 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 273 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 274 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 275 | ); 276 | name = Libraries; 277 | sourceTree = ""; 278 | }; 279 | 832341B11AAA6A8300B99B32 /* Products */ = { 280 | isa = PBXGroup; 281 | children = ( 282 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 283 | ); 284 | name = Products; 285 | sourceTree = ""; 286 | }; 287 | 83CBB9F61A601CBA00E9B192 = { 288 | isa = PBXGroup; 289 | children = ( 290 | 13B07FAE1A68108700A75B9A /* gitmonitor.ios */, 291 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 292 | 00E356EF1AD99517003FC87E /* gitmonitor.iosTests */, 293 | 83CBBA001A601CBA00E9B192 /* Products */, 294 | ); 295 | indentWidth = 2; 296 | sourceTree = ""; 297 | tabWidth = 2; 298 | }; 299 | 83CBBA001A601CBA00E9B192 /* Products */ = { 300 | isa = PBXGroup; 301 | children = ( 302 | 13B07F961A680F5B00A75B9A /* gitmonitor.ios.app */, 303 | 00E356EE1AD99517003FC87E /* gitmonitor.iosTests.xctest */, 304 | ); 305 | name = Products; 306 | sourceTree = ""; 307 | }; 308 | /* End PBXGroup section */ 309 | 310 | /* Begin PBXNativeTarget section */ 311 | 00E356ED1AD99517003FC87E /* gitmonitor.iosTests */ = { 312 | isa = PBXNativeTarget; 313 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "gitmonitor.iosTests" */; 314 | buildPhases = ( 315 | 00E356EA1AD99517003FC87E /* Sources */, 316 | 00E356EB1AD99517003FC87E /* Frameworks */, 317 | 00E356EC1AD99517003FC87E /* Resources */, 318 | ); 319 | buildRules = ( 320 | ); 321 | dependencies = ( 322 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 323 | ); 324 | name = gitmonitor.iosTests; 325 | productName = gitmonitor.iosTests; 326 | productReference = 00E356EE1AD99517003FC87E /* gitmonitor.iosTests.xctest */; 327 | productType = "com.apple.product-type.bundle.unit-test"; 328 | }; 329 | 13B07F861A680F5B00A75B9A /* gitmonitor.ios */ = { 330 | isa = PBXNativeTarget; 331 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "gitmonitor.ios" */; 332 | buildPhases = ( 333 | 13B07F871A680F5B00A75B9A /* Sources */, 334 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 335 | 13B07F8E1A680F5B00A75B9A /* Resources */, 336 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 337 | ); 338 | buildRules = ( 339 | ); 340 | dependencies = ( 341 | ); 342 | name = gitmonitor.ios; 343 | productName = "Hello World"; 344 | productReference = 13B07F961A680F5B00A75B9A /* gitmonitor.ios.app */; 345 | productType = "com.apple.product-type.application"; 346 | }; 347 | /* End PBXNativeTarget section */ 348 | 349 | /* Begin PBXProject section */ 350 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 351 | isa = PBXProject; 352 | attributes = { 353 | LastUpgradeCheck = 0610; 354 | ORGANIZATIONNAME = Facebook; 355 | TargetAttributes = { 356 | 00E356ED1AD99517003FC87E = { 357 | CreatedOnToolsVersion = 6.2; 358 | TestTargetID = 13B07F861A680F5B00A75B9A; 359 | }; 360 | }; 361 | }; 362 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "gitmonitor.ios" */; 363 | compatibilityVersion = "Xcode 3.2"; 364 | developmentRegion = English; 365 | hasScannedForEncodings = 0; 366 | knownRegions = ( 367 | en, 368 | Base, 369 | ); 370 | mainGroup = 83CBB9F61A601CBA00E9B192; 371 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 372 | projectDirPath = ""; 373 | projectReferences = ( 374 | { 375 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 376 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 377 | }, 378 | { 379 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 380 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 381 | }, 382 | { 383 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 384 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 385 | }, 386 | { 387 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 388 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 389 | }, 390 | { 391 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 392 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 393 | }, 394 | { 395 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 396 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 397 | }, 398 | { 399 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 400 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 401 | }, 402 | { 403 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 404 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 405 | }, 406 | { 407 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 408 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 409 | }, 410 | { 411 | ProductGroup = 146834001AC3E56700842450 /* Products */; 412 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 413 | }, 414 | ); 415 | projectRoot = ""; 416 | targets = ( 417 | 13B07F861A680F5B00A75B9A /* gitmonitor.ios */, 418 | 00E356ED1AD99517003FC87E /* gitmonitor.iosTests */, 419 | ); 420 | }; 421 | /* End PBXProject section */ 422 | 423 | /* Begin PBXReferenceProxy section */ 424 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 425 | isa = PBXReferenceProxy; 426 | fileType = archive.ar; 427 | path = libRCTActionSheet.a; 428 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 429 | sourceTree = BUILT_PRODUCTS_DIR; 430 | }; 431 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 432 | isa = PBXReferenceProxy; 433 | fileType = archive.ar; 434 | path = libRCTGeolocation.a; 435 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 436 | sourceTree = BUILT_PRODUCTS_DIR; 437 | }; 438 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 439 | isa = PBXReferenceProxy; 440 | fileType = archive.ar; 441 | path = libRCTImage.a; 442 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 443 | sourceTree = BUILT_PRODUCTS_DIR; 444 | }; 445 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 446 | isa = PBXReferenceProxy; 447 | fileType = archive.ar; 448 | path = libRCTNetwork.a; 449 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 450 | sourceTree = BUILT_PRODUCTS_DIR; 451 | }; 452 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 453 | isa = PBXReferenceProxy; 454 | fileType = archive.ar; 455 | path = libRCTVibration.a; 456 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 457 | sourceTree = BUILT_PRODUCTS_DIR; 458 | }; 459 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 460 | isa = PBXReferenceProxy; 461 | fileType = archive.ar; 462 | path = libRCTSettings.a; 463 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 464 | sourceTree = BUILT_PRODUCTS_DIR; 465 | }; 466 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 467 | isa = PBXReferenceProxy; 468 | fileType = archive.ar; 469 | path = libRCTWebSocket.a; 470 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 471 | sourceTree = BUILT_PRODUCTS_DIR; 472 | }; 473 | 146834041AC3E56700842450 /* libReact.a */ = { 474 | isa = PBXReferenceProxy; 475 | fileType = archive.ar; 476 | path = libReact.a; 477 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 478 | sourceTree = BUILT_PRODUCTS_DIR; 479 | }; 480 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 481 | isa = PBXReferenceProxy; 482 | fileType = archive.ar; 483 | path = libRCTLinking.a; 484 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 485 | sourceTree = BUILT_PRODUCTS_DIR; 486 | }; 487 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 488 | isa = PBXReferenceProxy; 489 | fileType = archive.ar; 490 | path = libRCTText.a; 491 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 492 | sourceTree = BUILT_PRODUCTS_DIR; 493 | }; 494 | /* End PBXReferenceProxy section */ 495 | 496 | /* Begin PBXResourcesBuildPhase section */ 497 | 00E356EC1AD99517003FC87E /* Resources */ = { 498 | isa = PBXResourcesBuildPhase; 499 | buildActionMask = 2147483647; 500 | files = ( 501 | ); 502 | runOnlyForDeploymentPostprocessing = 0; 503 | }; 504 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 505 | isa = PBXResourcesBuildPhase; 506 | buildActionMask = 2147483647; 507 | files = ( 508 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 509 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 510 | ); 511 | runOnlyForDeploymentPostprocessing = 0; 512 | }; 513 | /* End PBXResourcesBuildPhase section */ 514 | 515 | /* Begin PBXShellScriptBuildPhase section */ 516 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 517 | isa = PBXShellScriptBuildPhase; 518 | buildActionMask = 2147483647; 519 | files = ( 520 | ); 521 | inputPaths = ( 522 | ); 523 | name = "Bundle React Native code and images"; 524 | outputPaths = ( 525 | ); 526 | runOnlyForDeploymentPostprocessing = 0; 527 | shellPath = /bin/sh; 528 | shellScript = "../node_modules/react-native/packager/react-native-xcode.sh"; 529 | showEnvVarsInLog = 1; 530 | }; 531 | /* End PBXShellScriptBuildPhase section */ 532 | 533 | /* Begin PBXSourcesBuildPhase section */ 534 | 00E356EA1AD99517003FC87E /* Sources */ = { 535 | isa = PBXSourcesBuildPhase; 536 | buildActionMask = 2147483647; 537 | files = ( 538 | 00E356F31AD99517003FC87E /* gitmonitor.iosTests.m in Sources */, 539 | ); 540 | runOnlyForDeploymentPostprocessing = 0; 541 | }; 542 | 13B07F871A680F5B00A75B9A /* Sources */ = { 543 | isa = PBXSourcesBuildPhase; 544 | buildActionMask = 2147483647; 545 | files = ( 546 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 547 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 548 | ); 549 | runOnlyForDeploymentPostprocessing = 0; 550 | }; 551 | /* End PBXSourcesBuildPhase section */ 552 | 553 | /* Begin PBXTargetDependency section */ 554 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 555 | isa = PBXTargetDependency; 556 | target = 13B07F861A680F5B00A75B9A /* gitmonitor.ios */; 557 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 558 | }; 559 | /* End PBXTargetDependency section */ 560 | 561 | /* Begin PBXVariantGroup section */ 562 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 563 | isa = PBXVariantGroup; 564 | children = ( 565 | 13B07FB21A68108700A75B9A /* Base */, 566 | ); 567 | name = LaunchScreen.xib; 568 | path = gitmonitor.ios; 569 | sourceTree = ""; 570 | }; 571 | /* End PBXVariantGroup section */ 572 | 573 | /* Begin XCBuildConfiguration section */ 574 | 00E356F61AD99517003FC87E /* Debug */ = { 575 | isa = XCBuildConfiguration; 576 | buildSettings = { 577 | BUNDLE_LOADER = "$(TEST_HOST)"; 578 | FRAMEWORK_SEARCH_PATHS = ( 579 | "$(SDKROOT)/Developer/Library/Frameworks", 580 | "$(inherited)", 581 | ); 582 | GCC_PREPROCESSOR_DEFINITIONS = ( 583 | "DEBUG=1", 584 | "$(inherited)", 585 | ); 586 | INFOPLIST_FILE = gitmonitor.iosTests/Info.plist; 587 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 588 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 589 | PRODUCT_NAME = "$(TARGET_NAME)"; 590 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gitmonitor.ios.app/gitmonitor.ios"; 591 | }; 592 | name = Debug; 593 | }; 594 | 00E356F71AD99517003FC87E /* Release */ = { 595 | isa = XCBuildConfiguration; 596 | buildSettings = { 597 | BUNDLE_LOADER = "$(TEST_HOST)"; 598 | COPY_PHASE_STRIP = NO; 599 | FRAMEWORK_SEARCH_PATHS = ( 600 | "$(SDKROOT)/Developer/Library/Frameworks", 601 | "$(inherited)", 602 | ); 603 | INFOPLIST_FILE = gitmonitor.iosTests/Info.plist; 604 | IPHONEOS_DEPLOYMENT_TARGET = 8.2; 605 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 606 | PRODUCT_NAME = "$(TARGET_NAME)"; 607 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/gitmonitor.ios.app/gitmonitor.ios"; 608 | }; 609 | name = Release; 610 | }; 611 | 13B07F941A680F5B00A75B9A /* Debug */ = { 612 | isa = XCBuildConfiguration; 613 | buildSettings = { 614 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 615 | DEAD_CODE_STRIPPING = NO; 616 | HEADER_SEARCH_PATHS = ( 617 | "$(inherited)", 618 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 619 | "$(SRCROOT)/../node_modules/react-native/React/**", 620 | ); 621 | INFOPLIST_FILE = "gitmonitor.ios/Info.plist"; 622 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 623 | OTHER_LDFLAGS = "-ObjC"; 624 | PRODUCT_NAME = gitmonitor.ios; 625 | }; 626 | name = Debug; 627 | }; 628 | 13B07F951A680F5B00A75B9A /* Release */ = { 629 | isa = XCBuildConfiguration; 630 | buildSettings = { 631 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 632 | HEADER_SEARCH_PATHS = ( 633 | "$(inherited)", 634 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 635 | "$(SRCROOT)/../node_modules/react-native/React/**", 636 | ); 637 | INFOPLIST_FILE = "gitmonitor.ios/Info.plist"; 638 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 639 | OTHER_LDFLAGS = "-ObjC"; 640 | PRODUCT_NAME = gitmonitor.ios; 641 | }; 642 | name = Release; 643 | }; 644 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 645 | isa = XCBuildConfiguration; 646 | buildSettings = { 647 | ALWAYS_SEARCH_USER_PATHS = NO; 648 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 649 | CLANG_CXX_LIBRARY = "libc++"; 650 | CLANG_ENABLE_MODULES = YES; 651 | CLANG_ENABLE_OBJC_ARC = YES; 652 | CLANG_WARN_BOOL_CONVERSION = YES; 653 | CLANG_WARN_CONSTANT_CONVERSION = YES; 654 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 655 | CLANG_WARN_EMPTY_BODY = YES; 656 | CLANG_WARN_ENUM_CONVERSION = YES; 657 | CLANG_WARN_INT_CONVERSION = YES; 658 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 659 | CLANG_WARN_UNREACHABLE_CODE = YES; 660 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 661 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 662 | COPY_PHASE_STRIP = NO; 663 | ENABLE_STRICT_OBJC_MSGSEND = YES; 664 | GCC_C_LANGUAGE_STANDARD = gnu99; 665 | GCC_DYNAMIC_NO_PIC = NO; 666 | GCC_OPTIMIZATION_LEVEL = 0; 667 | GCC_PREPROCESSOR_DEFINITIONS = ( 668 | "DEBUG=1", 669 | "$(inherited)", 670 | ); 671 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 672 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 673 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 674 | GCC_WARN_UNDECLARED_SELECTOR = YES; 675 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 676 | GCC_WARN_UNUSED_FUNCTION = YES; 677 | GCC_WARN_UNUSED_VARIABLE = YES; 678 | HEADER_SEARCH_PATHS = ( 679 | "$(inherited)", 680 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 681 | "$(SRCROOT)/../node_modules/react-native/React/**", 682 | ); 683 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 684 | MTL_ENABLE_DEBUG_INFO = YES; 685 | ONLY_ACTIVE_ARCH = YES; 686 | SDKROOT = iphoneos; 687 | }; 688 | name = Debug; 689 | }; 690 | 83CBBA211A601CBA00E9B192 /* Release */ = { 691 | isa = XCBuildConfiguration; 692 | buildSettings = { 693 | ALWAYS_SEARCH_USER_PATHS = NO; 694 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 695 | CLANG_CXX_LIBRARY = "libc++"; 696 | CLANG_ENABLE_MODULES = YES; 697 | CLANG_ENABLE_OBJC_ARC = YES; 698 | CLANG_WARN_BOOL_CONVERSION = YES; 699 | CLANG_WARN_CONSTANT_CONVERSION = YES; 700 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 701 | CLANG_WARN_EMPTY_BODY = YES; 702 | CLANG_WARN_ENUM_CONVERSION = YES; 703 | CLANG_WARN_INT_CONVERSION = YES; 704 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 705 | CLANG_WARN_UNREACHABLE_CODE = YES; 706 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 707 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 708 | COPY_PHASE_STRIP = YES; 709 | ENABLE_NS_ASSERTIONS = NO; 710 | ENABLE_STRICT_OBJC_MSGSEND = YES; 711 | GCC_C_LANGUAGE_STANDARD = gnu99; 712 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 713 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 714 | GCC_WARN_UNDECLARED_SELECTOR = YES; 715 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 716 | GCC_WARN_UNUSED_FUNCTION = YES; 717 | GCC_WARN_UNUSED_VARIABLE = YES; 718 | HEADER_SEARCH_PATHS = ( 719 | "$(inherited)", 720 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 721 | "$(SRCROOT)/../node_modules/react-native/React/**", 722 | ); 723 | IPHONEOS_DEPLOYMENT_TARGET = 7.0; 724 | MTL_ENABLE_DEBUG_INFO = NO; 725 | SDKROOT = iphoneos; 726 | VALIDATE_PRODUCT = YES; 727 | }; 728 | name = Release; 729 | }; 730 | /* End XCBuildConfiguration section */ 731 | 732 | /* Begin XCConfigurationList section */ 733 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "gitmonitor.iosTests" */ = { 734 | isa = XCConfigurationList; 735 | buildConfigurations = ( 736 | 00E356F61AD99517003FC87E /* Debug */, 737 | 00E356F71AD99517003FC87E /* Release */, 738 | ); 739 | defaultConfigurationIsVisible = 0; 740 | defaultConfigurationName = Release; 741 | }; 742 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "gitmonitor.ios" */ = { 743 | isa = XCConfigurationList; 744 | buildConfigurations = ( 745 | 13B07F941A680F5B00A75B9A /* Debug */, 746 | 13B07F951A680F5B00A75B9A /* Release */, 747 | ); 748 | defaultConfigurationIsVisible = 0; 749 | defaultConfigurationName = Release; 750 | }; 751 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "gitmonitor.ios" */ = { 752 | isa = XCConfigurationList; 753 | buildConfigurations = ( 754 | 83CBBA201A601CBA00E9B192 /* Debug */, 755 | 83CBBA211A601CBA00E9B192 /* Release */, 756 | ); 757 | defaultConfigurationIsVisible = 0; 758 | defaultConfigurationName = Release; 759 | }; 760 | /* End XCConfigurationList section */ 761 | }; 762 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 763 | } 764 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios.xcodeproj/xcshareddata/xcschemes/gitmonitor.ios.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 75 | 77 | 83 | 84 | 85 | 86 | 87 | 88 | 94 | 96 | 102 | 103 | 104 | 105 | 107 | 108 | 111 | 112 | 113 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import "RCTRootView.h" 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | NSURL *jsCodeLocation; 19 | 20 | /** 21 | * Loading JavaScript code - uncomment the one you want. 22 | * 23 | * OPTION 1 24 | * Load from development server. Start the server from the repository root: 25 | * 26 | * $ npm start 27 | * 28 | * To run on device, change `localhost` to the IP address of your computer 29 | * (you can get this by typing `ifconfig` into the terminal and selecting the 30 | * `inet` value under `en0:`) and make sure your computer and iOS device are 31 | * on the same Wi-Fi network. 32 | */ 33 | 34 | jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"]; 35 | 36 | /** 37 | * OPTION 2 38 | * Load from pre-bundled file on disk. The static bundle is automatically 39 | * generated by "Bundle React Native code and images" build step. 40 | */ 41 | 42 | // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 43 | 44 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 45 | moduleName:@"gitmonitor.ios" 46 | initialProperties:nil 47 | launchOptions:launchOptions]; 48 | 49 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 50 | UIViewController *rootViewController = [UIViewController new]; 51 | rootViewController.view = rootView; 52 | self.window.rootViewController = rootViewController; 53 | [self.window makeKeyAndVisible]; 54 | return YES; 55 | } 56 | 57 | @end 58 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ios/gitmonitor.ios/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSAllowsArbitraryLoads 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /ios/gitmonitor.ios/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ios/gitmonitor.iosTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/gitmonitor.iosTests/gitmonitor.iosTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import "RCTLog.h" 14 | #import "RCTRootView.h" 15 | 16 | #define TIMEOUT_SECONDS 240 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface gitmonitor.iosTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation gitmonitor.iosTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /ios/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/ios/loader.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gitmonitor.ios", 3 | "version": "1.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node_modules/react-native/packager/packager.sh", 7 | "bundle": "react-native bundle --dev false --entry-file ./index.ios.js --bundle-output ./ios/main.jsbundle --platform ios" 8 | }, 9 | "dependencies": { 10 | "babel-core": "^5.8.34", 11 | "babel-loader": "^5.0.0", 12 | "babel-runtime": "^5.1.8", 13 | "lodash": "^4.2.1", 14 | "react-mixin": "^2.0.2", 15 | "react-native": "^0.18.1", 16 | "react-native-camera": "^0.3.8", 17 | "react-native-remote-push": "^1.0.1", 18 | "react-redux": "^3.1.0", 19 | "react-timer-mixin": "^0.13.3", 20 | "redux": "^3.0.3", 21 | "redux-logger": "^2.5.0", 22 | "redux-thunk": "^1.0.0", 23 | "tcomb-form-native": "^0.4.0", 24 | "webpack": "^1.12.11" 25 | }, 26 | "description": "An app that notifies you if you didn't push your code to remote", 27 | "main": "index.ios.js", 28 | "devDependencies": { 29 | "babel-core": "^5.8.38" 30 | }, 31 | "repository": { 32 | "type": "git", 33 | "url": "git+https://github.com/theotow/gitmonitor-ios.git" 34 | }, 35 | "author": "Manuel Villing ", 36 | "license": "MIT", 37 | "bugs": { 38 | "url": "https://github.com/theotow/gitmonitor-ios/issues" 39 | }, 40 | "homepage": "https://github.com/theotow/gitmonitor-ios#readme" 41 | } 42 | -------------------------------------------------------------------------------- /src/actions/RepoActions.js: -------------------------------------------------------------------------------- 1 | import { 2 | ReposConst 3 | } from '../reducer/Repos' 4 | import * as utils from '../utils/api' 5 | 6 | export function getList(iId) { 7 | return (dispatch, getState) => { 8 | dispatch({ 9 | type: ReposConst.REPO_LOADING 10 | }) 11 | return utils.list(getState().settings.endpoint, iId).then(response => response.json()).then((data) => { 12 | dispatch({ 13 | type: ReposConst.REPO_SUCCESS, 14 | payload: data 15 | }) 16 | }).catch(() => { 17 | alert('error getting List') 18 | dispatch({ 19 | type: AuthConst.REPO_ERROR 20 | }) 21 | }) 22 | } 23 | } 24 | 25 | export function toggleItem(id) { 26 | return { 27 | type: ReposConst.REPO_TOGGLE, 28 | payload: id 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/actions/SettingActions.js: -------------------------------------------------------------------------------- 1 | import { AsyncStorage } from 'react-native' 2 | 3 | import { SettingsConst } from '../reducer/Settings' 4 | import * as utils from '../utils/api' 5 | 6 | export function setToken(token) { 7 | return { 8 | type: SettingsConst.SET_TOKEN, 9 | payload: token, 10 | presist: true 11 | } 12 | } 13 | 14 | export function signup(){ 15 | return (dispatch, getState) => { 16 | return utils.install(getState().settings.endpoint, { 17 | "deviceToken": getState().settings.token, 18 | "deviceType": "ios" 19 | }).then(response => response.json()).then(function(data){ 20 | return dispatch({ 21 | type: SettingsConst.SET_USERID, 22 | payload: data.id, 23 | presist: true 24 | }) 25 | }) 26 | } 27 | } 28 | 29 | export function changeEndpoint(url){ 30 | return (dispatch, getState) => { 31 | return dispatch({ 32 | type: SettingsConst.SET_ENDPOINT, 33 | payload: { 34 | endpoint: url 35 | }, 36 | presist: true 37 | }) 38 | } 39 | } 40 | 41 | export function writeStore(){ 42 | return (dispatch, getState) => { 43 | return AsyncStorage.setItem(SettingsConst.SETTINGS, JSON.stringify(getState().settings)) 44 | } 45 | } 46 | 47 | export function readStore(){ 48 | return (dispatch, getState) => { 49 | return AsyncStorage.getItem(SettingsConst.SETTINGS).then(function(value){ 50 | if (value !== null){ 51 | return dispatch({ 52 | type: SettingsConst.SET_DATA, 53 | payload: JSON.parse(value) 54 | }) 55 | } 56 | }) 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/assets/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/theotow/gitmonitor-ios/031ebcc6ba8835d03a63fdfa17fa97b61cc7a30e/src/assets/loader.gif -------------------------------------------------------------------------------- /src/components/Button.js: -------------------------------------------------------------------------------- 1 | import React from "react-native"; 2 | import { STYLE } from '../constants' 3 | 4 | let { 5 | View, 6 | Text, 7 | Image, 8 | StatusBarIOS, 9 | TouchableOpacity, 10 | Component, 11 | AlertIOS, 12 | StyleSheet 13 | } = React; 14 | 15 | var styles = StyleSheet.create({ 16 | img: { 17 | width: STYLE.BTN_W, 18 | height: STYLE.BTN_H, 19 | }, 20 | imgWrapLeft: { 21 | width: STYLE.BTN_W, 22 | height: STYLE.BTN_H, 23 | backgroundColor: 'transparent', 24 | bottom: 0, 25 | left: 0, 26 | position: 'absolute', 27 | }, 28 | imgWrapRight: { 29 | width: STYLE.BTN_W, 30 | height: STYLE.BTN_H, 31 | backgroundColor: 'transparent', 32 | bottom: 0, 33 | right: 0, 34 | position: 'absolute', 35 | } 36 | }); 37 | 38 | export default class Button extends Component { 39 | 40 | _getStyle(left, right){ 41 | return (left) ? styles.imgWrapLeft : styles.imgWrapRight; 42 | } 43 | 44 | render() { 45 | 46 | const { 47 | image, 48 | onClick, 49 | left 50 | } = this.props; 51 | 52 | return ( 53 | 54 | 55 | 56 | ); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/components/Camera.js: -------------------------------------------------------------------------------- 1 | import React from "react-native" 2 | import CameraModule from 'react-native-camera' 3 | 4 | 5 | let { 6 | View, 7 | Text, 8 | Image, 9 | StatusBarIOS, 10 | TouchableOpacity, 11 | Component, 12 | AlertIOS, 13 | StyleSheet 14 | } = React 15 | 16 | var styles = StyleSheet.create({ 17 | cameraInner: { 18 | position: 'absolute', 19 | top: 30, 20 | bottom: 0, 21 | left: 0, 22 | right: 0, 23 | }, 24 | img: { 25 | height: 196, 26 | width: 196, 27 | backgroundColor: 'transparent', 28 | }, 29 | imgWrap: { 30 | flex: 1, 31 | alignItems: 'center', 32 | justifyContent: 'center', 33 | backgroundColor: 'transparent', 34 | }, 35 | camera: { 36 | flex: 1, 37 | } 38 | }) 39 | 40 | export default class Camera extends Component { 41 | constructor() { 42 | super() 43 | this.state = {cameraType: CameraModule.constants.Type.back} 44 | } 45 | 46 | render() { 47 | return ( 48 | 49 | 55 | 56 | 57 | 58 | 59 | 60 | ) 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/components/Header.js: -------------------------------------------------------------------------------- 1 | import React, { PropTypes } from "react-native"; 2 | import { STYLE } from '../constants' 3 | 4 | let { 5 | View, 6 | Text, 7 | Image, 8 | StatusBarIOS, 9 | TouchableOpacity, 10 | Component, 11 | AlertIOS, 12 | StyleSheet 13 | } = React; 14 | 15 | var styles = { 16 | header: { 17 | borderTopLeftRadius: STYLE.BORDER_RADIUS, 18 | borderTopRightRadius: STYLE.BORDER_RADIUS, 19 | borderTopWidth: STYLE.BORDER_RADIUS, 20 | borderColor: '#FFF147', 21 | height: 60, 22 | position: 'absolute', 23 | right: 0, 24 | top: 18, 25 | left: 0, 26 | flex: 1, 27 | backgroundColor: '#FFF147', 28 | }, 29 | headerInner: { 30 | paddingLeft: STYLE.PADDING, 31 | flex: 1, 32 | backgroundColor: 'transparent', 33 | flexDirection: 'row', 34 | marginTop: -STYLE.BORDER_RADIUS, 35 | alignItems: 'center', 36 | justifyContent: 'space-between', 37 | paddingRight: STYLE.PADDING, 38 | }, 39 | img: { 40 | width: 22, 41 | height: 5, 42 | }, 43 | imgWrap: { 44 | width: 32, 45 | height: 20, 46 | padding: 5, 47 | top: 0, 48 | right: 0, 49 | position: 'absolute', 50 | }, 51 | left: { 52 | flex: 1, 53 | }, 54 | center: { 55 | alignItems: 'center', 56 | flex: 1, 57 | justifyContent: 'center', 58 | }, 59 | right: { 60 | width: 50, 61 | right: 0, 62 | padding: 8, 63 | opacity: 1 64 | }, 65 | txt: { 66 | fontFamily: STYLE.FONT_LATO, 67 | letterSpacing: 1.5, 68 | fontWeight: 'bold', 69 | fontSize: 22, 70 | } 71 | }; 72 | 73 | class Header extends Component { 74 | 75 | hide(style, bool) { 76 | if(bool) return { 77 | ...style, 78 | opacity: 0 79 | } 80 | return style 81 | } 82 | 83 | render() { 84 | 85 | const { 86 | props: { 87 | hideSettings, 88 | goSettings 89 | }, 90 | hide 91 | } = this 92 | 93 | return ( 94 | 95 | 96 | 97 | GITMONITOR 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | ); 107 | } 108 | } 109 | 110 | Header.propTypes = { 111 | hideSettings: PropTypes.bool.isRequired, 112 | goSettings: PropTypes.func 113 | } 114 | 115 | export default Header 116 | -------------------------------------------------------------------------------- /src/components/Item.js: -------------------------------------------------------------------------------- 1 | import React from 'react-native'; 2 | import { trimBranch } from '../utils/helper'; 3 | import _ from 'lodash'; 4 | import { STYLE } from '../constants' 5 | 6 | let { 7 | View, 8 | Text, 9 | Image, 10 | ScrollView, 11 | TouchableOpacity, 12 | TouchableHighlight, 13 | Component, 14 | AlertIOS, 15 | StyleSheet, 16 | PropTypes 17 | } = React; 18 | 19 | const styles = { 20 | itemWrap: { 21 | paddingLeft: STYLE.PADDING, 22 | paddingTop: STYLE.PADDING, 23 | paddingRight: STYLE.PADDING, 24 | flex: 1, 25 | }, 26 | itemWrapInner: { 27 | position: 'relative', 28 | overflow: 'hidden' 29 | }, 30 | branch: { 31 | position: 'absolute', 32 | top: 0, 33 | right: 0, 34 | backgroundColor: STYLE.YELLOW 35 | }, 36 | branchTxt: { 37 | fontFamily: STYLE.FONT_LATO, 38 | fontWeight: 'bold', 39 | fontSize: 12, 40 | letterSpacing: 1.2, 41 | color: 'white', 42 | padding: 3 43 | }, 44 | boxWrap: { 45 | paddingLeft: 10, 46 | paddingRight: 10 47 | }, 48 | box: { 49 | backgroundColor: STYLE.BLACK, 50 | borderBottomLeftRadius: 10, 51 | borderBottomRightRadius: 10, 52 | borderBottomWidth: 10, 53 | borderBottomColor: STYLE.BLACK, 54 | paddingLeft: 10, 55 | paddingTop: 10, 56 | paddingRight: 10 57 | }, 58 | boxTxt: { 59 | fontFamily: STYLE.FONT_DROID, 60 | overflow: 'hidden', 61 | fontSize: 10, 62 | color: 'white', 63 | lineHeight: 12, 64 | height: 12 65 | }, 66 | item: { 67 | backgroundColor: '#FFF147', 68 | height: 60, 69 | padding: 10, 70 | borderWidth: 10, 71 | borderColor: '#FFF147', 72 | borderRadius: 10, 73 | flex: 1, 74 | }, 75 | itemTxt: { 76 | fontSize: 16, 77 | fontFamily: STYLE.FONT_LATO, 78 | fontWeight: 'bold', 79 | letterSpacing: 1.2, 80 | } 81 | } 82 | 83 | class ItemList extends Component { 84 | 85 | _allBranches(branches){ 86 | var trimed = _.map(branches, function(branch){ 87 | return trimBranch(branch) 88 | }) 89 | return trimed.join(', '); 90 | } 91 | 92 | _getStyle(what, styles, yesNo){ 93 | let extend = {}; 94 | switch (what) { 95 | case 'box': 96 | let color = (yesNo) ? '#FFFFFF' : '#000000'; 97 | _.extend(extend, styles, { 98 | backgroundColor: color, 99 | borderBottomColor: color 100 | }) 101 | break; 102 | case 'boxTxt': 103 | _.extend(extend, styles, { 104 | color: (yesNo) ? 'black' : 'white' 105 | }) 106 | break; 107 | case 'wrap': 108 | if(yesNo){ 109 | _.extend(extend, _.omit(styles, 'height')) 110 | }else{ 111 | _.extend(extend, styles, { 112 | height: 0 113 | }) 114 | } 115 | break; 116 | } 117 | return extend; 118 | } 119 | 120 | render() { 121 | 122 | const { 123 | props: { 124 | name, 125 | branch, 126 | author, 127 | message, 128 | status, 129 | id, 130 | branches, 131 | reversed, 132 | clickHandler, 133 | open 134 | }, 135 | _allBranches, 136 | _getStyle 137 | } = this; 138 | 139 | return ( 140 | clickHandler(id)}> 141 | 142 | 143 | 144 | {name} 145 | 146 | 147 | {trimBranch(branch)} 148 | 149 | 150 | 151 | Author: {author} 152 | Commitmsg: {message} 153 | Status: Ahead {status.ahead} / Behind {status.behind} 154 | Branches: {_allBranches(branches)} 155 | 156 | 157 | 158 | 159 | 160 | ); 161 | } 162 | } 163 | 164 | ItemList.propTypes = { 165 | name: PropTypes.string.isRequired, 166 | branch: PropTypes.string.isRequired, 167 | author: PropTypes.string.isRequired, 168 | message: PropTypes.string.isRequired, 169 | status: PropTypes.object.isRequired, 170 | id: PropTypes.string.isRequired, 171 | branches: PropTypes.array.isRequired, 172 | reversed: PropTypes.bool.isRequired, 173 | clickHandler: PropTypes.func.isRequired, 174 | open: PropTypes.bool.isRequired 175 | } 176 | 177 | export default ItemList 178 | -------------------------------------------------------------------------------- /src/components/ItemList.js: -------------------------------------------------------------------------------- 1 | import React from 'react-native'; 2 | import _ from 'lodash'; 3 | import Item from './Item'; 4 | import { STYLE } from '../constants' 5 | 6 | let { 7 | View, 8 | Text, 9 | Image, 10 | ScrollView, 11 | TouchableOpacity, 12 | Component, 13 | AlertIOS, 14 | StyleSheet 15 | } = React; 16 | 17 | const styles = { 18 | scrollView: { 19 | top: 78, 20 | bottom: 70, 21 | position: 'absolute', 22 | left: 0, 23 | right: 0, 24 | }, 25 | unpushed: { 26 | backgroundColor: 'black', 27 | paddingBottom: STYLE.PADDING 28 | }, 29 | icon: { 30 | height: 30, 31 | width: 30 32 | }, 33 | loading: { 34 | flex: 1, 35 | padding: STYLE.PADDING, 36 | alignItems: 'center' 37 | }, 38 | noRepos: { 39 | padding: STYLE.PADDING 40 | }, 41 | noReposTxt: { 42 | textAlign: 'center', 43 | fontSize: 16, 44 | fontFamily: STYLE.FONT_LATO 45 | } 46 | }; 47 | 48 | export default class ItemList extends Component { 49 | 50 | _pushedItems(items){ 51 | return _.filter(items, {isClean: true}); 52 | } 53 | 54 | _hidePad(rule, style){ 55 | if(!rule) return style 56 | return _.extend({}, _.omit(style, 'paddingBottom')) 57 | } 58 | 59 | _unPushedItems(items){ 60 | return _.filter(items, {isClean: false}).map(function(item){ 61 | return { 62 | ...item, 63 | reversed: true 64 | } 65 | }); 66 | } 67 | 68 | _mapItems(items, clickHandler){ 69 | let that = this; 70 | return _.map(items, (item, key) => { 71 | return 83 | }); 84 | } 85 | 86 | _list(){ 87 | 88 | const { 89 | props: { 90 | items, 91 | clickHandler 92 | }, 93 | _pushedItems, 94 | _unPushedItems, 95 | _hidePad, 96 | _mapItems 97 | } = this; 98 | let unpushedItems = _unPushedItems(items); 99 | let pushedItems = _pushedItems(items); 100 | 101 | if(unpushedItems.length > 0 || pushedItems.length > 0){ 102 | return ( 103 | 104 | 105 | {_mapItems(unpushedItems, clickHandler)} 106 | 107 | {_mapItems(pushedItems, clickHandler)} 108 | 109 | ) 110 | }else{ 111 | return You didnt add any Repo yet :( 112 | } 113 | } 114 | 115 | render() { 116 | 117 | return ( 118 | 122 | {(!this.props.loading) 123 | ? this._list() 124 | : 125 | 129 | Updating repos... 130 | 131 | } 132 | 133 | ); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /src/components/Router.js: -------------------------------------------------------------------------------- 1 | import React, { Navigator } from 'react-native'; 2 | import ListView from '../views/ListView'; 3 | import QrView from '../views/QrView'; 4 | import SettingsView from '../views/SettingsView'; 5 | import { ROUTER } from '../constants' 6 | 7 | export default function(route, navigator){ 8 | switch(route.name){ 9 | case ROUTER.LIST: 10 | return ( 11 | 12 | ) 13 | break; 14 | case ROUTER.QR: 15 | return ( 16 | 17 | ) 18 | break; 19 | case ROUTER.SETTINGS: 20 | return ( 21 | 22 | ) 23 | break; 24 | } 25 | } 26 | 27 | export function configureScene(route){ 28 | return Navigator.SceneConfigs.FadeIn; 29 | } 30 | -------------------------------------------------------------------------------- /src/constants.js: -------------------------------------------------------------------------------- 1 | 2 | export const STYLE = { 3 | BTN_H: 108, 4 | BTN_W: 108, 5 | PADDING: 20, 6 | FONT_LATO: 'Lato', 7 | FONT_DROID: 'Droid Sans Mono', 8 | BORDER_RADIUS: 15, 9 | YELLOW: '#8D8D8D', 10 | BLACK: '#000000' 11 | } 12 | 13 | export const ROUTER = { 14 | LIST: 'ListView', 15 | QR: 'QrView', 16 | SETTINGS: 'SettingsView' 17 | } 18 | -------------------------------------------------------------------------------- /src/containers/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component, Navigator, AlertIOS, PushNotificationIOS } from 'react-native' 2 | import RemotePushIOS from 'react-native-remote-push' 3 | import { connect } from 'react-redux/native'; 4 | import TimerMixin from 'react-timer-mixin'; 5 | import reactMixin from 'react-mixin'; 6 | 7 | import * as SettingsActions from '../actions/SettingActions' 8 | import * as RepoActions from '../actions/RepoActions' 9 | import Router from '../components/Router' 10 | import { SettingsConst } from '../reducer/Settings' 11 | import { ROUTER } from '../constants' 12 | 13 | class App extends Component { 14 | 15 | componentWillMount() { 16 | let that = this; 17 | 18 | // init store 19 | this.props.dispatch(SettingsActions.readStore()).then(function(){ 20 | // trigger dialog for permission 21 | RemotePushIOS.requestPermissions(function(err, data) {}) 22 | }) 23 | 24 | // get token 25 | PushNotificationIOS.addEventListener('register', function(devicetoken){ 26 | console.log('set token') 27 | that.props.dispatch(SettingsActions.setToken(devicetoken)) 28 | if(that.props.settings.userId !== null && 29 | that.props.settings.token !== null){ 30 | console.log('get list') 31 | that.props.dispatch(RepoActions.getList(that.props.settings.userId)); 32 | }else{ 33 | console.log('signup') 34 | that.props.dispatch(SettingsActions.signup()).then(function(){ 35 | console.log('get list') 36 | that.props.dispatch(RepoActions.getList(that.props.settings.userId)); 37 | }).catch(() => { 38 | alert('signup error') 39 | }) 40 | } 41 | }) 42 | 43 | // PushNotificationIOS.addEventListener('notification', this._onNotification) 44 | } 45 | 46 | componentWillUnmount() { 47 | alert('unmount') 48 | } 49 | 50 | componentDidMount() { 51 | let inter = this.setInterval(function(){ 52 | if(this.props.settings.userId !== null && 53 | this.props.settings.token !== null){ 54 | console.log('get list interval') 55 | 56 | this.props.dispatch(RepoActions.getList(this.props.settings.userId)).catch(function(){ 57 | clearInterval(inter) 58 | }) 59 | } 60 | }.bind(this), 5000); 61 | } 62 | 63 | _onNotification(notification) { 64 | // TODO: handle inline notifications 65 | } 66 | 67 | render() { 68 | return ( 69 | 74 | ) 75 | } 76 | } 77 | 78 | function mapStateToProps(state) { 79 | return { 80 | settings: state.settings 81 | } 82 | } 83 | 84 | reactMixin(App.prototype, TimerMixin); 85 | 86 | export default connect(mapStateToProps)(App) 87 | -------------------------------------------------------------------------------- /src/reducer.js: -------------------------------------------------------------------------------- 1 | import { combineReducers, applyMiddleware, createStore } from 'redux' 2 | import * as Repos from './reducer/Repos' 3 | import * as Settings from './reducer/Settings' 4 | 5 | export default combineReducers({ 6 | repos: Repos.Reducer, 7 | settings: Settings.Reducer 8 | }) 9 | -------------------------------------------------------------------------------- /src/reducer/Repos.js: -------------------------------------------------------------------------------- 1 | import mirror from '../utils/mirror' 2 | 3 | const initialState = { 4 | repos: [], 5 | loading: false 6 | } 7 | 8 | export const ReposConst = mirror([ 9 | 'REPO_SUCCESS', 10 | 'REPO_LOADING', 11 | 'REPO_TOGGLE', 12 | 'REPO_ERROR' 13 | ]) 14 | 15 | export function Reducer(state = initialState, action) { 16 | switch (action.type) { 17 | case ReposConst.REPO_TOGGLE: 18 | let mappedRepos = _.map(state.repos, function(item){ 19 | return (item.id === action.payload) ? { 20 | ...item, 21 | open: !item.open 22 | } : item 23 | }) 24 | return { 25 | ...state, 26 | repos: mappedRepos 27 | } 28 | case ReposConst.REPO_SUCCESS: 29 | let mappedReposS = _.map(action.payload, function(item){ 30 | return { 31 | ...item, 32 | open: false 33 | } 34 | }) 35 | return { 36 | loading: false, 37 | repos: mappedReposS 38 | } 39 | case ReposConst.REPO_ERROR: 40 | return { 41 | loading: false, 42 | repos: state.repos 43 | } 44 | case ReposConst.REPO_LOADING: 45 | return { 46 | loading: true, 47 | repos: state.repos 48 | } 49 | default: 50 | return state 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/reducer/Settings.js: -------------------------------------------------------------------------------- 1 | import mirror from '../utils/mirror' 2 | 3 | const initialState = { 4 | endpoint: 'http://dockerhost.dev:3000', 5 | token: null, 6 | userId: null 7 | } 8 | 9 | export const SettingsConst = mirror([ 10 | 'SET_TOKEN', 11 | 'SET_DATA', 12 | 'SET_USERID', 13 | 'SETTINGS', 14 | 'SET_ENDPOINT' 15 | ]) 16 | 17 | export function Reducer(state = initialState, action) { 18 | switch (action.type) { 19 | case SettingsConst.SET_USERID: 20 | return { 21 | ...state, 22 | userId: action.payload 23 | } 24 | case SettingsConst.SET_DATA: 25 | return action.payload 26 | case SettingsConst.SET_ENDPOINT: 27 | return { 28 | ...state, 29 | endpoint: action.payload.endpoint 30 | } 31 | case SettingsConst.SET_TOKEN: 32 | return { 33 | ...state, 34 | token: action.payload 35 | } 36 | default: 37 | return state 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/root.js: -------------------------------------------------------------------------------- 1 | import React from 'react-native' 2 | import { Provider } from 'react-redux/native' 3 | 4 | import App from './containers/App' 5 | import storeSetup from './store' 6 | 7 | const store = storeSetup() 8 | 9 | class Root extends React.Component { 10 | render () { 11 | return ( 12 | 13 | {() => } 14 | 15 | ) 16 | } 17 | } 18 | 19 | export default Root 20 | -------------------------------------------------------------------------------- /src/store.js: -------------------------------------------------------------------------------- 1 | import { combineReducers, applyMiddleware, createStore } from 'redux' 2 | import thunkMiddleware from 'redux-thunk' 3 | import createLogger from 'redux-logger' 4 | import rootReducer from './reducer' 5 | import * as SettingActions from './actions/SettingActions' 6 | 7 | 8 | const logger = createLogger(); 9 | 10 | const presist = store => next => action => { 11 | if(action.presist){ 12 | next(action) 13 | return store.dispatch(SettingActions.writeStore()) 14 | } 15 | return next(action) 16 | } 17 | 18 | 19 | const createStoreWithMiddleware = applyMiddleware(thunkMiddleware, presist)(createStore) 20 | 21 | export default function storeSetup(initState) { 22 | return createStoreWithMiddleware(rootReducer, initState) 23 | } 24 | -------------------------------------------------------------------------------- /src/utils/api.js: -------------------------------------------------------------------------------- 1 | export function install(endpoint, data){ 2 | return fetch(endpoint+ '/api/installations', { 3 | method: 'post', 4 | body: JSON.stringify(data), 5 | headers: { 6 | 'Accept': 'application/json', 7 | 'Content-Type': 'application/json' 8 | } 9 | }) 10 | } 11 | 12 | export function link(endpoint, iId, rId){ 13 | return fetch(endpoint+ '/api/installations/'+ iId +'/repos/rel/' + rId, { 14 | method: 'put', 15 | headers: { 16 | 'Accept': 'application/json', 17 | 'Content-Type': 'application/json' 18 | } 19 | }) 20 | } 21 | 22 | export function list(endpoint, iId){ 23 | return fetch(endpoint+ '/api/installations/'+ iId +'/repos', { 24 | method: 'get', 25 | headers: { 26 | 'Accept': 'application/json', 27 | 'Content-Type': 'application/json' 28 | } 29 | }) 30 | } 31 | -------------------------------------------------------------------------------- /src/utils/helper.js: -------------------------------------------------------------------------------- 1 | export function trimBranch(branch){ 2 | var parts = branch.split('/'); 3 | return parts[parts.length - 1]; 4 | } 5 | -------------------------------------------------------------------------------- /src/utils/mirror.js: -------------------------------------------------------------------------------- 1 | import _ from 'lodash'; 2 | 3 | export default function mirror(obj){ 4 | const out = {}; 5 | _.forEach(obj, function(key){ 6 | out[key] = key; 7 | }); 8 | return out; 9 | } 10 | -------------------------------------------------------------------------------- /src/utils/stylesForm.js: -------------------------------------------------------------------------------- 1 | var LABEL_COLOR = '#000000'; 2 | var INPUT_COLOR = '#000000'; 3 | var ERROR_COLOR = '#a94442'; 4 | var HELP_COLOR = '#999999'; 5 | var BORDER_COLOR = '#000000'; 6 | var DISABLED_COLOR = '#777777'; 7 | var DISABLED_BACKGROUND_COLOR = '#eeeeee'; 8 | var FONT_SIZE = 17; 9 | var FONT_WEIGHT = '500'; 10 | 11 | var stylesheetForm = Object.freeze({ 12 | fieldset: {}, 13 | // the style applied to the container of all inputs 14 | formGroup: { 15 | normal: { 16 | marginBottom: 10 17 | }, 18 | error: { 19 | marginBottom: 10 20 | } 21 | }, 22 | controlLabel: { 23 | normal: { 24 | color: LABEL_COLOR, 25 | fontSize: FONT_SIZE, 26 | marginBottom: 7, 27 | fontFamily: 'Lato', 28 | fontWeight: FONT_WEIGHT 29 | }, 30 | // the style applied when a validation error occours 31 | error: { 32 | color: ERROR_COLOR, 33 | fontSize: FONT_SIZE, 34 | marginBottom: 7, 35 | fontWeight: FONT_WEIGHT 36 | } 37 | }, 38 | helpBlock: { 39 | normal: { 40 | color: HELP_COLOR, 41 | fontSize: FONT_SIZE, 42 | marginBottom: 2 43 | }, 44 | // the style applied when a validation error occours 45 | error: { 46 | color: HELP_COLOR, 47 | fontSize: FONT_SIZE, 48 | marginBottom: 2 49 | } 50 | }, 51 | errorBlock: { 52 | fontSize: FONT_SIZE, 53 | marginBottom: 2, 54 | color: ERROR_COLOR 55 | }, 56 | textbox: { 57 | normal: { 58 | color: INPUT_COLOR, 59 | fontSize: FONT_SIZE, 60 | height: 36, 61 | padding: 7, 62 | borderRadius: 4, 63 | borderColor: BORDER_COLOR, 64 | borderWidth: 2, 65 | marginBottom: 5 66 | }, 67 | // the style applied when a validation error occours 68 | error: { 69 | color: INPUT_COLOR, 70 | fontSize: FONT_SIZE, 71 | height: 36, 72 | padding: 7, 73 | borderRadius: 4, 74 | borderColor: ERROR_COLOR, 75 | borderWidth: 1, 76 | marginBottom: 5 77 | }, 78 | // the style applied when the textbox is not editable 79 | notEditable: { 80 | fontSize: FONT_SIZE, 81 | height: 36, 82 | padding: 7, 83 | borderRadius: 4, 84 | borderColor: BORDER_COLOR, 85 | borderWidth: 1, 86 | marginBottom: 5, 87 | color: DISABLED_COLOR, 88 | backgroundColor: DISABLED_BACKGROUND_COLOR 89 | } 90 | }, 91 | checkbox: { 92 | normal: { 93 | marginBottom: 4 94 | }, 95 | // the style applied when a validation error occours 96 | error: { 97 | marginBottom: 4 98 | } 99 | }, 100 | select: { 101 | normal: { 102 | marginBottom: 4 103 | }, 104 | // the style applied when a validation error occours 105 | error: { 106 | marginBottom: 4 107 | } 108 | }, 109 | datepicker: { 110 | normal: { 111 | marginBottom: 4 112 | }, 113 | // the style applied when a validation error occours 114 | error: { 115 | marginBottom: 4 116 | } 117 | } 118 | }); 119 | 120 | export default stylesheetForm 121 | -------------------------------------------------------------------------------- /src/views/ListView.js: -------------------------------------------------------------------------------- 1 | import React from 'react-native'; 2 | import { connect } from 'react-redux/native'; 3 | 4 | import Header from '../components/Header'; 5 | import Button from '../components/Button'; 6 | import Camera from '../components/Camera'; 7 | import ItemList from '../components/ItemList'; 8 | 9 | import * as RepoActions from '../actions/RepoActions' 10 | import { ROUTER } from '../constants' 11 | 12 | let { 13 | View, 14 | Text, 15 | Image, 16 | StatusBarIOS, 17 | TouchableOpacity, 18 | Component, 19 | StyleSheet 20 | } = React; 21 | 22 | var styles = StyleSheet.create({ 23 | container: { 24 | flex: 1, 25 | flexDirection: 'column' 26 | } 27 | }); 28 | 29 | class ListView extends Component { 30 | 31 | _goQr(){ 32 | this.props.navigator.replace({name: ROUTER.QR}); 33 | } 34 | 35 | _goSettings(){ 36 | this.props.navigator.replace({name: ROUTER.SETTINGS}); 37 | } 38 | 39 | _toggleRepo(id){ 40 | this.props.dispatch(RepoActions.toggleItem(id)); 41 | } 42 | 43 | componentWillMount() { 44 | if(this.props.settings.userId !== null && 45 | this.props.settings.token !== null){ 46 | this.props.dispatch(RepoActions.getList(this.props.settings.userId)); 47 | } 48 | } 49 | 50 | render() { 51 | 52 | const { 53 | props: { 54 | repos 55 | }, 56 | _toggleRepo 57 | } = this 58 | 59 | return ( 60 | 61 | 62 |
63 |