Skip to content

Commit

Permalink
App iOS qui build via XCode.
Browse files Browse the repository at this point in the history
Avec ce commit, l'app build correctement via XCode.
Tout ce qui est "appreactnative" a maintenant disparu. Tout est renommé "alkeyacricket". À la fois sur android et iOS.

Problèmes rencontrés et les solutions :
Pb de build : facebook/react-native#12042 (comment)
  • Loading branch information
CadiChris committed Aug 18, 2017
1 parent 7170f86 commit 18d5d63
Show file tree
Hide file tree
Showing 45 changed files with 330 additions and 2,228 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class MainActivity extends ReactActivity {
*/
@Override
protected String getMainComponentName() {
return "appreactnative";
return "alkeyacricket";
}

/** https://github.com/yamill/react-native-orientation#configuration */
Expand Down
2 changes: 1 addition & 1 deletion app-react-native/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = 'appreactnative'
rootProject.name = 'alkeyacricket'
include ':react-native-localization'
project(':react-native-localization').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-localization/android')
include ':react-native-orientation'
Expand Down
2 changes: 1 addition & 1 deletion app-react-native/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"expo": {
"sdkVersion": "17.0.0"
},
"name": "appreactnative",
"name": "alkeyacricket",
"displayName": "Alkeya Cricket"
}
2 changes: 1 addition & 1 deletion app-react-native/index.android.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('appreactnative', () => App);
AppRegistry.registerComponent('alkeyacricket', () => App);
2 changes: 1 addition & 1 deletion app-react-native/index.ios.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('appreactnative', () => App);
AppRegistry.registerComponent('alkeyacricket', () => App);
456 changes: 287 additions & 169 deletions app-react-native/ios/alkeyacricket.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app-react-native/ios/alkeyacricket/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"appreactnative"
moduleName:@"alkeyacricket"
initialProperties:nil
launchOptions:launchOptions];
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="appreactnative" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="alkeyacricket" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
<rect key="frame" x="20" y="140" width="441" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"scale": "2x",
"filename": "ipad-29x29-2x.png"
},
{
"size": "29x29",
"idiom": "ipad",
"scale": "1x",
"filename": "ipad-29x29-1x.png"
},
{
"size": "60x60",
"idiom": "iphone",
Expand Down Expand Up @@ -79,40 +85,40 @@
"filename": "ipad-20x20-1x.png"
},
{
"size": "29x29",
"size": "40x40",
"idiom": "ipad",
"scale": "1x",
"filename": "ipad-29x29-1x.png"
"scale": "2x",
"filename": "ipad-40x40-2x.png"
},
{
"size": "50x50",
"idiom": "ipad",
"scale": "1x",
"filename": "ipad-50x50-1x.png"
},
{
"size": "60x60",
"idiom": "iphone",
"scale": "3x",
"filename": "iphone-60x60-3x.png"
},
{
"size": "40x40",
"idiom": "ipad",
"scale": "1x",
"filename": "ipad-40x40-1x.png"
},
{
"size": "50x50",
"idiom": "ipad",
"scale": "2x",
"filename": "ipad-50x50-2x.png"
},
{
"size": "72x72",
"idiom": "ipad",
"scale": "1x",
"filename": "ipad-72x72-1x.png"
},
{
"size": "50x50",
"idiom": "ipad",
"scale": "2x",
"filename": "ipad-50x50-2x.png"
"size": "60x60",
"idiom": "iphone",
"scale": "3x",
"filename": "iphone-60x60-3x.png"
},
{
"size": "76x76",
Expand All @@ -137,12 +143,6 @@
"idiom": "ipad",
"scale": "2x",
"filename": "ipad-83.5x83.5-2x.png"
},
{
"size": "40x40",
"idiom": "ipad",
"scale": "2x",
"filename": "ipad-40x40-2x.png"
}
],
"info": {
Expand Down
34 changes: 17 additions & 17 deletions app-react-native/ios/alkeyacricket/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand All @@ -24,22 +24,6 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSLocationWhenInUseUsageDescription</key>
<string/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
Expand All @@ -51,6 +35,8 @@
</dict>
</dict>
</dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string/>
<key>UIAppFonts</key>
<array>
<string>Lato-Black.ttf</string>
Expand All @@ -75,5 +61,19 @@
<string>SimpleLineIcons.ttf</string>
<string>Zocial.ttf</string>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
</dict>
</plist>
54 changes: 0 additions & 54 deletions app-react-native/ios/appreactnative-tvOS/Info.plist

This file was deleted.

24 changes: 0 additions & 24 deletions app-react-native/ios/appreactnative-tvOSTests/Info.plist

This file was deleted.

Loading

0 comments on commit 18d5d63

Please sign in to comment.