Skip to content

Commit 68f69cf

Browse files
committed
maxime_commit
1 parent 4398499 commit 68f69cf

File tree

13 files changed

+181
-96
lines changed

13 files changed

+181
-96
lines changed

android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ android {
137137
}
138138

139139
dependencies {
140+
compile project(':react-native-youtube')
140141
compile fileTree(dir: "libs", include: ["*.jar"])
141142
compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
142143
compile "com.facebook.react:react-native:+" // From node_modules

android/app/src/main/java/com/reactube/MainApplication.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import android.app.Application;
44

55
import com.facebook.react.ReactApplication;
6+
import com.inprogress.reactnativeyoutube.ReactNativeYouTube;
67
import com.facebook.react.ReactNativeHost;
78
import com.facebook.react.ReactPackage;
89
import com.facebook.react.shell.MainReactPackage;
@@ -22,7 +23,8 @@ public boolean getUseDeveloperSupport() {
2223
@Override
2324
protected List<ReactPackage> getPackages() {
2425
return Arrays.<ReactPackage>asList(
25-
new MainReactPackage()
26+
new MainReactPackage(),
27+
new ReactNativeYouTube()
2628
);
2729
}
2830

android/settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
rootProject.name = 'reactube'
2+
include ':react-native-youtube'
3+
project(':react-native-youtube').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-youtube/android')
24

35
include ':app'

ios/reactube.xcodeproj/project.pbxproj

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
33E5FFB512FA4C2B883FC4F2 /* rubicon-icon-font.ttf in Resources */ = {isa = PBXBuildFile; fileRef = AB46802ED8594948912B49C9 /* rubicon-icon-font.ttf */; };
5252
369A64F5594C4D26A54D68B9 /* SimpleLineIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 7CC3DFA69BB04F83AB15D708 /* SimpleLineIcons.ttf */; };
5353
1753C730EA704C6084AA430F /* Zocial.ttf in Resources */ = {isa = PBXBuildFile; fileRef = CE74B1DC62874CB4B7A714BA /* Zocial.ttf */; };
54+
0C572AE9EC654A288EDB1C8C /* libRCTYouTube.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 21CEA989B2B346389519432E /* libRCTYouTube.a */; };
55+
C99A6127680B45F8AE337B16 /* OFL.txt in Resources */ = {isa = PBXBuildFile; fileRef = AD408B8C6AE749D598EFAAF0 /* OFL.txt */; };
56+
58770EB443FC46229F05F768 /* YTPlayerView-iframe-player.html in Resources */ = {isa = PBXBuildFile; fileRef = 459AB320529543CA9BCEED60 /* YTPlayerView-iframe-player.html */; };
5457
/* End PBXBuildFile section */
5558

5659
/* Begin PBXContainerItemProxy section */
@@ -370,6 +373,10 @@
370373
AB46802ED8594948912B49C9 /* rubicon-icon-font.ttf */ = {isa = PBXFileReference; name = "rubicon-icon-font.ttf"; path = "../node_modules/native-base/Fonts/rubicon-icon-font.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
371374
7CC3DFA69BB04F83AB15D708 /* SimpleLineIcons.ttf */ = {isa = PBXFileReference; name = "SimpleLineIcons.ttf"; path = "../node_modules/native-base/Fonts/SimpleLineIcons.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
372375
CE74B1DC62874CB4B7A714BA /* Zocial.ttf */ = {isa = PBXFileReference; name = "Zocial.ttf"; path = "../node_modules/native-base/Fonts/Zocial.ttf"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
376+
15BED9265F894B7690A37C2B /* RCTYouTube.xcodeproj */ = {isa = PBXFileReference; name = "RCTYouTube.xcodeproj"; path = "../node_modules/react-native-youtube/RCTYouTube.xcodeproj"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
377+
21CEA989B2B346389519432E /* libRCTYouTube.a */ = {isa = PBXFileReference; name = "libRCTYouTube.a"; path = "libRCTYouTube.a"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
378+
AD408B8C6AE749D598EFAAF0 /* OFL.txt */ = {isa = PBXFileReference; name = "OFL.txt"; path = "../node_modules/native-base/Fonts/OFL.txt"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
379+
459AB320529543CA9BCEED60 /* YTPlayerView-iframe-player.html */ = {isa = PBXFileReference; name = "YTPlayerView-iframe-player.html"; path = "../node_modules/react-native-youtube/assets/YTPlayerView-iframe-player.html"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; };
373380
/* End PBXFileReference section */
374381

375382
/* Begin PBXFrameworksBuildPhase section */
@@ -398,6 +405,7 @@
398405
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
399406
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
400407
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
408+
0C572AE9EC654A288EDB1C8C /* libRCTYouTube.a in Frameworks */,
401409
);
402410
runOnlyForDeploymentPostprocessing = 0;
403411
};
@@ -584,6 +592,7 @@
584592
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
585593
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
586594
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
595+
15BED9265F894B7690A37C2B /* RCTYouTube.xcodeproj */,
587596
);
588597
name = Libraries;
589598
sourceTree = "<group>";
@@ -649,6 +658,8 @@
649658
AB46802ED8594948912B49C9 /* rubicon-icon-font.ttf */,
650659
7CC3DFA69BB04F83AB15D708 /* SimpleLineIcons.ttf */,
651660
CE74B1DC62874CB4B7A714BA /* Zocial.ttf */,
661+
AD408B8C6AE749D598EFAAF0 /* OFL.txt */,
662+
459AB320529543CA9BCEED60 /* YTPlayerView-iframe-player.html */,
652663
);
653664
name = Resources;
654665
sourceTree = "<group>";
@@ -1114,6 +1125,8 @@
11141125
33E5FFB512FA4C2B883FC4F2 /* rubicon-icon-font.ttf in Resources */,
11151126
369A64F5594C4D26A54D68B9 /* SimpleLineIcons.ttf in Resources */,
11161127
1753C730EA704C6084AA430F /* Zocial.ttf in Resources */,
1128+
C99A6127680B45F8AE337B16 /* OFL.txt in Resources */,
1129+
58770EB443FC46229F05F768 /* YTPlayerView-iframe-player.html in Resources */,
11171130
);
11181131
runOnlyForDeploymentPostprocessing = 0;
11191132
};
@@ -1245,6 +1258,14 @@
12451258
);
12461259
PRODUCT_NAME = "$(TARGET_NAME)";
12471260
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactube.app/reactube";
1261+
LIBRARY_SEARCH_PATHS = (
1262+
"$(inherited)",
1263+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
1264+
);
1265+
HEADER_SEARCH_PATHS = (
1266+
"$(inherited)",
1267+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1268+
);
12481269
};
12491270
name = Debug;
12501271
};
@@ -1262,6 +1283,14 @@
12621283
);
12631284
PRODUCT_NAME = "$(TARGET_NAME)";
12641285
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactube.app/reactube";
1286+
LIBRARY_SEARCH_PATHS = (
1287+
"$(inherited)",
1288+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
1289+
);
1290+
HEADER_SEARCH_PATHS = (
1291+
"$(inherited)",
1292+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1293+
);
12651294
};
12661295
name = Release;
12671296
};
@@ -1280,6 +1309,10 @@
12801309
);
12811310
PRODUCT_NAME = reactube;
12821311
VERSIONING_SYSTEM = "apple-generic";
1312+
HEADER_SEARCH_PATHS = (
1313+
"$(inherited)",
1314+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1315+
);
12831316
};
12841317
name = Debug;
12851318
};
@@ -1297,6 +1330,10 @@
12971330
);
12981331
PRODUCT_NAME = reactube;
12991332
VERSIONING_SYSTEM = "apple-generic";
1333+
HEADER_SEARCH_PATHS = (
1334+
"$(inherited)",
1335+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1336+
);
13001337
};
13011338
name = Release;
13021339
};
@@ -1323,6 +1360,14 @@
13231360
SDKROOT = appletvos;
13241361
TARGETED_DEVICE_FAMILY = 3;
13251362
TVOS_DEPLOYMENT_TARGET = 9.2;
1363+
LIBRARY_SEARCH_PATHS = (
1364+
"$(inherited)",
1365+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
1366+
);
1367+
HEADER_SEARCH_PATHS = (
1368+
"$(inherited)",
1369+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1370+
);
13261371
};
13271372
name = Debug;
13281373
};
@@ -1349,6 +1394,14 @@
13491394
SDKROOT = appletvos;
13501395
TARGETED_DEVICE_FAMILY = 3;
13511396
TVOS_DEPLOYMENT_TARGET = 9.2;
1397+
LIBRARY_SEARCH_PATHS = (
1398+
"$(inherited)",
1399+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
1400+
);
1401+
HEADER_SEARCH_PATHS = (
1402+
"$(inherited)",
1403+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1404+
);
13521405
};
13531406
name = Release;
13541407
};
@@ -1374,6 +1427,14 @@
13741427
SDKROOT = appletvos;
13751428
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactube-tvOS.app/reactube-tvOS";
13761429
TVOS_DEPLOYMENT_TARGET = 10.1;
1430+
LIBRARY_SEARCH_PATHS = (
1431+
"$(inherited)",
1432+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
1433+
);
1434+
HEADER_SEARCH_PATHS = (
1435+
"$(inherited)",
1436+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1437+
);
13771438
};
13781439
name = Debug;
13791440
};
@@ -1399,6 +1460,14 @@
13991460
SDKROOT = appletvos;
14001461
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/reactube-tvOS.app/reactube-tvOS";
14011462
TVOS_DEPLOYMENT_TARGET = 10.1;
1463+
LIBRARY_SEARCH_PATHS = (
1464+
"$(inherited)",
1465+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
1466+
);
1467+
HEADER_SEARCH_PATHS = (
1468+
"$(inherited)",
1469+
"$(SRCROOT)/../node_modules/react-native-youtube/**",
1470+
);
14021471
};
14031472
name = Release;
14041473
};

ios/reactube/Info.plist

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,72 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
4-
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
7-
<key>CFBundleDisplayName</key>
8-
<string>reactube</string>
9-
<key>CFBundleExecutable</key>
10-
<string>$(EXECUTABLE_NAME)</string>
11-
<key>CFBundleIdentifier</key>
12-
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
13-
<key>CFBundleInfoDictionaryVersion</key>
14-
<string>6.0</string>
15-
<key>CFBundleName</key>
16-
<string>$(PRODUCT_NAME)</string>
17-
<key>CFBundlePackageType</key>
18-
<string>APPL</string>
19-
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
21-
<key>CFBundleSignature</key>
22-
<string>????</string>
23-
<key>CFBundleVersion</key>
24-
<string>1</string>
25-
<key>LSRequiresIPhoneOS</key>
26-
<true/>
27-
<key>UILaunchStoryboardName</key>
28-
<string>LaunchScreen</string>
29-
<key>UIRequiredDeviceCapabilities</key>
30-
<array>
31-
<string>armv7</string>
32-
</array>
33-
<key>UISupportedInterfaceOrientations</key>
34-
<array>
35-
<string>UIInterfaceOrientationPortrait</string>
36-
<string>UIInterfaceOrientationLandscapeLeft</string>
37-
<string>UIInterfaceOrientationLandscapeRight</string>
38-
</array>
39-
<key>UIViewControllerBasedStatusBarAppearance</key>
40-
<false/>
41-
<key>NSLocationWhenInUseUsageDescription</key>
42-
<string/>
43-
<key>NSAppTransportSecurity</key>
44-
<dict>
45-
<key>NSExceptionDomains</key>
46-
<dict>
47-
<key>localhost</key>
48-
<dict>
49-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
50-
<true/>
51-
</dict>
52-
</dict>
53-
</dict>
54-
<key>UIAppFonts</key>
55-
<array>
56-
<string>Entypo.ttf</string>
57-
<string>EvilIcons.ttf</string>
58-
<string>Feather.ttf</string>
59-
<string>FontAwesome.ttf</string>
60-
<string>Foundation.ttf</string>
61-
<string>Ionicons.ttf</string>
62-
<string>MaterialCommunityIcons.ttf</string>
63-
<string>MaterialIcons.ttf</string>
64-
<string>Octicons.ttf</string>
65-
<string>Roboto_medium.ttf</string>
66-
<string>Roboto.ttf</string>
67-
<string>rubicon-icon-font.ttf</string>
68-
<string>SimpleLineIcons.ttf</string>
69-
<string>Zocial.ttf</string>
70-
</array>
71-
</dict>
72-
</plist>
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>reactube</string>
9+
<key>CFBundleExecutable</key>
10+
<string>$(EXECUTABLE_NAME)</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleVersion</key>
24+
<string>1</string>
25+
<key>LSRequiresIPhoneOS</key>
26+
<true/>
27+
<key>UILaunchStoryboardName</key>
28+
<string>LaunchScreen</string>
29+
<key>UIRequiredDeviceCapabilities</key>
30+
<array>
31+
<string>armv7</string>
32+
</array>
33+
<key>UISupportedInterfaceOrientations</key>
34+
<array>
35+
<string>UIInterfaceOrientationPortrait</string>
36+
<string>UIInterfaceOrientationLandscapeLeft</string>
37+
<string>UIInterfaceOrientationLandscapeRight</string>
38+
</array>
39+
<key>UIViewControllerBasedStatusBarAppearance</key>
40+
<false/>
41+
<key>NSLocationWhenInUseUsageDescription</key>
42+
<string/>
43+
<key>NSAppTransportSecurity</key>
44+
<dict>
45+
<key>NSExceptionDomains</key>
46+
<dict>
47+
<key>localhost</key>
48+
<dict>
49+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
50+
<true/>
51+
</dict>
52+
</dict>
53+
</dict>
54+
<key>UIAppFonts</key>
55+
<array>
56+
<string>Entypo.ttf</string>
57+
<string>EvilIcons.ttf</string>
58+
<string>Feather.ttf</string>
59+
<string>FontAwesome.ttf</string>
60+
<string>Foundation.ttf</string>
61+
<string>Ionicons.ttf</string>
62+
<string>MaterialCommunityIcons.ttf</string>
63+
<string>MaterialIcons.ttf</string>
64+
<string>Octicons.ttf</string>
65+
<string>Roboto_medium.ttf</string>
66+
<string>Roboto.ttf</string>
67+
<string>rubicon-icon-font.ttf</string>
68+
<string>SimpleLineIcons.ttf</string>
69+
<string>Zocial.ttf</string>
70+
</array>
71+
</dict>
72+
</plist>

package-lock.json

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"native-base": "^2.8.0",
1111
"react": "16.4.1",
1212
"react-native": "0.56.0",
13+
"react-native-youtube": "^1.1.0",
1314
"react-navigation": "^2.12.1"
1415
},
1516
"devDependencies": {

src/assets/feed_images/1.jpg

-222 KB
Binary file not shown.

src/assets/feed_images/2.jpg

-6.79 KB
Binary file not shown.

src/assets/feed_images/3.png

-557 KB
Binary file not shown.

0 commit comments

Comments
 (0)