├── .buckconfig ├── .editorconfig ├── .eslintrc.js ├── .gitattributes ├── .gitignore ├── .prettierrc.js ├── .watchmanconfig ├── App.tsx ├── README.md ├── __tests__ └── App-test.tsx ├── android ├── app │ ├── _BUCK │ ├── build.gradle │ ├── build_defs.bzl │ ├── debug.keystore │ ├── proguard-rules.pro │ └── src │ │ ├── debug │ │ ├── AndroidManifest.xml │ │ └── java │ │ │ └── com │ │ │ └── cachepodsdemo │ │ │ └── ReactNativeFlipper.java │ │ └── main │ │ ├── AndroidManifest.xml │ │ ├── java │ │ └── com │ │ │ └── cachepodsdemo │ │ │ ├── MainActivity.java │ │ │ └── MainApplication.java │ │ └── res │ │ ├── mipmap-hdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-mdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ ├── mipmap-xxxhdpi │ │ ├── ic_launcher.png │ │ └── ic_launcher_round.png │ │ └── values │ │ ├── strings.xml │ │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── settings.gradle ├── app.json ├── babel.config.js ├── index.js ├── ios ├── CachePodsDemo.xcodeproj │ ├── project.pbxproj │ └── xcshareddata │ │ └── xcschemes │ │ └── CachePodsDemo.xcscheme ├── CachePodsDemo.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── CachePodsDemo │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Info.plist │ ├── LaunchScreen.storyboard │ └── main.m ├── CachePodsDemoTests │ ├── CachePodsDemoTests.m │ └── Info.plist ├── Gemfile ├── Gemfile.lock ├── Podfile ├── Podfile.lock └── fastlane │ ├── Appfile │ ├── Fastfile │ └── README.md ├── metro.config.js ├── package.json ├── samples └── azure_pipelines_ios.yml ├── tsconfig.json └── yarn.lock /.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Windows files 2 | [*.bat] 3 | end_of_line = crlf 4 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Windows files should use crlf line endings 2 | # https://help.github.com/articles/dealing-with-line-endings/ 3 | *.bat text eol=crlf 4 | -------------------------------------------------------------------------------- /.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 | 24 | # Android/IntelliJ 25 | # 26 | build/ 27 | .idea 28 | .gradle 29 | local.properties 30 | *.iml 31 | 32 | # node.js 33 | # 34 | node_modules/ 35 | npm-debug.log 36 | yarn-error.log 37 | 38 | # BUCK 39 | buck-out/ 40 | \.buckd/ 41 | *.keystore 42 | !debug.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | /ios/*.zip -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | arrowParens: 'avoid', 7 | }; 8 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /App.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * Generated with the TypeScript template 6 | * https://github.com/react-native-community/react-native-template-typescript 7 | * 8 | * @format 9 | */ 10 | 11 | import React from 'react'; 12 | import { 13 | SafeAreaView, 14 | ScrollView, 15 | StatusBar, 16 | StyleSheet, 17 | Text, 18 | useColorScheme, 19 | View, 20 | } from 'react-native'; 21 | 22 | import { 23 | Colors, 24 | DebugInstructions, 25 | Header, 26 | LearnMoreLinks, 27 | ReloadInstructions, 28 | } from 'react-native/Libraries/NewAppScreen'; 29 | 30 | const Section: React.FC<{ 31 | title: string; 32 | }> = ({children, title}) => { 33 | const isDarkMode = useColorScheme() === 'dark'; 34 | return ( 35 | 36 | 43 | {title} 44 | 45 | 52 | {children} 53 | 54 | 55 | ); 56 | }; 57 | 58 | const App = () => { 59 | const isDarkMode = useColorScheme() === 'dark'; 60 | 61 | const backgroundStyle = { 62 | backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, 63 | }; 64 | 65 | return ( 66 | 67 | 68 | 71 |
72 | 76 |
77 | Edit App.tsx to change this 78 | screen and then come back to see your edits. 79 |
80 |
81 | 82 |
83 |
84 | 85 |
86 |
87 | Read the docs to discover what to do next: 88 |
89 | 90 |
91 | 92 | 93 | ); 94 | }; 95 | 96 | const styles = StyleSheet.create({ 97 | sectionContainer: { 98 | marginTop: 32, 99 | paddingHorizontal: 24, 100 | }, 101 | sectionTitle: { 102 | fontSize: 24, 103 | fontWeight: '600', 104 | }, 105 | sectionDescription: { 106 | marginTop: 8, 107 | fontSize: 18, 108 | fontWeight: '400', 109 | }, 110 | highlight: { 111 | fontWeight: '700', 112 | }, 113 | }); 114 | 115 | export default App; 116 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Reduce React Native iOS build times 2 | 3 | ## Introduction 4 | 5 | Amount of code in pods can be huge. Pods don’t change often. On CI, all pods are compiled over and over again, which is very time intensive. What if we compile Pods once and use the result over and over again? This repo contains a demo how to accomplish this. 6 | 7 | Based on [this blogpost](https://dev.to/retyui/react-native-how-speed-up-ios-build-4x-using-cache-pods-597c) 8 | 9 | ## Demo 10 | 11 | - clone this repo 12 | - run `yarn install` 13 | - `cd ios` 14 | - run `pod install` 15 | - run `gem install` (?) 16 | - run `bundle exec fastlane ios cached_build` for first time 17 | - check build time, and notice existens of folder `cached_derived_data` 18 | - run `bundle exec fastlane ios cached_build` again 19 | - check build time 20 | 21 | If everything worked well, you'see a drastically smaller build time the second time. 22 | 23 | First build, without cache: 24 | ``` 25 | +------+------------------+-------------+ 26 | | fastlane summary | 27 | +------+------------------+-------------+ 28 | | Step | Action | Time (in s) | 29 | +------+------------------+-------------+ 30 | | 1 | default_platform | 0 | 31 | | 2 | gym | 384 | 32 | +------+------------------+-------------+ 33 | ``` 34 | 35 | Second build: 36 | ``` 37 | +------+------------------+-------------+ 38 | | fastlane summary | 39 | +------+------------------+-------------+ 40 | | Step | Action | Time (in s) | 41 | +------+------------------+-------------+ 42 | | 1 | default_platform | 0 | 43 | | 2 | gym | 63 | 44 | +------+------------------+-------------+ 45 | ``` 46 | 47 | ## CI 48 | 49 | On CI, you can do the followwing in your build script: 50 | 51 | 1. first try to download `.zip` from your favorite storage system (Azure Storage, S3 bucket, FTP, etc...) 52 | 2. If success, unzip into `ios/cached_derived_data` 53 | 3. Run `bundle exec fastlane ios cached_build` 54 | 4. If `.zip` didn't exist, zip `cached_derived_data` and upload it somewhere as `.zip` 55 | 56 | This way, only when `Podfile.lock` changes, Pods will be compiled. 57 | 58 | ## Presentation 59 | 60 | https://docs.google.com/presentation/d/e/2PACX-1vTfrXqbjTRAYCABpStRknZeCX83ku_MOzGsa0ZOq7D_JPqcYxBrrc67hLOsK1RQnKV7i94zJnAmPubZ/pub?start=false&loop=true&delayms=3000 -------------------------------------------------------------------------------- /__tests__/App-test.tsx: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /android/app/_BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.cachepodsdemo", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.cachepodsdemo", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /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 a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: false, // clean and rebuild if changing 82 | ] 83 | 84 | apply from: "../../node_modules/react-native/react.gradle" 85 | 86 | /** 87 | * Set this to true to create two separate APKs instead of one: 88 | * - An APK that only works on ARM devices 89 | * - An APK that only works on x86 devices 90 | * The advantage is the size of the APK is reduced by about 4MB. 91 | * Upload all the APKs to the Play Store and people will download 92 | * the correct one based on the CPU architecture of their device. 93 | */ 94 | def enableSeparateBuildPerCPUArchitecture = false 95 | 96 | /** 97 | * Run Proguard to shrink the Java bytecode in release builds. 98 | */ 99 | def enableProguardInReleaseBuilds = false 100 | 101 | /** 102 | * The preferred build flavor of JavaScriptCore. 103 | * 104 | * For example, to use the international variant, you can use: 105 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 106 | * 107 | * The international variant includes ICU i18n library and necessary data 108 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 109 | * give correct results when using with locales other than en-US. Note that 110 | * this variant is about 6MiB larger per architecture than default. 111 | */ 112 | def jscFlavor = 'org.webkit:android-jsc:+' 113 | 114 | /** 115 | * Whether to enable the Hermes VM. 116 | * 117 | * This should be set on project.ext.react and mirrored here. If it is not set 118 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 119 | * and the benefits of using Hermes will therefore be sharply reduced. 120 | */ 121 | def enableHermes = project.ext.react.get("enableHermes", false); 122 | 123 | android { 124 | ndkVersion rootProject.ext.ndkVersion 125 | 126 | compileSdkVersion rootProject.ext.compileSdkVersion 127 | 128 | defaultConfig { 129 | applicationId "com.cachepodsdemo" 130 | minSdkVersion rootProject.ext.minSdkVersion 131 | targetSdkVersion rootProject.ext.targetSdkVersion 132 | versionCode 1 133 | versionName "1.0" 134 | } 135 | splits { 136 | abi { 137 | reset() 138 | enable enableSeparateBuildPerCPUArchitecture 139 | universalApk false // If true, also generate a universal APK 140 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 141 | } 142 | } 143 | signingConfigs { 144 | debug { 145 | storeFile file('debug.keystore') 146 | storePassword 'android' 147 | keyAlias 'androiddebugkey' 148 | keyPassword 'android' 149 | } 150 | } 151 | buildTypes { 152 | debug { 153 | signingConfig signingConfigs.debug 154 | } 155 | release { 156 | // Caution! In production, you need to generate your own keystore file. 157 | // see https://reactnative.dev/docs/signed-apk-android. 158 | signingConfig signingConfigs.debug 159 | minifyEnabled enableProguardInReleaseBuilds 160 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 161 | } 162 | } 163 | 164 | // applicationVariants are e.g. debug, release 165 | applicationVariants.all { variant -> 166 | variant.outputs.each { output -> 167 | // For each separate APK per architecture, set a unique version code as described here: 168 | // https://developer.android.com/studio/build/configure-apk-splits.html 169 | // Example: versionCode 1 will generate 1001 for armeabi-v7a, 1002 for x86, etc. 170 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 171 | def abi = output.getFilter(OutputFile.ABI) 172 | if (abi != null) { // null for the universal-debug, universal-release variants 173 | output.versionCodeOverride = 174 | defaultConfig.versionCode * 1000 + versionCodes.get(abi) 175 | } 176 | 177 | } 178 | } 179 | } 180 | 181 | dependencies { 182 | implementation fileTree(dir: "libs", include: ["*.jar"]) 183 | //noinspection GradleDynamicVersion 184 | implementation "com.facebook.react:react-native:+" // From node_modules 185 | 186 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 187 | 188 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 189 | exclude group:'com.facebook.fbjni' 190 | } 191 | 192 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 193 | exclude group:'com.facebook.flipper' 194 | exclude group:'com.squareup.okhttp3', module:'okhttp' 195 | } 196 | 197 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 198 | exclude group:'com.facebook.flipper' 199 | } 200 | 201 | if (enableHermes) { 202 | def hermesPath = "../../node_modules/hermes-engine/android/"; 203 | debugImplementation files(hermesPath + "hermes-debug.aar") 204 | releaseImplementation files(hermesPath + "hermes-release.aar") 205 | } else { 206 | implementation jscFlavor 207 | } 208 | } 209 | 210 | // Run this once to be able to run the application with BUCK 211 | // puts all compile dependencies into folder libs for BUCK to use 212 | task copyDownloadableDepsToLibs(type: Copy) { 213 | from configurations.implementation 214 | into 'libs' 215 | } 216 | 217 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 218 | -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/debug.keystore -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /android/app/src/debug/java/com/cachepodsdemo/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.cachepodsdemo; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | 32 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 33 | client.addPlugin(new ReactFlipperPlugin()); 34 | client.addPlugin(new DatabasesFlipperPlugin(context)); 35 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 36 | client.addPlugin(CrashReporterPlugin.getInstance()); 37 | 38 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 39 | NetworkingModule.setCustomClientBuilder( 40 | new NetworkingModule.CustomClientBuilder() { 41 | @Override 42 | public void apply(OkHttpClient.Builder builder) { 43 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 44 | } 45 | }); 46 | client.addPlugin(networkFlipperPlugin); 47 | client.start(); 48 | 49 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 50 | // Hence we run if after all native modules have been initialized 51 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 52 | if (reactContext == null) { 53 | reactInstanceManager.addReactInstanceEventListener( 54 | new ReactInstanceManager.ReactInstanceEventListener() { 55 | @Override 56 | public void onReactContextInitialized(ReactContext reactContext) { 57 | reactInstanceManager.removeReactInstanceEventListener(this); 58 | reactContext.runOnNativeModulesQueueThread( 59 | new Runnable() { 60 | @Override 61 | public void run() { 62 | client.addPlugin(new FrescoFlipperPlugin()); 63 | } 64 | }); 65 | } 66 | }); 67 | } else { 68 | client.addPlugin(new FrescoFlipperPlugin()); 69 | } 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/cachepodsdemo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.cachepodsdemo; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. This is used to schedule 9 | * rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "CachePodsDemo"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /android/app/src/main/java/com/cachepodsdemo/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.cachepodsdemo; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import com.facebook.react.PackageList; 6 | import com.facebook.react.ReactApplication; 7 | import com.facebook.react.ReactInstanceManager; 8 | import com.facebook.react.ReactNativeHost; 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | import java.lang.reflect.InvocationTargetException; 12 | import java.util.List; 13 | 14 | public class MainApplication extends Application implements ReactApplication { 15 | 16 | private final ReactNativeHost mReactNativeHost = 17 | new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | @SuppressWarnings("UnnecessaryLocalVariable") 26 | List packages = new PackageList(this).getPackages(); 27 | // Packages that cannot be autolinked yet can be added manually here, for example: 28 | // packages.add(new MyReactNativePackage()); 29 | return packages; 30 | } 31 | 32 | @Override 33 | protected String getJSMainModuleName() { 34 | return "index"; 35 | } 36 | }; 37 | 38 | @Override 39 | public ReactNativeHost getReactNativeHost() { 40 | return mReactNativeHost; 41 | } 42 | 43 | @Override 44 | public void onCreate() { 45 | super.onCreate(); 46 | SoLoader.init(this, /* native exopackage */ false); 47 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 48 | } 49 | 50 | /** 51 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 52 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 53 | * 54 | * @param context 55 | * @param reactInstanceManager 56 | */ 57 | private static void initializeFlipper( 58 | Context context, ReactInstanceManager reactInstanceManager) { 59 | if (BuildConfig.DEBUG) { 60 | try { 61 | /* 62 | We use reflection here to pick up the class that initializes Flipper, 63 | since Flipper library is not available in release mode 64 | */ 65 | Class aClass = Class.forName("com.cachepodsdemo.ReactNativeFlipper"); 66 | aClass 67 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 68 | .invoke(null, context, reactInstanceManager); 69 | } catch (ClassNotFoundException e) { 70 | e.printStackTrace(); 71 | } catch (NoSuchMethodException e) { 72 | e.printStackTrace(); 73 | } catch (IllegalAccessException e) { 74 | e.printStackTrace(); 75 | } catch (InvocationTargetException e) { 76 | e.printStackTrace(); 77 | } 78 | } 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CachePodsDemo 3 | 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "30.0.2" 6 | minSdkVersion = 21 7 | compileSdkVersion = 30 8 | targetSdkVersion = 30 9 | ndkVersion = "20.1.5948944" 10 | } 11 | repositories { 12 | google() 13 | mavenCentral() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:4.2.1") 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenCentral() 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url("$rootDir/../node_modules/react-native/android") 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url("$rootDir/../node_modules/jsc-android/dist") 33 | } 34 | 35 | google() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /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 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | # Automatically convert third-party libraries to use AndroidX 25 | android.enableJetifier=true 26 | 27 | # Version of flipper SDK to use with React Native 28 | FLIPPER_VERSION=0.93.0 29 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dirkpostma/react-native-cache-pods/15016504999569e6d21b2915bd8eb72e01d06534/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | 86 | # Determine the Java command to use to start the JVM. 87 | if [ -n "$JAVA_HOME" ] ; then 88 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 89 | # IBM's JDK on AIX uses strange locations for the executables 90 | JAVACMD="$JAVA_HOME/jre/sh/java" 91 | else 92 | JAVACMD="$JAVA_HOME/bin/java" 93 | fi 94 | if [ ! -x "$JAVACMD" ] ; then 95 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 96 | 97 | Please set the JAVA_HOME variable in your environment to match the 98 | location of your Java installation." 99 | fi 100 | else 101 | JAVACMD="java" 102 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 103 | 104 | Please set the JAVA_HOME variable in your environment to match the 105 | location of your Java installation." 106 | fi 107 | 108 | # Increase the maximum file descriptors if we can. 109 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 110 | MAX_FD_LIMIT=`ulimit -H -n` 111 | if [ $? -eq 0 ] ; then 112 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 113 | MAX_FD="$MAX_FD_LIMIT" 114 | fi 115 | ulimit -n $MAX_FD 116 | if [ $? -ne 0 ] ; then 117 | warn "Could not set maximum file descriptor limit: $MAX_FD" 118 | fi 119 | else 120 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 121 | fi 122 | fi 123 | 124 | # For Darwin, add options to specify how the application appears in the dock 125 | if $darwin; then 126 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 127 | fi 128 | 129 | # For Cygwin or MSYS, switch paths to Windows format before running java 130 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 131 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 132 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 133 | 134 | JAVACMD=`cygpath --unix "$JAVACMD"` 135 | 136 | # We build the pattern for arguments to be converted via cygpath 137 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 138 | SEP="" 139 | for dir in $ROOTDIRSRAW ; do 140 | ROOTDIRS="$ROOTDIRS$SEP$dir" 141 | SEP="|" 142 | done 143 | OURCYGPATTERN="(^($ROOTDIRS))" 144 | # Add a user-defined pattern to the cygpath arguments 145 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 146 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 147 | fi 148 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 149 | i=0 150 | for arg in "$@" ; do 151 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 152 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 153 | 154 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 155 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 156 | else 157 | eval `echo args$i`="\"$arg\"" 158 | fi 159 | i=`expr $i + 1` 160 | done 161 | case $i in 162 | 0) set -- ;; 163 | 1) set -- "$args0" ;; 164 | 2) set -- "$args0" "$args1" ;; 165 | 3) set -- "$args0" "$args1" "$args2" ;; 166 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 167 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 168 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 169 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 170 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 171 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 172 | esac 173 | fi 174 | 175 | # Escape application args 176 | save () { 177 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 178 | echo " " 179 | } 180 | APP_ARGS=`save "$@"` 181 | 182 | # Collect all arguments for the java command, following the shell quoting and substitution rules 183 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 184 | 185 | exec "$JAVACMD" "$@" 186 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto execute 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto execute 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :execute 68 | @rem Setup the command line 69 | 70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 71 | 72 | 73 | @rem Execute Gradle 74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* 75 | 76 | :end 77 | @rem End local scope for the variables with windows NT shell 78 | if "%ERRORLEVEL%"=="0" goto mainEnd 79 | 80 | :fail 81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 82 | rem the _cmd.exe /c_ return code! 83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 84 | exit /b 1 85 | 86 | :mainEnd 87 | if "%OS%"=="Windows_NT" endlocal 88 | 89 | :omega 90 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'CachePodsDemo' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CachePodsDemo", 3 | "displayName": "CachePodsDemo" 4 | } -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ios/CachePodsDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 54; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* CachePodsDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* CachePodsDemoTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 6172F2D35A4C3AA820D92908 /* libPods-CachePodsDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 6423831EA8574132BED9D8CC /* libPods-CachePodsDemo.a */; }; 15 | 7EF68E3733C33B6898317E18 /* libPods-CachePodsDemo-CachePodsDemoTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ABFE59519B596E51CEFDCCC0 /* libPods-CachePodsDemo-CachePodsDemoTests.a */; }; 16 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 25 | remoteInfo = CachePodsDemo; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 00E356EE1AD99517003FC87E /* CachePodsDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CachePodsDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 00E356F21AD99517003FC87E /* CachePodsDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CachePodsDemoTests.m; sourceTree = ""; }; 33 | 13B07F961A680F5B00A75B9A /* CachePodsDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CachePodsDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = CachePodsDemo/AppDelegate.h; sourceTree = ""; }; 35 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = CachePodsDemo/AppDelegate.m; sourceTree = ""; }; 36 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = CachePodsDemo/Images.xcassets; sourceTree = ""; }; 37 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = CachePodsDemo/Info.plist; sourceTree = ""; }; 38 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = CachePodsDemo/main.m; sourceTree = ""; }; 39 | 1D0AE47A65C8663E3B452821 /* Pods-CachePodsDemo-CachePodsDemoTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CachePodsDemo-CachePodsDemoTests.release.xcconfig"; path = "Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests.release.xcconfig"; sourceTree = ""; }; 40 | 6423831EA8574132BED9D8CC /* libPods-CachePodsDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CachePodsDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 6C97AB639B58BBB4B15BBE30 /* Pods-CachePodsDemo-CachePodsDemoTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CachePodsDemo-CachePodsDemoTests.debug.xcconfig"; path = "Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests.debug.xcconfig"; sourceTree = ""; }; 42 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = CachePodsDemo/LaunchScreen.storyboard; sourceTree = ""; }; 43 | ABFE59519B596E51CEFDCCC0 /* libPods-CachePodsDemo-CachePodsDemoTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-CachePodsDemo-CachePodsDemoTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 44 | C0A881CF5CF3F2B244570E2A /* Pods-CachePodsDemo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CachePodsDemo.debug.xcconfig"; path = "Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo.debug.xcconfig"; sourceTree = ""; }; 45 | D00AAFFCFCFDA5787532823F /* Pods-CachePodsDemo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CachePodsDemo.release.xcconfig"; path = "Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo.release.xcconfig"; sourceTree = ""; }; 46 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 47 | /* End PBXFileReference section */ 48 | 49 | /* Begin PBXFrameworksBuildPhase section */ 50 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 51 | isa = PBXFrameworksBuildPhase; 52 | buildActionMask = 2147483647; 53 | files = ( 54 | 7EF68E3733C33B6898317E18 /* libPods-CachePodsDemo-CachePodsDemoTests.a in Frameworks */, 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 59 | isa = PBXFrameworksBuildPhase; 60 | buildActionMask = 2147483647; 61 | files = ( 62 | 6172F2D35A4C3AA820D92908 /* libPods-CachePodsDemo.a in Frameworks */, 63 | ); 64 | runOnlyForDeploymentPostprocessing = 0; 65 | }; 66 | /* End PBXFrameworksBuildPhase section */ 67 | 68 | /* Begin PBXGroup section */ 69 | 00E356EF1AD99517003FC87E /* CachePodsDemoTests */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 00E356F21AD99517003FC87E /* CachePodsDemoTests.m */, 73 | 00E356F01AD99517003FC87E /* Supporting Files */, 74 | ); 75 | path = CachePodsDemoTests; 76 | sourceTree = ""; 77 | }; 78 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 00E356F11AD99517003FC87E /* Info.plist */, 82 | ); 83 | name = "Supporting Files"; 84 | sourceTree = ""; 85 | }; 86 | 13B07FAE1A68108700A75B9A /* CachePodsDemo */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 90 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 91 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 92 | 13B07FB61A68108700A75B9A /* Info.plist */, 93 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 94 | 13B07FB71A68108700A75B9A /* main.m */, 95 | ); 96 | name = CachePodsDemo; 97 | sourceTree = ""; 98 | }; 99 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 103 | 6423831EA8574132BED9D8CC /* libPods-CachePodsDemo.a */, 104 | ABFE59519B596E51CEFDCCC0 /* libPods-CachePodsDemo-CachePodsDemoTests.a */, 105 | ); 106 | name = Frameworks; 107 | sourceTree = ""; 108 | }; 109 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | ); 113 | name = Libraries; 114 | sourceTree = ""; 115 | }; 116 | 83CBB9F61A601CBA00E9B192 = { 117 | isa = PBXGroup; 118 | children = ( 119 | 13B07FAE1A68108700A75B9A /* CachePodsDemo */, 120 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 121 | 00E356EF1AD99517003FC87E /* CachePodsDemoTests */, 122 | 83CBBA001A601CBA00E9B192 /* Products */, 123 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 124 | E233CBF5F47BEE60B243DCF8 /* Pods */, 125 | ); 126 | indentWidth = 2; 127 | sourceTree = ""; 128 | tabWidth = 2; 129 | usesTabs = 0; 130 | }; 131 | 83CBBA001A601CBA00E9B192 /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 13B07F961A680F5B00A75B9A /* CachePodsDemo.app */, 135 | 00E356EE1AD99517003FC87E /* CachePodsDemoTests.xctest */, 136 | ); 137 | name = Products; 138 | sourceTree = ""; 139 | }; 140 | E233CBF5F47BEE60B243DCF8 /* Pods */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | C0A881CF5CF3F2B244570E2A /* Pods-CachePodsDemo.debug.xcconfig */, 144 | D00AAFFCFCFDA5787532823F /* Pods-CachePodsDemo.release.xcconfig */, 145 | 6C97AB639B58BBB4B15BBE30 /* Pods-CachePodsDemo-CachePodsDemoTests.debug.xcconfig */, 146 | 1D0AE47A65C8663E3B452821 /* Pods-CachePodsDemo-CachePodsDemoTests.release.xcconfig */, 147 | ); 148 | path = Pods; 149 | sourceTree = ""; 150 | }; 151 | /* End PBXGroup section */ 152 | 153 | /* Begin PBXNativeTarget section */ 154 | 00E356ED1AD99517003FC87E /* CachePodsDemoTests */ = { 155 | isa = PBXNativeTarget; 156 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CachePodsDemoTests" */; 157 | buildPhases = ( 158 | A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */, 159 | 00E356EA1AD99517003FC87E /* Sources */, 160 | 00E356EB1AD99517003FC87E /* Frameworks */, 161 | 00E356EC1AD99517003FC87E /* Resources */, 162 | 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */, 163 | 13F9B1D58F6E0C21E928E2EC /* [CP] Embed Pods Frameworks */, 164 | ); 165 | buildRules = ( 166 | ); 167 | dependencies = ( 168 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 169 | ); 170 | name = CachePodsDemoTests; 171 | productName = CachePodsDemoTests; 172 | productReference = 00E356EE1AD99517003FC87E /* CachePodsDemoTests.xctest */; 173 | productType = "com.apple.product-type.bundle.unit-test"; 174 | }; 175 | 13B07F861A680F5B00A75B9A /* CachePodsDemo */ = { 176 | isa = PBXNativeTarget; 177 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CachePodsDemo" */; 178 | buildPhases = ( 179 | 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */, 180 | FD10A7F022414F080027D42C /* Start Packager */, 181 | 13B07F871A680F5B00A75B9A /* Sources */, 182 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 183 | 13B07F8E1A680F5B00A75B9A /* Resources */, 184 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 185 | ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */, 186 | 989F81C2FA26710002531E0B /* [CP] Embed Pods Frameworks */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | ); 192 | name = CachePodsDemo; 193 | productName = CachePodsDemo; 194 | productReference = 13B07F961A680F5B00A75B9A /* CachePodsDemo.app */; 195 | productType = "com.apple.product-type.application"; 196 | }; 197 | /* End PBXNativeTarget section */ 198 | 199 | /* Begin PBXProject section */ 200 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 201 | isa = PBXProject; 202 | attributes = { 203 | LastUpgradeCheck = 1210; 204 | TargetAttributes = { 205 | 00E356ED1AD99517003FC87E = { 206 | CreatedOnToolsVersion = 6.2; 207 | TestTargetID = 13B07F861A680F5B00A75B9A; 208 | }; 209 | 13B07F861A680F5B00A75B9A = { 210 | LastSwiftMigration = 1120; 211 | }; 212 | }; 213 | }; 214 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CachePodsDemo" */; 215 | compatibilityVersion = "Xcode 12.0"; 216 | developmentRegion = en; 217 | hasScannedForEncodings = 0; 218 | knownRegions = ( 219 | en, 220 | Base, 221 | ); 222 | mainGroup = 83CBB9F61A601CBA00E9B192; 223 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 224 | projectDirPath = ""; 225 | projectRoot = ""; 226 | targets = ( 227 | 13B07F861A680F5B00A75B9A /* CachePodsDemo */, 228 | 00E356ED1AD99517003FC87E /* CachePodsDemoTests */, 229 | ); 230 | }; 231 | /* End PBXProject section */ 232 | 233 | /* Begin PBXResourcesBuildPhase section */ 234 | 00E356EC1AD99517003FC87E /* Resources */ = { 235 | isa = PBXResourcesBuildPhase; 236 | buildActionMask = 2147483647; 237 | files = ( 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | }; 241 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 242 | isa = PBXResourcesBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 246 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 247 | ); 248 | runOnlyForDeploymentPostprocessing = 0; 249 | }; 250 | /* End PBXResourcesBuildPhase section */ 251 | 252 | /* Begin PBXShellScriptBuildPhase section */ 253 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 254 | isa = PBXShellScriptBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | ); 258 | inputPaths = ( 259 | ); 260 | name = "Bundle React Native code and images"; 261 | outputPaths = ( 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | shellPath = /bin/sh; 265 | shellScript = "set -e\n\nexport NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n"; 266 | }; 267 | 13F9B1D58F6E0C21E928E2EC /* [CP] Embed Pods Frameworks */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputFileListPaths = ( 273 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", 274 | ); 275 | name = "[CP] Embed Pods Frameworks"; 276 | outputFileListPaths = ( 277 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | shellPath = /bin/sh; 281 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests-frameworks.sh\"\n"; 282 | showEnvVarsInLog = 0; 283 | }; 284 | 3E482C27206C4DEF2FE45063 /* [CP] Check Pods Manifest.lock */ = { 285 | isa = PBXShellScriptBuildPhase; 286 | buildActionMask = 2147483647; 287 | files = ( 288 | ); 289 | inputFileListPaths = ( 290 | ); 291 | inputPaths = ( 292 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 293 | "${PODS_ROOT}/Manifest.lock", 294 | ); 295 | name = "[CP] Check Pods Manifest.lock"; 296 | outputFileListPaths = ( 297 | ); 298 | outputPaths = ( 299 | "$(DERIVED_FILE_DIR)/Pods-CachePodsDemo-checkManifestLockResult.txt", 300 | ); 301 | runOnlyForDeploymentPostprocessing = 0; 302 | shellPath = /bin/sh; 303 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 304 | showEnvVarsInLog = 0; 305 | }; 306 | 4E62BDF20514810D028A5FBF /* [CP] Copy Pods Resources */ = { 307 | isa = PBXShellScriptBuildPhase; 308 | buildActionMask = 2147483647; 309 | files = ( 310 | ); 311 | inputFileListPaths = ( 312 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests-resources-${CONFIGURATION}-input-files.xcfilelist", 313 | ); 314 | name = "[CP] Copy Pods Resources"; 315 | outputFileListPaths = ( 316 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests-resources-${CONFIGURATION}-output-files.xcfilelist", 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | shellPath = /bin/sh; 320 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo-CachePodsDemoTests/Pods-CachePodsDemo-CachePodsDemoTests-resources.sh\"\n"; 321 | showEnvVarsInLog = 0; 322 | }; 323 | 989F81C2FA26710002531E0B /* [CP] Embed Pods Frameworks */ = { 324 | isa = PBXShellScriptBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | inputFileListPaths = ( 329 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo-frameworks-${CONFIGURATION}-input-files.xcfilelist", 330 | ); 331 | name = "[CP] Embed Pods Frameworks"; 332 | outputFileListPaths = ( 333 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo-frameworks-${CONFIGURATION}-output-files.xcfilelist", 334 | ); 335 | runOnlyForDeploymentPostprocessing = 0; 336 | shellPath = /bin/sh; 337 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo-frameworks.sh\"\n"; 338 | showEnvVarsInLog = 0; 339 | }; 340 | A130D646172E58E1D159D8F2 /* [CP] Check Pods Manifest.lock */ = { 341 | isa = PBXShellScriptBuildPhase; 342 | buildActionMask = 2147483647; 343 | files = ( 344 | ); 345 | inputFileListPaths = ( 346 | ); 347 | inputPaths = ( 348 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 349 | "${PODS_ROOT}/Manifest.lock", 350 | ); 351 | name = "[CP] Check Pods Manifest.lock"; 352 | outputFileListPaths = ( 353 | ); 354 | outputPaths = ( 355 | "$(DERIVED_FILE_DIR)/Pods-CachePodsDemo-CachePodsDemoTests-checkManifestLockResult.txt", 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | shellPath = /bin/sh; 359 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 360 | showEnvVarsInLog = 0; 361 | }; 362 | ADC9DDC32298B72B3CF5DC8E /* [CP] Copy Pods Resources */ = { 363 | isa = PBXShellScriptBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | inputFileListPaths = ( 368 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo-resources-${CONFIGURATION}-input-files.xcfilelist", 369 | ); 370 | name = "[CP] Copy Pods Resources"; 371 | outputFileListPaths = ( 372 | "${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo-resources-${CONFIGURATION}-output-files.xcfilelist", 373 | ); 374 | runOnlyForDeploymentPostprocessing = 0; 375 | shellPath = /bin/sh; 376 | shellScript = "BUILT_PRODUCTS_DIR=/Users/dirkpostma/development/CachePodsDemo/ios/cached_derived_data/Build/Intermediates.noindex/ArchiveIntermediates/CachePodsDemo/BuildProductsPath/Release-iphoneos \"${PODS_ROOT}/Target Support Files/Pods-CachePodsDemo/Pods-CachePodsDemo-resources.sh\"\n"; 377 | showEnvVarsInLog = 0; 378 | }; 379 | FD10A7F022414F080027D42C /* Start Packager */ = { 380 | isa = PBXShellScriptBuildPhase; 381 | buildActionMask = 2147483647; 382 | files = ( 383 | ); 384 | inputFileListPaths = ( 385 | ); 386 | inputPaths = ( 387 | ); 388 | name = "Start Packager"; 389 | outputFileListPaths = ( 390 | ); 391 | outputPaths = ( 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | shellPath = /bin/sh; 395 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 396 | showEnvVarsInLog = 0; 397 | }; 398 | /* End PBXShellScriptBuildPhase section */ 399 | 400 | /* Begin PBXSourcesBuildPhase section */ 401 | 00E356EA1AD99517003FC87E /* Sources */ = { 402 | isa = PBXSourcesBuildPhase; 403 | buildActionMask = 2147483647; 404 | files = ( 405 | 00E356F31AD99517003FC87E /* CachePodsDemoTests.m in Sources */, 406 | ); 407 | runOnlyForDeploymentPostprocessing = 0; 408 | }; 409 | 13B07F871A680F5B00A75B9A /* Sources */ = { 410 | isa = PBXSourcesBuildPhase; 411 | buildActionMask = 2147483647; 412 | files = ( 413 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 414 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | }; 418 | /* End PBXSourcesBuildPhase section */ 419 | 420 | /* Begin PBXTargetDependency section */ 421 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 422 | isa = PBXTargetDependency; 423 | target = 13B07F861A680F5B00A75B9A /* CachePodsDemo */; 424 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 425 | }; 426 | /* End PBXTargetDependency section */ 427 | 428 | /* Begin XCBuildConfiguration section */ 429 | 00E356F61AD99517003FC87E /* Debug */ = { 430 | isa = XCBuildConfiguration; 431 | baseConfigurationReference = 6C97AB639B58BBB4B15BBE30 /* Pods-CachePodsDemo-CachePodsDemoTests.debug.xcconfig */; 432 | buildSettings = { 433 | BUNDLE_LOADER = "$(TEST_HOST)"; 434 | GCC_PREPROCESSOR_DEFINITIONS = ( 435 | "DEBUG=1", 436 | "$(inherited)", 437 | ); 438 | INFOPLIST_FILE = CachePodsDemoTests/Info.plist; 439 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 440 | LD_RUNPATH_SEARCH_PATHS = ( 441 | "$(inherited)", 442 | "@executable_path/Frameworks", 443 | "@loader_path/Frameworks", 444 | ); 445 | OTHER_LDFLAGS = ( 446 | "-ObjC", 447 | "-lc++", 448 | "$(inherited)", 449 | ); 450 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 451 | PRODUCT_NAME = "$(TARGET_NAME)"; 452 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CachePodsDemo.app/CachePodsDemo"; 453 | }; 454 | name = Debug; 455 | }; 456 | 00E356F71AD99517003FC87E /* Release */ = { 457 | isa = XCBuildConfiguration; 458 | baseConfigurationReference = 1D0AE47A65C8663E3B452821 /* Pods-CachePodsDemo-CachePodsDemoTests.release.xcconfig */; 459 | buildSettings = { 460 | BUNDLE_LOADER = "$(TEST_HOST)"; 461 | COPY_PHASE_STRIP = NO; 462 | INFOPLIST_FILE = CachePodsDemoTests/Info.plist; 463 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 464 | LD_RUNPATH_SEARCH_PATHS = ( 465 | "$(inherited)", 466 | "@executable_path/Frameworks", 467 | "@loader_path/Frameworks", 468 | ); 469 | OTHER_LDFLAGS = ( 470 | "-ObjC", 471 | "-lc++", 472 | "$(inherited)", 473 | ); 474 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 475 | PRODUCT_NAME = "$(TARGET_NAME)"; 476 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CachePodsDemo.app/CachePodsDemo"; 477 | }; 478 | name = Release; 479 | }; 480 | 13B07F941A680F5B00A75B9A /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | baseConfigurationReference = C0A881CF5CF3F2B244570E2A /* Pods-CachePodsDemo.debug.xcconfig */; 483 | buildSettings = { 484 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 485 | CLANG_ENABLE_MODULES = YES; 486 | CODE_SIGN_IDENTITY = "Apple Development"; 487 | CODE_SIGN_STYLE = Automatic; 488 | CURRENT_PROJECT_VERSION = 1; 489 | DEVELOPMENT_TEAM = 6EXTSNNTE6; 490 | ENABLE_BITCODE = NO; 491 | INFOPLIST_FILE = CachePodsDemo/Info.plist; 492 | LD_RUNPATH_SEARCH_PATHS = ( 493 | "$(inherited)", 494 | "@executable_path/Frameworks", 495 | ); 496 | OTHER_LDFLAGS = ( 497 | "$(inherited)", 498 | "-ObjC", 499 | "-lc++", 500 | ); 501 | PRODUCT_BUNDLE_IDENTIFIER = nl.dirkpostma.CachePodsDemo; 502 | PRODUCT_NAME = CachePodsDemo; 503 | PROVISIONING_PROFILE_SPECIFIER = ""; 504 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 505 | SWIFT_VERSION = 5.0; 506 | VERSIONING_SYSTEM = "apple-generic"; 507 | }; 508 | name = Debug; 509 | }; 510 | 13B07F951A680F5B00A75B9A /* Release */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = D00AAFFCFCFDA5787532823F /* Pods-CachePodsDemo.release.xcconfig */; 513 | buildSettings = { 514 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 515 | CLANG_ENABLE_MODULES = YES; 516 | CODE_SIGN_IDENTITY = "Apple Development"; 517 | CODE_SIGN_STYLE = Automatic; 518 | CURRENT_PROJECT_VERSION = 1; 519 | DEVELOPMENT_TEAM = 6EXTSNNTE6; 520 | INFOPLIST_FILE = CachePodsDemo/Info.plist; 521 | LD_RUNPATH_SEARCH_PATHS = ( 522 | "$(inherited)", 523 | "@executable_path/Frameworks", 524 | ); 525 | OTHER_LDFLAGS = ( 526 | "$(inherited)", 527 | "-ObjC", 528 | "-lc++", 529 | ); 530 | PRODUCT_BUNDLE_IDENTIFIER = nl.dirkpostma.CachePodsDemo; 531 | PRODUCT_NAME = CachePodsDemo; 532 | PROVISIONING_PROFILE_SPECIFIER = ""; 533 | SWIFT_VERSION = 5.0; 534 | VERSIONING_SYSTEM = "apple-generic"; 535 | }; 536 | name = Release; 537 | }; 538 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 539 | isa = XCBuildConfiguration; 540 | buildSettings = { 541 | ALWAYS_SEARCH_USER_PATHS = NO; 542 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 543 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 544 | CLANG_CXX_LIBRARY = "libc++"; 545 | CLANG_ENABLE_MODULES = YES; 546 | CLANG_ENABLE_OBJC_ARC = YES; 547 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 548 | CLANG_WARN_BOOL_CONVERSION = YES; 549 | CLANG_WARN_COMMA = YES; 550 | CLANG_WARN_CONSTANT_CONVERSION = YES; 551 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 552 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 553 | CLANG_WARN_EMPTY_BODY = YES; 554 | CLANG_WARN_ENUM_CONVERSION = YES; 555 | CLANG_WARN_INFINITE_RECURSION = YES; 556 | CLANG_WARN_INT_CONVERSION = YES; 557 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 558 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 559 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 560 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 561 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 562 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 563 | CLANG_WARN_STRICT_PROTOTYPES = YES; 564 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 565 | CLANG_WARN_UNREACHABLE_CODE = YES; 566 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 567 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 568 | COPY_PHASE_STRIP = NO; 569 | ENABLE_STRICT_OBJC_MSGSEND = YES; 570 | ENABLE_TESTABILITY = YES; 571 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 572 | GCC_C_LANGUAGE_STANDARD = gnu99; 573 | GCC_DYNAMIC_NO_PIC = NO; 574 | GCC_NO_COMMON_BLOCKS = YES; 575 | GCC_OPTIMIZATION_LEVEL = 0; 576 | GCC_PREPROCESSOR_DEFINITIONS = ( 577 | "DEBUG=1", 578 | "$(inherited)", 579 | ); 580 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 581 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 582 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 583 | GCC_WARN_UNDECLARED_SELECTOR = YES; 584 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 585 | GCC_WARN_UNUSED_FUNCTION = YES; 586 | GCC_WARN_UNUSED_VARIABLE = YES; 587 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 588 | LD_RUNPATH_SEARCH_PATHS = ( 589 | /usr/lib/swift, 590 | "$(inherited)", 591 | ); 592 | LIBRARY_SEARCH_PATHS = ( 593 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 594 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 595 | "\"$(inherited)\"", 596 | ); 597 | MTL_ENABLE_DEBUG_INFO = YES; 598 | ONLY_ACTIVE_ARCH = YES; 599 | SDKROOT = iphoneos; 600 | }; 601 | name = Debug; 602 | }; 603 | 83CBBA211A601CBA00E9B192 /* Release */ = { 604 | isa = XCBuildConfiguration; 605 | buildSettings = { 606 | ALWAYS_SEARCH_USER_PATHS = NO; 607 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 608 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 609 | CLANG_CXX_LIBRARY = "libc++"; 610 | CLANG_ENABLE_MODULES = YES; 611 | CLANG_ENABLE_OBJC_ARC = YES; 612 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 613 | CLANG_WARN_BOOL_CONVERSION = YES; 614 | CLANG_WARN_COMMA = YES; 615 | CLANG_WARN_CONSTANT_CONVERSION = YES; 616 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 617 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 618 | CLANG_WARN_EMPTY_BODY = YES; 619 | CLANG_WARN_ENUM_CONVERSION = YES; 620 | CLANG_WARN_INFINITE_RECURSION = YES; 621 | CLANG_WARN_INT_CONVERSION = YES; 622 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 623 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 624 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 625 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 626 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 627 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 628 | CLANG_WARN_STRICT_PROTOTYPES = YES; 629 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 630 | CLANG_WARN_UNREACHABLE_CODE = YES; 631 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 632 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 633 | COPY_PHASE_STRIP = YES; 634 | ENABLE_NS_ASSERTIONS = NO; 635 | ENABLE_STRICT_OBJC_MSGSEND = YES; 636 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64 "; 637 | GCC_C_LANGUAGE_STANDARD = gnu99; 638 | GCC_NO_COMMON_BLOCKS = YES; 639 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 640 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 641 | GCC_WARN_UNDECLARED_SELECTOR = YES; 642 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 643 | GCC_WARN_UNUSED_FUNCTION = YES; 644 | GCC_WARN_UNUSED_VARIABLE = YES; 645 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 646 | LD_RUNPATH_SEARCH_PATHS = ( 647 | /usr/lib/swift, 648 | "$(inherited)", 649 | ); 650 | LIBRARY_SEARCH_PATHS = ( 651 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", 652 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"", 653 | "\"$(inherited)\"", 654 | ); 655 | MTL_ENABLE_DEBUG_INFO = NO; 656 | SDKROOT = iphoneos; 657 | VALIDATE_PRODUCT = YES; 658 | }; 659 | name = Release; 660 | }; 661 | /* End XCBuildConfiguration section */ 662 | 663 | /* Begin XCConfigurationList section */ 664 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "CachePodsDemoTests" */ = { 665 | isa = XCConfigurationList; 666 | buildConfigurations = ( 667 | 00E356F61AD99517003FC87E /* Debug */, 668 | 00E356F71AD99517003FC87E /* Release */, 669 | ); 670 | defaultConfigurationIsVisible = 0; 671 | defaultConfigurationName = Release; 672 | }; 673 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "CachePodsDemo" */ = { 674 | isa = XCConfigurationList; 675 | buildConfigurations = ( 676 | 13B07F941A680F5B00A75B9A /* Debug */, 677 | 13B07F951A680F5B00A75B9A /* Release */, 678 | ); 679 | defaultConfigurationIsVisible = 0; 680 | defaultConfigurationName = Release; 681 | }; 682 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "CachePodsDemo" */ = { 683 | isa = XCConfigurationList; 684 | buildConfigurations = ( 685 | 83CBBA201A601CBA00E9B192 /* Debug */, 686 | 83CBBA211A601CBA00E9B192 /* Release */, 687 | ); 688 | defaultConfigurationIsVisible = 0; 689 | defaultConfigurationName = Release; 690 | }; 691 | /* End XCConfigurationList section */ 692 | }; 693 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 694 | } 695 | -------------------------------------------------------------------------------- /ios/CachePodsDemo.xcodeproj/xcshareddata/xcschemes/CachePodsDemo.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/CachePodsDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ios/CachePodsDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/CachePodsDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : UIResponder 5 | 6 | @property (nonatomic, strong) UIWindow *window; 7 | 8 | @end 9 | -------------------------------------------------------------------------------- /ios/CachePodsDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | 7 | #ifdef FB_SONARKIT_ENABLED 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | #import 14 | 15 | static void InitializeFlipper(UIApplication *application) { 16 | FlipperClient *client = [FlipperClient sharedClient]; 17 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 18 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 19 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 20 | [client addPlugin:[FlipperKitReactPlugin new]]; 21 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 22 | [client start]; 23 | } 24 | #endif 25 | 26 | @implementation AppDelegate 27 | 28 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 29 | { 30 | #ifdef FB_SONARKIT_ENABLED 31 | InitializeFlipper(application); 32 | #endif 33 | 34 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 35 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 36 | moduleName:@"CachePodsDemo" 37 | initialProperties:nil]; 38 | 39 | if (@available(iOS 13.0, *)) { 40 | rootView.backgroundColor = [UIColor systemBackgroundColor]; 41 | } else { 42 | rootView.backgroundColor = [UIColor whiteColor]; 43 | } 44 | 45 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 46 | UIViewController *rootViewController = [UIViewController new]; 47 | rootViewController.view = rootView; 48 | self.window.rootViewController = rootViewController; 49 | [self.window makeKeyAndVisible]; 50 | return YES; 51 | } 52 | 53 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 54 | { 55 | #if DEBUG 56 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 57 | #else 58 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 59 | #endif 60 | } 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /ios/CachePodsDemo/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/CachePodsDemo/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ios/CachePodsDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | CachePodsDemo 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | NSAppTransportSecurity 28 | 29 | NSExceptionDomains 30 | 31 | localhost 32 | 33 | NSExceptionAllowsInsecureHTTPLoads 34 | 35 | 36 | 37 | 38 | NSLocationWhenInUseUsageDescription 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /ios/CachePodsDemo/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 24 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /ios/CachePodsDemo/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ios/CachePodsDemoTests/CachePodsDemoTests.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | #import 5 | #import 6 | 7 | #define TIMEOUT_SECONDS 600 8 | #define TEXT_TO_LOOK_FOR @"Welcome to React" 9 | 10 | @interface CachePodsDemoTests : XCTestCase 11 | 12 | @end 13 | 14 | @implementation CachePodsDemoTests 15 | 16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 17 | { 18 | if (test(view)) { 19 | return YES; 20 | } 21 | for (UIView *subview in [view subviews]) { 22 | if ([self findSubviewInView:subview matching:test]) { 23 | return YES; 24 | } 25 | } 26 | return NO; 27 | } 28 | 29 | - (void)testRendersWelcomeScreen 30 | { 31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 33 | BOOL foundElement = NO; 34 | 35 | __block NSString *redboxError = nil; 36 | #ifdef DEBUG 37 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 38 | if (level >= RCTLogLevelError) { 39 | redboxError = message; 40 | } 41 | }); 42 | #endif 43 | 44 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 45 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 46 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 47 | 48 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 49 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 50 | return YES; 51 | } 52 | return NO; 53 | }]; 54 | } 55 | 56 | #ifdef DEBUG 57 | RCTSetLogFunction(RCTDefaultLogFunction); 58 | #endif 59 | 60 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 61 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 62 | } 63 | 64 | 65 | @end 66 | -------------------------------------------------------------------------------- /ios/CachePodsDemoTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ios/Gemfile: -------------------------------------------------------------------------------- 1 | source "https://rubygems.org" 2 | 3 | gem "fastlane" -------------------------------------------------------------------------------- /ios/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | CFPropertyList (3.0.4) 5 | rexml 6 | addressable (2.8.0) 7 | public_suffix (>= 2.0.2, < 5.0) 8 | artifactory (3.0.15) 9 | atomos (0.1.3) 10 | aws-eventstream (1.2.0) 11 | aws-partitions (1.510.0) 12 | aws-sdk-core (3.121.1) 13 | aws-eventstream (~> 1, >= 1.0.2) 14 | aws-partitions (~> 1, >= 1.239.0) 15 | aws-sigv4 (~> 1.1) 16 | jmespath (~> 1.0) 17 | aws-sdk-kms (1.48.0) 18 | aws-sdk-core (~> 3, >= 3.120.0) 19 | aws-sigv4 (~> 1.1) 20 | aws-sdk-s3 (1.103.0) 21 | aws-sdk-core (~> 3, >= 3.120.0) 22 | aws-sdk-kms (~> 1) 23 | aws-sigv4 (~> 1.4) 24 | aws-sigv4 (1.4.0) 25 | aws-eventstream (~> 1, >= 1.0.2) 26 | babosa (1.0.4) 27 | claide (1.0.3) 28 | colored (1.2) 29 | colored2 (3.1.2) 30 | commander (4.6.0) 31 | highline (~> 2.0.0) 32 | declarative (0.0.20) 33 | digest-crc (0.6.4) 34 | rake (>= 12.0.0, < 14.0.0) 35 | domain_name (0.5.20190701) 36 | unf (>= 0.0.5, < 1.0.0) 37 | dotenv (2.7.6) 38 | emoji_regex (3.2.3) 39 | excon (0.86.0) 40 | faraday (1.8.0) 41 | faraday-em_http (~> 1.0) 42 | faraday-em_synchrony (~> 1.0) 43 | faraday-excon (~> 1.1) 44 | faraday-httpclient (~> 1.0.1) 45 | faraday-net_http (~> 1.0) 46 | faraday-net_http_persistent (~> 1.1) 47 | faraday-patron (~> 1.0) 48 | faraday-rack (~> 1.0) 49 | multipart-post (>= 1.2, < 3) 50 | ruby2_keywords (>= 0.0.4) 51 | faraday-cookie_jar (0.0.7) 52 | faraday (>= 0.8.0) 53 | http-cookie (~> 1.0.0) 54 | faraday-em_http (1.0.0) 55 | faraday-em_synchrony (1.0.0) 56 | faraday-excon (1.1.0) 57 | faraday-httpclient (1.0.1) 58 | faraday-net_http (1.0.1) 59 | faraday-net_http_persistent (1.2.0) 60 | faraday-patron (1.0.0) 61 | faraday-rack (1.0.0) 62 | faraday_middleware (1.1.0) 63 | faraday (~> 1.0) 64 | fastimage (2.2.5) 65 | fastlane (2.195.0) 66 | CFPropertyList (>= 2.3, < 4.0.0) 67 | addressable (>= 2.8, < 3.0.0) 68 | artifactory (~> 3.0) 69 | aws-sdk-s3 (~> 1.0) 70 | babosa (>= 1.0.3, < 2.0.0) 71 | bundler (>= 1.12.0, < 3.0.0) 72 | colored 73 | commander (~> 4.6) 74 | dotenv (>= 2.1.1, < 3.0.0) 75 | emoji_regex (>= 0.1, < 4.0) 76 | excon (>= 0.71.0, < 1.0.0) 77 | faraday (~> 1.0) 78 | faraday-cookie_jar (~> 0.0.6) 79 | faraday_middleware (~> 1.0) 80 | fastimage (>= 2.1.0, < 3.0.0) 81 | gh_inspector (>= 1.1.2, < 2.0.0) 82 | google-apis-androidpublisher_v3 (~> 0.3) 83 | google-apis-playcustomapp_v1 (~> 0.1) 84 | google-cloud-storage (~> 1.31) 85 | highline (~> 2.0) 86 | json (< 3.0.0) 87 | jwt (>= 2.1.0, < 3) 88 | mini_magick (>= 4.9.4, < 5.0.0) 89 | multipart-post (~> 2.0.0) 90 | naturally (~> 2.2) 91 | optparse (~> 0.1.1) 92 | plist (>= 3.1.0, < 4.0.0) 93 | rubyzip (>= 2.0.0, < 3.0.0) 94 | security (= 0.1.3) 95 | simctl (~> 1.6.3) 96 | terminal-notifier (>= 2.0.0, < 3.0.0) 97 | terminal-table (>= 1.4.5, < 2.0.0) 98 | tty-screen (>= 0.6.3, < 1.0.0) 99 | tty-spinner (>= 0.8.0, < 1.0.0) 100 | word_wrap (~> 1.0.0) 101 | xcodeproj (>= 1.13.0, < 2.0.0) 102 | xcpretty (~> 0.3.0) 103 | xcpretty-travis-formatter (>= 0.0.3) 104 | gh_inspector (1.1.3) 105 | google-apis-androidpublisher_v3 (0.11.0) 106 | google-apis-core (>= 0.4, < 2.a) 107 | google-apis-core (0.4.1) 108 | addressable (~> 2.5, >= 2.5.1) 109 | googleauth (>= 0.16.2, < 2.a) 110 | httpclient (>= 2.8.1, < 3.a) 111 | mini_mime (~> 1.0) 112 | representable (~> 3.0) 113 | retriable (>= 2.0, < 4.a) 114 | rexml 115 | webrick 116 | google-apis-iamcredentials_v1 (0.7.0) 117 | google-apis-core (>= 0.4, < 2.a) 118 | google-apis-playcustomapp_v1 (0.5.0) 119 | google-apis-core (>= 0.4, < 2.a) 120 | google-apis-storage_v1 (0.8.0) 121 | google-apis-core (>= 0.4, < 2.a) 122 | google-cloud-core (1.6.0) 123 | google-cloud-env (~> 1.0) 124 | google-cloud-errors (~> 1.0) 125 | google-cloud-env (1.5.0) 126 | faraday (>= 0.17.3, < 2.0) 127 | google-cloud-errors (1.2.0) 128 | google-cloud-storage (1.34.1) 129 | addressable (~> 2.5) 130 | digest-crc (~> 0.4) 131 | google-apis-iamcredentials_v1 (~> 0.1) 132 | google-apis-storage_v1 (~> 0.1) 133 | google-cloud-core (~> 1.6) 134 | googleauth (>= 0.16.2, < 2.a) 135 | mini_mime (~> 1.0) 136 | googleauth (1.0.0) 137 | faraday (>= 0.17.3, < 2.0) 138 | jwt (>= 1.4, < 3.0) 139 | memoist (~> 0.16) 140 | multi_json (~> 1.11) 141 | os (>= 0.9, < 2.0) 142 | signet (>= 0.16, < 2.a) 143 | highline (2.0.3) 144 | http-cookie (1.0.4) 145 | domain_name (~> 0.5) 146 | httpclient (2.8.3) 147 | jmespath (1.4.0) 148 | json (2.5.1) 149 | jwt (2.3.0) 150 | memoist (0.16.2) 151 | mini_magick (4.11.0) 152 | mini_mime (1.1.1) 153 | multi_json (1.15.0) 154 | multipart-post (2.0.0) 155 | nanaimo (0.3.0) 156 | naturally (2.2.1) 157 | optparse (0.1.1) 158 | os (1.1.1) 159 | plist (3.6.0) 160 | public_suffix (4.0.6) 161 | rake (13.0.6) 162 | representable (3.1.1) 163 | declarative (< 0.1.0) 164 | trailblazer-option (>= 0.1.1, < 0.2.0) 165 | uber (< 0.2.0) 166 | retriable (3.1.2) 167 | rexml (3.2.5) 168 | rouge (2.0.7) 169 | ruby2_keywords (0.0.5) 170 | rubyzip (2.3.2) 171 | security (0.1.3) 172 | signet (0.16.0) 173 | addressable (~> 2.8) 174 | faraday (>= 0.17.3, < 2.0) 175 | jwt (>= 1.5, < 3.0) 176 | multi_json (~> 1.10) 177 | simctl (1.6.8) 178 | CFPropertyList 179 | naturally 180 | terminal-notifier (2.0.0) 181 | terminal-table (1.8.0) 182 | unicode-display_width (~> 1.1, >= 1.1.1) 183 | trailblazer-option (0.1.1) 184 | tty-cursor (0.7.1) 185 | tty-screen (0.8.1) 186 | tty-spinner (0.9.3) 187 | tty-cursor (~> 0.7) 188 | uber (0.1.0) 189 | unf (0.1.4) 190 | unf_ext 191 | unf_ext (0.0.8) 192 | unicode-display_width (1.8.0) 193 | webrick (1.7.0) 194 | word_wrap (1.0.0) 195 | xcodeproj (1.21.0) 196 | CFPropertyList (>= 2.3.3, < 4.0) 197 | atomos (~> 0.1.3) 198 | claide (>= 1.0.2, < 2.0) 199 | colored2 (~> 3.1) 200 | nanaimo (~> 0.3.0) 201 | rexml (~> 3.2.4) 202 | xcpretty (0.3.0) 203 | rouge (~> 2.0.7) 204 | xcpretty-travis-formatter (1.0.1) 205 | xcpretty (~> 0.2, >= 0.0.7) 206 | 207 | PLATFORMS 208 | ruby 209 | 210 | DEPENDENCIES 211 | fastlane 212 | 213 | BUNDLED WITH 214 | 2.2.28 215 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | platform :ios, '11.0' 5 | 6 | target 'CachePodsDemo' do 7 | config = use_native_modules! 8 | 9 | use_react_native!( 10 | :path => config[:reactNativePath], 11 | # to enable hermes on iOS, change `false` to `true` and then install pods 12 | :hermes_enabled => false 13 | ) 14 | 15 | target 'CachePodsDemoTests' do 16 | inherit! :complete 17 | # Pods for testing 18 | end 19 | 20 | # Enables Flipper. 21 | # 22 | # Note that if you have use_frameworks! enabled, Flipper will not work and 23 | # you should disable the next line. 24 | use_flipper!() 25 | 26 | post_install do |installer| 27 | react_native_post_install(installer) 28 | end 29 | end -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - CocoaAsyncSocket (7.6.5) 4 | - DoubleConversion (1.1.6) 5 | - FBLazyVector (0.65.1) 6 | - FBReactNativeSpec (0.65.1): 7 | - RCT-Folly (= 2021.04.26.00) 8 | - RCTRequired (= 0.65.1) 9 | - RCTTypeSafety (= 0.65.1) 10 | - React-Core (= 0.65.1) 11 | - React-jsi (= 0.65.1) 12 | - ReactCommon/turbomodule/core (= 0.65.1) 13 | - Flipper (0.93.0): 14 | - Flipper-Folly (~> 2.6) 15 | - Flipper-RSocket (~> 1.4) 16 | - Flipper-Boost-iOSX (1.76.0.1.11) 17 | - Flipper-DoubleConversion (3.1.7) 18 | - Flipper-Fmt (7.1.7) 19 | - Flipper-Folly (2.6.7): 20 | - Flipper-Boost-iOSX 21 | - Flipper-DoubleConversion 22 | - Flipper-Fmt (= 7.1.7) 23 | - Flipper-Glog 24 | - libevent (~> 2.1.12) 25 | - OpenSSL-Universal (= 1.1.180) 26 | - Flipper-Glog (0.3.6) 27 | - Flipper-PeerTalk (0.0.4) 28 | - Flipper-RSocket (1.4.3): 29 | - Flipper-Folly (~> 2.6) 30 | - FlipperKit (0.93.0): 31 | - FlipperKit/Core (= 0.93.0) 32 | - FlipperKit/Core (0.93.0): 33 | - Flipper (~> 0.93.0) 34 | - FlipperKit/CppBridge 35 | - FlipperKit/FBCxxFollyDynamicConvert 36 | - FlipperKit/FBDefines 37 | - FlipperKit/FKPortForwarding 38 | - FlipperKit/CppBridge (0.93.0): 39 | - Flipper (~> 0.93.0) 40 | - FlipperKit/FBCxxFollyDynamicConvert (0.93.0): 41 | - Flipper-Folly (~> 2.6) 42 | - FlipperKit/FBDefines (0.93.0) 43 | - FlipperKit/FKPortForwarding (0.93.0): 44 | - CocoaAsyncSocket (~> 7.6) 45 | - Flipper-PeerTalk (~> 0.0.4) 46 | - FlipperKit/FlipperKitHighlightOverlay (0.93.0) 47 | - FlipperKit/FlipperKitLayoutHelpers (0.93.0): 48 | - FlipperKit/Core 49 | - FlipperKit/FlipperKitHighlightOverlay 50 | - FlipperKit/FlipperKitLayoutTextSearchable 51 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.93.0): 52 | - FlipperKit/Core 53 | - FlipperKit/FlipperKitHighlightOverlay 54 | - FlipperKit/FlipperKitLayoutHelpers 55 | - YogaKit (~> 1.18) 56 | - FlipperKit/FlipperKitLayoutPlugin (0.93.0): 57 | - FlipperKit/Core 58 | - FlipperKit/FlipperKitHighlightOverlay 59 | - FlipperKit/FlipperKitLayoutHelpers 60 | - FlipperKit/FlipperKitLayoutIOSDescriptors 61 | - FlipperKit/FlipperKitLayoutTextSearchable 62 | - YogaKit (~> 1.18) 63 | - FlipperKit/FlipperKitLayoutTextSearchable (0.93.0) 64 | - FlipperKit/FlipperKitNetworkPlugin (0.93.0): 65 | - FlipperKit/Core 66 | - FlipperKit/FlipperKitReactPlugin (0.93.0): 67 | - FlipperKit/Core 68 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.93.0): 69 | - FlipperKit/Core 70 | - FlipperKit/SKIOSNetworkPlugin (0.93.0): 71 | - FlipperKit/Core 72 | - FlipperKit/FlipperKitNetworkPlugin 73 | - fmt (6.2.1) 74 | - glog (0.3.5) 75 | - libevent (2.1.12) 76 | - OpenSSL-Universal (1.1.180) 77 | - RCT-Folly (2021.04.26.00): 78 | - boost-for-react-native 79 | - DoubleConversion 80 | - fmt (~> 6.2.1) 81 | - glog 82 | - RCT-Folly/Default (= 2021.04.26.00) 83 | - RCT-Folly/Default (2021.04.26.00): 84 | - boost-for-react-native 85 | - DoubleConversion 86 | - fmt (~> 6.2.1) 87 | - glog 88 | - RCTRequired (0.65.1) 89 | - RCTTypeSafety (0.65.1): 90 | - FBLazyVector (= 0.65.1) 91 | - RCT-Folly (= 2021.04.26.00) 92 | - RCTRequired (= 0.65.1) 93 | - React-Core (= 0.65.1) 94 | - React (0.65.1): 95 | - React-Core (= 0.65.1) 96 | - React-Core/DevSupport (= 0.65.1) 97 | - React-Core/RCTWebSocket (= 0.65.1) 98 | - React-RCTActionSheet (= 0.65.1) 99 | - React-RCTAnimation (= 0.65.1) 100 | - React-RCTBlob (= 0.65.1) 101 | - React-RCTImage (= 0.65.1) 102 | - React-RCTLinking (= 0.65.1) 103 | - React-RCTNetwork (= 0.65.1) 104 | - React-RCTSettings (= 0.65.1) 105 | - React-RCTText (= 0.65.1) 106 | - React-RCTVibration (= 0.65.1) 107 | - React-callinvoker (0.65.1) 108 | - React-Core (0.65.1): 109 | - glog 110 | - RCT-Folly (= 2021.04.26.00) 111 | - React-Core/Default (= 0.65.1) 112 | - React-cxxreact (= 0.65.1) 113 | - React-jsi (= 0.65.1) 114 | - React-jsiexecutor (= 0.65.1) 115 | - React-perflogger (= 0.65.1) 116 | - Yoga 117 | - React-Core/CoreModulesHeaders (0.65.1): 118 | - glog 119 | - RCT-Folly (= 2021.04.26.00) 120 | - React-Core/Default 121 | - React-cxxreact (= 0.65.1) 122 | - React-jsi (= 0.65.1) 123 | - React-jsiexecutor (= 0.65.1) 124 | - React-perflogger (= 0.65.1) 125 | - Yoga 126 | - React-Core/Default (0.65.1): 127 | - glog 128 | - RCT-Folly (= 2021.04.26.00) 129 | - React-cxxreact (= 0.65.1) 130 | - React-jsi (= 0.65.1) 131 | - React-jsiexecutor (= 0.65.1) 132 | - React-perflogger (= 0.65.1) 133 | - Yoga 134 | - React-Core/DevSupport (0.65.1): 135 | - glog 136 | - RCT-Folly (= 2021.04.26.00) 137 | - React-Core/Default (= 0.65.1) 138 | - React-Core/RCTWebSocket (= 0.65.1) 139 | - React-cxxreact (= 0.65.1) 140 | - React-jsi (= 0.65.1) 141 | - React-jsiexecutor (= 0.65.1) 142 | - React-jsinspector (= 0.65.1) 143 | - React-perflogger (= 0.65.1) 144 | - Yoga 145 | - React-Core/RCTActionSheetHeaders (0.65.1): 146 | - glog 147 | - RCT-Folly (= 2021.04.26.00) 148 | - React-Core/Default 149 | - React-cxxreact (= 0.65.1) 150 | - React-jsi (= 0.65.1) 151 | - React-jsiexecutor (= 0.65.1) 152 | - React-perflogger (= 0.65.1) 153 | - Yoga 154 | - React-Core/RCTAnimationHeaders (0.65.1): 155 | - glog 156 | - RCT-Folly (= 2021.04.26.00) 157 | - React-Core/Default 158 | - React-cxxreact (= 0.65.1) 159 | - React-jsi (= 0.65.1) 160 | - React-jsiexecutor (= 0.65.1) 161 | - React-perflogger (= 0.65.1) 162 | - Yoga 163 | - React-Core/RCTBlobHeaders (0.65.1): 164 | - glog 165 | - RCT-Folly (= 2021.04.26.00) 166 | - React-Core/Default 167 | - React-cxxreact (= 0.65.1) 168 | - React-jsi (= 0.65.1) 169 | - React-jsiexecutor (= 0.65.1) 170 | - React-perflogger (= 0.65.1) 171 | - Yoga 172 | - React-Core/RCTImageHeaders (0.65.1): 173 | - glog 174 | - RCT-Folly (= 2021.04.26.00) 175 | - React-Core/Default 176 | - React-cxxreact (= 0.65.1) 177 | - React-jsi (= 0.65.1) 178 | - React-jsiexecutor (= 0.65.1) 179 | - React-perflogger (= 0.65.1) 180 | - Yoga 181 | - React-Core/RCTLinkingHeaders (0.65.1): 182 | - glog 183 | - RCT-Folly (= 2021.04.26.00) 184 | - React-Core/Default 185 | - React-cxxreact (= 0.65.1) 186 | - React-jsi (= 0.65.1) 187 | - React-jsiexecutor (= 0.65.1) 188 | - React-perflogger (= 0.65.1) 189 | - Yoga 190 | - React-Core/RCTNetworkHeaders (0.65.1): 191 | - glog 192 | - RCT-Folly (= 2021.04.26.00) 193 | - React-Core/Default 194 | - React-cxxreact (= 0.65.1) 195 | - React-jsi (= 0.65.1) 196 | - React-jsiexecutor (= 0.65.1) 197 | - React-perflogger (= 0.65.1) 198 | - Yoga 199 | - React-Core/RCTSettingsHeaders (0.65.1): 200 | - glog 201 | - RCT-Folly (= 2021.04.26.00) 202 | - React-Core/Default 203 | - React-cxxreact (= 0.65.1) 204 | - React-jsi (= 0.65.1) 205 | - React-jsiexecutor (= 0.65.1) 206 | - React-perflogger (= 0.65.1) 207 | - Yoga 208 | - React-Core/RCTTextHeaders (0.65.1): 209 | - glog 210 | - RCT-Folly (= 2021.04.26.00) 211 | - React-Core/Default 212 | - React-cxxreact (= 0.65.1) 213 | - React-jsi (= 0.65.1) 214 | - React-jsiexecutor (= 0.65.1) 215 | - React-perflogger (= 0.65.1) 216 | - Yoga 217 | - React-Core/RCTVibrationHeaders (0.65.1): 218 | - glog 219 | - RCT-Folly (= 2021.04.26.00) 220 | - React-Core/Default 221 | - React-cxxreact (= 0.65.1) 222 | - React-jsi (= 0.65.1) 223 | - React-jsiexecutor (= 0.65.1) 224 | - React-perflogger (= 0.65.1) 225 | - Yoga 226 | - React-Core/RCTWebSocket (0.65.1): 227 | - glog 228 | - RCT-Folly (= 2021.04.26.00) 229 | - React-Core/Default (= 0.65.1) 230 | - React-cxxreact (= 0.65.1) 231 | - React-jsi (= 0.65.1) 232 | - React-jsiexecutor (= 0.65.1) 233 | - React-perflogger (= 0.65.1) 234 | - Yoga 235 | - React-CoreModules (0.65.1): 236 | - FBReactNativeSpec (= 0.65.1) 237 | - RCT-Folly (= 2021.04.26.00) 238 | - RCTTypeSafety (= 0.65.1) 239 | - React-Core/CoreModulesHeaders (= 0.65.1) 240 | - React-jsi (= 0.65.1) 241 | - React-RCTImage (= 0.65.1) 242 | - ReactCommon/turbomodule/core (= 0.65.1) 243 | - React-cxxreact (0.65.1): 244 | - boost-for-react-native (= 1.63.0) 245 | - DoubleConversion 246 | - glog 247 | - RCT-Folly (= 2021.04.26.00) 248 | - React-callinvoker (= 0.65.1) 249 | - React-jsi (= 0.65.1) 250 | - React-jsinspector (= 0.65.1) 251 | - React-perflogger (= 0.65.1) 252 | - React-runtimeexecutor (= 0.65.1) 253 | - React-jsi (0.65.1): 254 | - boost-for-react-native (= 1.63.0) 255 | - DoubleConversion 256 | - glog 257 | - RCT-Folly (= 2021.04.26.00) 258 | - React-jsi/Default (= 0.65.1) 259 | - React-jsi/Default (0.65.1): 260 | - boost-for-react-native (= 1.63.0) 261 | - DoubleConversion 262 | - glog 263 | - RCT-Folly (= 2021.04.26.00) 264 | - React-jsiexecutor (0.65.1): 265 | - DoubleConversion 266 | - glog 267 | - RCT-Folly (= 2021.04.26.00) 268 | - React-cxxreact (= 0.65.1) 269 | - React-jsi (= 0.65.1) 270 | - React-perflogger (= 0.65.1) 271 | - React-jsinspector (0.65.1) 272 | - React-perflogger (0.65.1) 273 | - React-RCTActionSheet (0.65.1): 274 | - React-Core/RCTActionSheetHeaders (= 0.65.1) 275 | - React-RCTAnimation (0.65.1): 276 | - FBReactNativeSpec (= 0.65.1) 277 | - RCT-Folly (= 2021.04.26.00) 278 | - RCTTypeSafety (= 0.65.1) 279 | - React-Core/RCTAnimationHeaders (= 0.65.1) 280 | - React-jsi (= 0.65.1) 281 | - ReactCommon/turbomodule/core (= 0.65.1) 282 | - React-RCTBlob (0.65.1): 283 | - FBReactNativeSpec (= 0.65.1) 284 | - RCT-Folly (= 2021.04.26.00) 285 | - React-Core/RCTBlobHeaders (= 0.65.1) 286 | - React-Core/RCTWebSocket (= 0.65.1) 287 | - React-jsi (= 0.65.1) 288 | - React-RCTNetwork (= 0.65.1) 289 | - ReactCommon/turbomodule/core (= 0.65.1) 290 | - React-RCTImage (0.65.1): 291 | - FBReactNativeSpec (= 0.65.1) 292 | - RCT-Folly (= 2021.04.26.00) 293 | - RCTTypeSafety (= 0.65.1) 294 | - React-Core/RCTImageHeaders (= 0.65.1) 295 | - React-jsi (= 0.65.1) 296 | - React-RCTNetwork (= 0.65.1) 297 | - ReactCommon/turbomodule/core (= 0.65.1) 298 | - React-RCTLinking (0.65.1): 299 | - FBReactNativeSpec (= 0.65.1) 300 | - React-Core/RCTLinkingHeaders (= 0.65.1) 301 | - React-jsi (= 0.65.1) 302 | - ReactCommon/turbomodule/core (= 0.65.1) 303 | - React-RCTNetwork (0.65.1): 304 | - FBReactNativeSpec (= 0.65.1) 305 | - RCT-Folly (= 2021.04.26.00) 306 | - RCTTypeSafety (= 0.65.1) 307 | - React-Core/RCTNetworkHeaders (= 0.65.1) 308 | - React-jsi (= 0.65.1) 309 | - ReactCommon/turbomodule/core (= 0.65.1) 310 | - React-RCTSettings (0.65.1): 311 | - FBReactNativeSpec (= 0.65.1) 312 | - RCT-Folly (= 2021.04.26.00) 313 | - RCTTypeSafety (= 0.65.1) 314 | - React-Core/RCTSettingsHeaders (= 0.65.1) 315 | - React-jsi (= 0.65.1) 316 | - ReactCommon/turbomodule/core (= 0.65.1) 317 | - React-RCTText (0.65.1): 318 | - React-Core/RCTTextHeaders (= 0.65.1) 319 | - React-RCTVibration (0.65.1): 320 | - FBReactNativeSpec (= 0.65.1) 321 | - RCT-Folly (= 2021.04.26.00) 322 | - React-Core/RCTVibrationHeaders (= 0.65.1) 323 | - React-jsi (= 0.65.1) 324 | - ReactCommon/turbomodule/core (= 0.65.1) 325 | - React-runtimeexecutor (0.65.1): 326 | - React-jsi (= 0.65.1) 327 | - ReactCommon/turbomodule/core (0.65.1): 328 | - DoubleConversion 329 | - glog 330 | - RCT-Folly (= 2021.04.26.00) 331 | - React-callinvoker (= 0.65.1) 332 | - React-Core (= 0.65.1) 333 | - React-cxxreact (= 0.65.1) 334 | - React-jsi (= 0.65.1) 335 | - React-perflogger (= 0.65.1) 336 | - Yoga (1.14.0) 337 | - YogaKit (1.18.1): 338 | - Yoga (~> 1.14) 339 | 340 | DEPENDENCIES: 341 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 342 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 343 | - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) 344 | - Flipper (= 0.93.0) 345 | - Flipper-Boost-iOSX (= 1.76.0.1.11) 346 | - Flipper-DoubleConversion (= 3.1.7) 347 | - Flipper-Fmt (= 7.1.7) 348 | - Flipper-Folly (= 2.6.7) 349 | - Flipper-Glog (= 0.3.6) 350 | - Flipper-PeerTalk (= 0.0.4) 351 | - Flipper-RSocket (= 1.4.3) 352 | - FlipperKit (= 0.93.0) 353 | - FlipperKit/Core (= 0.93.0) 354 | - FlipperKit/CppBridge (= 0.93.0) 355 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.93.0) 356 | - FlipperKit/FBDefines (= 0.93.0) 357 | - FlipperKit/FKPortForwarding (= 0.93.0) 358 | - FlipperKit/FlipperKitHighlightOverlay (= 0.93.0) 359 | - FlipperKit/FlipperKitLayoutPlugin (= 0.93.0) 360 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.93.0) 361 | - FlipperKit/FlipperKitNetworkPlugin (= 0.93.0) 362 | - FlipperKit/FlipperKitReactPlugin (= 0.93.0) 363 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.93.0) 364 | - FlipperKit/SKIOSNetworkPlugin (= 0.93.0) 365 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 366 | - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) 367 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 368 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 369 | - React (from `../node_modules/react-native/`) 370 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 371 | - React-Core (from `../node_modules/react-native/`) 372 | - React-Core/DevSupport (from `../node_modules/react-native/`) 373 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 374 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 375 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 376 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 377 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 378 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 379 | - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) 380 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 381 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 382 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 383 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 384 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 385 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 386 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 387 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 388 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 389 | - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) 390 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 391 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 392 | 393 | SPEC REPOS: 394 | trunk: 395 | - boost-for-react-native 396 | - CocoaAsyncSocket 397 | - Flipper 398 | - Flipper-Boost-iOSX 399 | - Flipper-DoubleConversion 400 | - Flipper-Fmt 401 | - Flipper-Folly 402 | - Flipper-Glog 403 | - Flipper-PeerTalk 404 | - Flipper-RSocket 405 | - FlipperKit 406 | - fmt 407 | - libevent 408 | - OpenSSL-Universal 409 | - YogaKit 410 | 411 | EXTERNAL SOURCES: 412 | DoubleConversion: 413 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 414 | FBLazyVector: 415 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 416 | FBReactNativeSpec: 417 | :path: "../node_modules/react-native/React/FBReactNativeSpec" 418 | glog: 419 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 420 | RCT-Folly: 421 | :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" 422 | RCTRequired: 423 | :path: "../node_modules/react-native/Libraries/RCTRequired" 424 | RCTTypeSafety: 425 | :path: "../node_modules/react-native/Libraries/TypeSafety" 426 | React: 427 | :path: "../node_modules/react-native/" 428 | React-callinvoker: 429 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 430 | React-Core: 431 | :path: "../node_modules/react-native/" 432 | React-CoreModules: 433 | :path: "../node_modules/react-native/React/CoreModules" 434 | React-cxxreact: 435 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 436 | React-jsi: 437 | :path: "../node_modules/react-native/ReactCommon/jsi" 438 | React-jsiexecutor: 439 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 440 | React-jsinspector: 441 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 442 | React-perflogger: 443 | :path: "../node_modules/react-native/ReactCommon/reactperflogger" 444 | React-RCTActionSheet: 445 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 446 | React-RCTAnimation: 447 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 448 | React-RCTBlob: 449 | :path: "../node_modules/react-native/Libraries/Blob" 450 | React-RCTImage: 451 | :path: "../node_modules/react-native/Libraries/Image" 452 | React-RCTLinking: 453 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 454 | React-RCTNetwork: 455 | :path: "../node_modules/react-native/Libraries/Network" 456 | React-RCTSettings: 457 | :path: "../node_modules/react-native/Libraries/Settings" 458 | React-RCTText: 459 | :path: "../node_modules/react-native/Libraries/Text" 460 | React-RCTVibration: 461 | :path: "../node_modules/react-native/Libraries/Vibration" 462 | React-runtimeexecutor: 463 | :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" 464 | ReactCommon: 465 | :path: "../node_modules/react-native/ReactCommon" 466 | Yoga: 467 | :path: "../node_modules/react-native/ReactCommon/yoga" 468 | 469 | SPEC CHECKSUMS: 470 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 471 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99 472 | DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662 473 | FBLazyVector: 33c82491102f20ecddb6c6a2c273696ace3191e0 474 | FBReactNativeSpec: df8f81d2a7541ee6755a047b398a5cb5a72acd0e 475 | Flipper: b1fddf9a17c32097b2b4c806ad158b2f36bb2692 476 | Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c 477 | Flipper-DoubleConversion: 57ffbe81ef95306cc9e69c4aa3aeeeeb58a6a28c 478 | Flipper-Fmt: 60cbdd92fc254826e61d669a5d87ef7015396a9b 479 | Flipper-Folly: 83af37379faa69497529e414bd43fbfc7cae259a 480 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6 481 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9 482 | Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541 483 | FlipperKit: aec2d931adeee48a07bab1ea8bcc8a6bb87dfce4 484 | fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 485 | glog: 5337263514dd6f09803962437687240c5dc39aa4 486 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 487 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b 488 | RCT-Folly: 0dd9e1eb86348ecab5ba76f910b56f4b5fef3c46 489 | RCTRequired: 6cf071ab2adfd769014b3d94373744ee6e789530 490 | RCTTypeSafety: b829c59453478bb5b02487b8de3336386ab93ab1 491 | React: 29d8a785041b96a2754c25cc16ddea57b7a618ce 492 | React-callinvoker: 2857b61132bd7878b736e282581f4b42fd93002b 493 | React-Core: 001e21bad5ca41e59e9d90df5c0b53da04c3ce8e 494 | React-CoreModules: 0a0410ab296a62ab38e2f8d321e822d1fcc2fe49 495 | React-cxxreact: 8d904967134ae8ff0119c5357c42eaae976806f8 496 | React-jsi: 12913c841713a15f64eabf5c9ad98592c0ec5940 497 | React-jsiexecutor: 43f2542aed3c26e42175b339f8d37fe3dd683765 498 | React-jsinspector: 41e58e5b8e3e0bf061fdf725b03f2144014a8fb0 499 | React-perflogger: fd28ee1f2b5b150b00043f0301d96bd417fdc339 500 | React-RCTActionSheet: 7f3fa0855c346aa5d7c60f9ced16e067db6d29fa 501 | React-RCTAnimation: 2119a18ee26159004b001bc56404ca5dbaae6077 502 | React-RCTBlob: a493cc306deeaba0c0efa8ecec2da154afd3a798 503 | React-RCTImage: 54999ddc896b7db6650af5760607aaebdf30425c 504 | React-RCTLinking: 7fb3fa6397d3700c69c3d361870a299f04f1a2e6 505 | React-RCTNetwork: 329ee4f75bd2deb8cf6c4b14231b5bb272cbd9af 506 | React-RCTSettings: 1a659d58e45719bc77c280dbebce6a5a5a2733f5 507 | React-RCTText: e12d7aae2a038be9ae72815436677a7c6549dd26 508 | React-RCTVibration: 92d41c2442e5328cc4d342cd7f78e5876b68bae5 509 | React-runtimeexecutor: 85187f19dd9c47a7c102f9994f9d14e4dc2110de 510 | ReactCommon: eafed38eec7b591c31751bfa7494801618460459 511 | Yoga: aa0cb45287ebe1004c02a13f279c55a95f1572f4 512 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a 513 | 514 | PODFILE CHECKSUM: 82d806960f342c1dc01769b967b559fff26d38ca 515 | 516 | COCOAPODS: 1.11.2 517 | -------------------------------------------------------------------------------- /ios/fastlane/Appfile: -------------------------------------------------------------------------------- 1 | # app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app 2 | # apple_id("[[APPLE_ID]]") # Your Apple email address 3 | 4 | 5 | # For more information about the Appfile, see: 6 | # https://docs.fastlane.tools/advanced/#appfile 7 | -------------------------------------------------------------------------------- /ios/fastlane/Fastfile: -------------------------------------------------------------------------------- 1 | project_name= "CachePodsDemo" 2 | scheme = project_name 3 | build_configuration = "Release" 4 | project_path = "./#{project_name}.xcodeproj" 5 | export_method = "app-store" 6 | cached_derived_data_path = File.expand_path("../cached_derived_data") 7 | cache_folder = File.expand_path("#{cached_derived_data_path}/Build/Intermediates.noindex/ArchiveIntermediates/#{scheme}/BuildProductsPath/#{build_configuration}-iphoneos") 8 | intermediates_path = "#{cached_derived_data_path}/Build/Intermediates.noindex/ArchiveIntermediates/#{project_name}" 9 | 10 | default_platform(:ios) 11 | 12 | platform :ios do 13 | desc "Build iOS" 14 | lane :build do 15 | build_app( 16 | workspace: "#{project_name}.xcworkspace", 17 | scheme: project_name, 18 | export_xcargs: "-allowProvisioningUpdates" 19 | ) 20 | end 21 | 22 | desc "Build iOS with pods caching" 23 | lane :cached_build do 24 | 25 | puts "### check if cache exists " 26 | if(File.exist?(cache_folder)) 27 | # - Loop over scripts in build phase `[CP] Copy Pods Resources` 28 | # - Prepend `BUILT_PRODUCTS_DIR=#{cache_folder}`` 29 | fastlane_require 'xcodeproj' 30 | project = Xcodeproj::Project.open("../#{project_name}.xcodeproj") 31 | target = project.targets.select { |target| target.name == project_name }.first 32 | phase = target.shell_script_build_phases.select { |phase| phase.name && phase.name.include?('Copy Pods Resources') }.first 33 | if (!phase.shell_script.start_with?('BUILT_PRODUCTS_DIR')) 34 | phase.shell_script = "BUILT_PRODUCTS_DIR=#{cache_folder} #{phase.shell_script}" 35 | project.save() 36 | end 37 | 38 | puts "### build only .xcodeproj" 39 | gym( 40 | clean: false, 41 | project: "./#{project_name}.xcodeproj", 42 | scheme: scheme, 43 | export_method: export_method, 44 | configuration: build_configuration, 45 | destination: 'generic/platform=iOS', 46 | export_options: { 47 | compileBitcode: false, 48 | uploadBitcode: false, 49 | uploadSymbols: false 50 | }, 51 | xcargs: [ 52 | # Set paths where xcode can find pods binaries 53 | "PODS_CONFIGURATION_BUILD_DIR=#{cache_folder}", 54 | "FRAMEWORK_SEARCH_PATHS='#{cache_folder} $(inherited)'", 55 | "LIBRARY_SEARCH_PATHS='#{cache_folder} $(inherited)'", 56 | "SWIFT_INCLUDE_PATHS=#{cache_folder}" 57 | ].join(" ") 58 | ) 59 | else 60 | puts "### build full app .xcworkspace" 61 | gym( 62 | scheme: scheme, 63 | workspace: "./#{project_name}.xcworkspace", 64 | export_method: export_method, 65 | derived_data_path: cached_derived_data_path, 66 | configuration: build_configuration, 67 | clean: true, 68 | ) 69 | 70 | puts "### reduce cache size by removing unnecessary files" 71 | require 'fileutils'; 72 | dirs = [ 73 | File.expand_path("#{cached_derived_data_path}/info.plist"), 74 | File.expand_path("#{cached_derived_data_path}/Logs"), 75 | File.expand_path("#{cached_derived_data_path}/SourcePackages"), 76 | File.expand_path("#{cached_derived_data_path}/ModuleCache.noindex"), 77 | File.expand_path("#{intermediates_path}/IntermediateBuildFilesPath/#{project_name}.build"), 78 | File.expand_path("#{intermediates_path}/IntermediateBuildFilesPath/XCBuildData"), 79 | File.expand_path("#{intermediates_path}/BuildProductsPath/SwiftSupport"), 80 | File.expand_path("#{intermediates_path}/PrecompiledHeaders") 81 | ] 82 | dirs.each { |dir| FileUtils.rm_rf(dir) } 83 | end 84 | end 85 | end 86 | -------------------------------------------------------------------------------- /ios/fastlane/README.md: -------------------------------------------------------------------------------- 1 | fastlane documentation 2 | ================ 3 | # Installation 4 | 5 | Make sure you have the latest version of the Xcode command line tools installed: 6 | 7 | ``` 8 | xcode-select --install 9 | ``` 10 | 11 | Install _fastlane_ using 12 | ``` 13 | [sudo] gem install fastlane -NV 14 | ``` 15 | or alternatively using `brew install fastlane` 16 | 17 | # Available Actions 18 | ## iOS 19 | ### ios build 20 | ``` 21 | fastlane ios build 22 | ``` 23 | Build iOS 24 | ### ios cached_build 25 | ``` 26 | fastlane ios cached_build 27 | ``` 28 | Build iOS with pods caching 29 | 30 | ---- 31 | 32 | This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. 33 | More information about fastlane can be found on [fastlane.tools](https://fastlane.tools). 34 | The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools). 35 | -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: true, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cachepodsdemo", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "android": "react-native run-android", 7 | "ios": "react-native run-ios", 8 | "start": "react-native start", 9 | "test": "jest", 10 | "lint": "eslint . --ext .js,.jsx,.ts,.tsx" 11 | }, 12 | "dependencies": { 13 | "react": "17.0.2", 14 | "react-native": "0.65.1" 15 | }, 16 | "devDependencies": { 17 | "@babel/core": "^7.12.9", 18 | "@babel/runtime": "^7.12.5", 19 | "@react-native-community/eslint-config": "^2.0.0", 20 | "@types/jest": "^26.0.23", 21 | "@types/react-native": "^0.65.0", 22 | "@types/react-test-renderer": "^17.0.1", 23 | "babel-jest": "^26.6.3", 24 | "eslint": "^7.14.0", 25 | "jest": "^26.6.3", 26 | "metro-react-native-babel-preset": "^0.66.0", 27 | "react-native-codegen": "^0.0.7", 28 | "react-test-renderer": "17.0.2", 29 | "typescript": "^3.8.3" 30 | }, 31 | "resolutions": { 32 | "@types/react": "^17" 33 | }, 34 | "jest": { 35 | "preset": "react-native", 36 | "moduleFileExtensions": [ 37 | "ts", 38 | "tsx", 39 | "js", 40 | "jsx", 41 | "json", 42 | "node" 43 | ] 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /samples/azure_pipelines_ios.yml: -------------------------------------------------------------------------------- 1 | name: $(Date:yyyyMMdd)$(Rev:rr) 2 | 3 | trigger: none 4 | 5 | variables: 6 | YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn 7 | MY_BUILD_NUMBER: $(Build.BuildNumber) 8 | NODE_OPTIONS: "--max_old_space_size=4096" 9 | 10 | jobs: 11 | - job: BuildApp 12 | displayName: 'Build App' 13 | timeoutInMinutes: 120 14 | cancelTimeoutInMinutes: 120 15 | pool: 16 | vmImage: 'macos-11' 17 | 18 | steps: 19 | 20 | - task: NodeTool@0 21 | inputs: 22 | versionSpec: '14.x' 23 | 24 | - task: Bash@3 25 | displayName: "pods: md5 Podfile.lock" 26 | inputs: 27 | targetType: 'inline' 28 | script: | 29 | cd ios 30 | echo "Podfile.lock md5: $(md5 -q Podfile.lock)" 31 | PODFILE_LOCK_MD5="$(md5 -q Podfile.lock)" 32 | echo "##vso[task.setvariable variable=PODFILE_LOCK_MD5]$PODFILE_LOCK_MD5" 33 | 34 | - task: AzureCLI@2 35 | continueOnError: true 36 | displayName: "pods: check cache" 37 | inputs: 38 | azureSubscription: 'Pay-As-You-Go (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)' 39 | scriptType: 'bash' 40 | scriptLocation: 'inlineScript' 41 | inlineScript: | 42 | az storage blob download -f ios/pods_cache.zip -c cache -n "pods_cache-$(PODFILE_LOCK_MD5).zip" --connection-string "$(AZURE_STORAGE_CONNECTION_STRING)" 43 | 44 | - task: Bash@3 45 | continueOnError: true 46 | condition: succeededOrFailed() 47 | displayName: "pods: unzip" 48 | inputs: 49 | targetType: 'inline' 50 | script: | 51 | cd ios 52 | unzip pods_cache.zip 53 | [ -d "Pods" ] && PODS_CACHE_RESTORED="true" 54 | echo "##vso[task.setvariable variable=PODS_CACHE_RESTORED]$PODS_CACHE_RESTORED" 55 | [ -d ".local_derived_data" ] && PODS_DERIVED_CACHE_RESTORED="true" 56 | echo "##vso[task.setvariable variable=PODS_DERIVED_CACHE_RESTORED]$PODS_DERIVED_CACHE_RESTORED" 57 | echo "executing diff Podfile.lock ./Pods/Manifest.lock ..." 58 | diff Podfile.lock ./Pods/Manifest.lock 59 | echo "Make sure Podfile.lock is same as Manifest.lock, see KHS PBI 11326" 60 | cp ./Pods/Manifest.lock Podfile.lock 61 | echo "Remove pods_cache.zip to prevent bundler error, see KHS PBI 11770 and 10674" 62 | rm pods_cache.zip 63 | 64 | - task: Cache@2 65 | inputs: 66 | key: 'yarn | "$(Agent.OS)" | yarn.lock' 67 | restoreKeys: | 68 | yarn | "$(Agent.OS)" 69 | path: $(YARN_CACHE_FOLDER) 70 | displayName: Cache Yarn packages 71 | 72 | - script: yarn install --network-timeout 1000000 --frozen-lockfile --ignore-engines 73 | 74 | - task: Bash@3 75 | displayName: "Set app variant" 76 | inputs: 77 | targetType: 'inline' 78 | script: | 79 | yarn switch 80 | 81 | - task: InstallAppleCertificate@2 82 | inputs: 83 | certSecureFile: 'xxxxxx.p12' 84 | certPwd: "$(MY_DECRYPT_KEY)" 85 | keychain: 'temp' 86 | 87 | - task: InstallAppleProvisioningProfile@1 88 | inputs: 89 | provisioningProfileLocation: 'sourceRepository' 90 | provProfileSourceRepository: "variants/$(MY_VARIANT)/ios/app.mobileprovision" 91 | 92 | - task: CocoaPods@0 93 | displayName: 'pod install using the CocoaPods task with defaults' 94 | condition: ne(variables.PODS_CACHE_RESTORED, 'true') 95 | inputs: 96 | workingDirectory: 'ios' 97 | forceRepoUpdate: false 98 | 99 | - task: Bash@3 100 | displayName: "Set buildnumber in Info.plist" 101 | inputs: 102 | targetType: 'inline' 103 | script: | 104 | echo "Setting build number $MY_BUILD_NUMBER" 105 | plutil -replace CFBundleVersion -string "$MY_BUILD_NUMBER" ios/MyApp/Info.plist 106 | 107 | - task: Bash@3 108 | displayName: "Install fastlane" 109 | inputs: 110 | targetType: 'inline' 111 | script: | 112 | cd ios 113 | bundle install 114 | 115 | - task: Bash@3 116 | displayName: "fastlane ios info" 117 | inputs: 118 | targetType: 'inline' 119 | script: | 120 | cd ios 121 | bundle exec fastlane ios info 122 | 123 | - task: Bash@3 124 | continueOnError: true 125 | displayName: "Build ios app" 126 | inputs: 127 | targetType: 'inline' 128 | script: | 129 | cd ios 130 | MY_DECRYPT_KEY="$(MY_DECRYPT_KEY)" MY_FIREBASE_CLI_TOKEN="$(MY_FIREBASE_CLI_TOKEN)" bundle exec fastlane ios cached_build 131 | 132 | - task: Bash@3 133 | displayName: "Show xCode log" 134 | inputs: 135 | targetType: 'inline' 136 | script: | 137 | cd ~/Library/Logs/gym 138 | ls 139 | cat MyApp-MyApp.log 140 | 141 | - task: Bash@3 142 | condition: ne(variables.PODS_DERIVED_CACHE_RESTORED, 'true') 143 | continueOnError: true 144 | displayName: "pods: zip" 145 | inputs: 146 | targetType: 'inline' 147 | script: | 148 | cd ios 149 | ls -la 150 | rm pods_cache.zip 151 | zip -r pods_cache.zip ./.local_derived_data 152 | zip -r pods_cache.zip ./Pods 153 | 154 | - task: AzureCLI@2 155 | displayName: "pods: upload to cache" 156 | continueOnError: true 157 | condition: ne(variables.PODS_DERIVED_CACHE_RESTORED, 'true') 158 | inputs: 159 | azureSubscription: 'Pay-As-You-Go (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)' 160 | scriptType: 'bash' 161 | scriptLocation: 'inlineScript' 162 | inlineScript: | 163 | az storage blob upload -f ios/pods_cache.zip -c cache -n "pods_cache-$(PODFILE_LOCK_MD5).zip" --connection-string "$(AZURE_STORAGE_CONNECTION_STRING)" 164 | 165 | - task: PublishBuildArtifacts@1 166 | displayName: "Publish IPA Build Artifact" 167 | inputs: 168 | PathtoPublish: "ios/MyApp.ipa" 169 | ArtifactName: 'drop' 170 | publishLocation: 'Container' 171 | 172 | - task: PublishBuildArtifacts@1 173 | displayName: "Publish dSYM Build Artifact" 174 | inputs: 175 | PathtoPublish: "ios/MyApp.app.dSYM.zip" 176 | ArtifactName: 'drop' 177 | publishLocation: 'Container' 178 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "compilerOptions": { 4 | /* Basic Options */ 5 | "target": "esnext", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ 6 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 7 | "lib": ["es2017"], /* Specify library files to be included in the compilation. */ 8 | "allowJs": true, /* Allow javascript files to be compiled. */ 9 | // "checkJs": true, /* Report errors in .js files. */ 10 | "jsx": "react-native", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 11 | // "declaration": true, /* Generates corresponding '.d.ts' file. */ 12 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 13 | // "outFile": "./", /* Concatenate and emit output to single file. */ 14 | // "outDir": "./", /* Redirect output structure to the directory. */ 15 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 16 | // "removeComments": true, /* Do not emit comments to output. */ 17 | "noEmit": true, /* Do not emit outputs. */ 18 | // "incremental": true, /* Enable incremental compilation */ 19 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 20 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 21 | "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 22 | 23 | /* Strict Type-Checking Options */ 24 | "strict": true, /* Enable all strict type-checking options. */ 25 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 26 | // "strictNullChecks": true, /* Enable strict null checks. */ 27 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 28 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 29 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 30 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 31 | 32 | /* Additional Checks */ 33 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 34 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 35 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 36 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 37 | 38 | /* Module Resolution Options */ 39 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 40 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 41 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 42 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 43 | // "typeRoots": [], /* List of folders to include type definitions from. */ 44 | // "types": [], /* Type declaration files to be included in compilation. */ 45 | "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 46 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 47 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 48 | "skipLibCheck": false, /* Skip type checking of declaration files. */ 49 | "resolveJsonModule": true /* Allows importing modules with a ‘.json’ extension, which is a common practice in node projects. */ 50 | 51 | /* Source Map Options */ 52 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 53 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 54 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 55 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 56 | 57 | /* Experimental Options */ 58 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 59 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 60 | }, 61 | "exclude": [ 62 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js" 63 | ] 64 | } 65 | --------------------------------------------------------------------------------