get dummy ios app to compile

This commit is contained in:
Bart Akeley 2019-04-27 11:31:19 -05:00
parent 9913aa3d03
commit 8463d69ef3
15 changed files with 699 additions and 258 deletions

1
.gitignore vendored
View file

@ -56,3 +56,4 @@ buck-out/
# Bundle artifact
*.jsbundle
ios/Pods/*

View file

@ -140,6 +140,7 @@ android {
}
dependencies {
compile project(':react-native-google-places')
api project(':react-native-firebase')
api project(':react-native-snackbar')
api project(':react-native-google-places')

View file

@ -3,6 +3,7 @@ package com.aretherecookies;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.arttitude360.reactnative.rngoogleplaces.RNGooglePlacesPackage;
import com.azendoo.reactnativesnackbar.SnackbarPackage;
import com.arttitude360.reactnative.rngoogleplaces.RNGooglePlacesPackage;
import com.auth0.react.A0Auth0Package;
@ -32,6 +33,7 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNGooglePlacesPackage(),
new RNFirebasePackage(),
new RNFirebaseCrashlyticsPackage(),
new SnackbarPackage(),

View file

@ -1,4 +1,6 @@
rootProject.name = 'AreThereCookies'
include ':react-native-google-places'
project(':react-native-google-places').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-google-places/android')
include ':react-native-firebase'
project(':react-native-firebase').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-firebase/android')
include ':react-native-snackbar'

View file

@ -1,53 +1,68 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
// /**
// * Sample React Native App
// * https://github.com/facebook/react-native
// * @flow
// */
// import React, { Component } from 'react';
// import {
// AppRegistry,
// StyleSheet,
// Text,
// View
// } from 'react-native';
// export default class AreThereCookies extends Component {
// render() {
// return (
// <View style={styles.container}>
// <Text style={styles.welcome}>
// Welcome to React Native!
// </Text>
// <Text style={styles.instructions}>
// To get started, edit index.ios.js
// </Text>
// <Text style={styles.instructions}>
// Press Cmd+R to reload,{'\n'}
// Cmd+D or shake for dev menu
// </Text>
// </View>
// );
// }
// }
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// justifyContent: 'center',
// alignItems: 'center',
// backgroundColor: '#F5FCFF',
// },
// welcome: {
// fontSize: 20,
// textAlign: 'center',
// margin: 10,
// },
// instructions: {
// textAlign: 'center',
// color: '#333333',
// marginBottom: 5,
// },
// });
// AppRegistry.registerComponent('AreThereCookies', () => AreThereCookies);
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import { AppRegistry, UIManager, Text, View } from 'react-native';
export default class AreThereCookies extends Component {
// UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true);
class Dummy extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.ios.js
</Text>
<Text style={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+D or shake for dev menu
</Text>
</View>
);
return <Text>Aretherecookies?</Text>
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
AppRegistry.registerComponent('AreThereCookies', () => Dummy);
AppRegistry.registerComponent('AreThereCookies', () => AreThereCookies);

20
ios/Podfile Normal file
View file

@ -0,0 +1,20 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'AreThereCookies' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for AreThereCookies
pod 'GooglePlaces', '~> 2.7'
pod 'GoogleMaps', '~> 2.7'
pod 'GooglePlacePicker', '~> 2.7'
target 'AreThereCookiesTests' do
inherit! :search_paths
# Pods for testing
end
end

31
ios/Podfile.lock Normal file
View file

@ -0,0 +1,31 @@
PODS:
- GoogleMaps (2.7.0):
- GoogleMaps/Maps (= 2.7.0)
- GoogleMaps/Base (2.7.0)
- GoogleMaps/Maps (2.7.0):
- GoogleMaps/Base
- GooglePlacePicker (2.7.0):
- GoogleMaps (= 2.7.0)
- GooglePlaces (= 2.7.0)
- GooglePlaces (2.7.0):
- GoogleMaps/Base (= 2.7.0)
DEPENDENCIES:
- GoogleMaps (~> 2.7)
- GooglePlacePicker (~> 2.7)
- GooglePlaces (~> 2.7)
SPEC REPOS:
https://github.com/cocoapods/specs.git:
- GoogleMaps
- GooglePlacePicker
- GooglePlaces
SPEC CHECKSUMS:
GoogleMaps: f79af95cb24d869457b1f961c93d3ce8b2f3b848
GooglePlacePicker: 59ea44db173c58486ad6123993e81feefcbce9c3
GooglePlaces: 3d06e6c99654545b4738ce49648745779c25f2ef
PODFILE CHECKSUM: cfd1de49b9cdf4af5bee4d0d1efbe8acf784251b
COCOAPODS: 1.6.1

File diff suppressed because it is too large Load diff

View file

@ -29,9 +29,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "AreThereCookies.app"
BuildableName = "aretherecookies.app"
BlueprintName = "AreThereCookies"
ReferencedContainer = "container:AreThereCookies.xcodeproj">
ReferencedContainer = "container:aretherecookies.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
@ -45,7 +45,7 @@
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "AreThereCookiesTests.xctest"
BlueprintName = "AreThereCookiesTests"
ReferencedContainer = "container:AreThereCookies.xcodeproj">
ReferencedContainer = "container:aretherecookies.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
@ -63,7 +63,7 @@
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "AreThereCookiesTests.xctest"
BlueprintName = "AreThereCookiesTests"
ReferencedContainer = "container:AreThereCookies.xcodeproj">
ReferencedContainer = "container:aretherecookies.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
@ -71,9 +71,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "AreThereCookies.app"
BuildableName = "aretherecookies.app"
BlueprintName = "AreThereCookies"
ReferencedContainer = "container:AreThereCookies.xcodeproj">
ReferencedContainer = "container:aretherecookies.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
@ -94,9 +94,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "AreThereCookies.app"
BuildableName = "aretherecookies.app"
BlueprintName = "AreThereCookies"
ReferencedContainer = "container:AreThereCookies.xcodeproj">
ReferencedContainer = "container:aretherecookies.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
@ -113,9 +113,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "AreThereCookies.app"
BuildableName = "aretherecookies.app"
BlueprintName = "AreThereCookies"
ReferencedContainer = "container:AreThereCookies.xcodeproj">
ReferencedContainer = "container:aretherecookies.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:aretherecookies.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View file

@ -10,6 +10,9 @@
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
@import GooglePlaces;
@import GoogleMaps;
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
@ -29,6 +32,10 @@
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
[GMSPlacesClient provideAPIKey:@"AIzaSyCZ9qD2riEctXe5gbmyWCGGsaBUf81h2PU"];
[GMSServices provideAPIKey:@"AIzaSyCZ9qD2riEctXe5gbmyWCGGsaBUf81h2PU"];
return YES;
}

View file

@ -24,8 +24,28 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>UIAppFonts</key>
<array>
<string>MaterialIcons.ttf</string>
<string>FontAwesome.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
@ -40,21 +60,5 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>NSAppTransportSecurity</key>
<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true/>
</dict>
</dict>
</dict>
</dict>
</plist>

View file

@ -19,7 +19,7 @@
"react": "16.6.1",
"react-native": "0.57.5",
"react-native-firebase": "^5.1.1",
"react-native-google-places": "^2.1.0",
"react-native-google-places": "2.5.0",
"react-native-google-signin": "0.10",
"react-native-image-picker": "^0.27",
"react-native-image-resizer": "^1.0.0",

View file

@ -4948,9 +4948,10 @@ react-native-firebase@^5.1.1:
opencollective-postinstall "^2.0.0"
prop-types "^15.6.2"
react-native-google-places@^2.1.0:
version "2.5.2"
resolved "https://registry.yarnpkg.com/react-native-google-places/-/react-native-google-places-2.5.2.tgz#62658034519ab0876ffebfdd1fb2f8503847c1cc"
react-native-google-places@2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/react-native-google-places/-/react-native-google-places-2.5.0.tgz#a52c0ee6629a5c4aa222589022f127c5fa201436"
integrity sha512-SizcXJZVLPQAECa8hNpP9osaf3kb01c+6r+5c/LvFqDEIc3wRDsRO4UgmrJyQBKmZX8Z01hUrO5T4GngG49cKQ==
react-native-google-signin@0.10:
version "0.10.0"