Skip to content

Commit f51aa5d

Browse files
nader dabitnader dabit
authored andcommitted
updated ReactXP
1 parent 7cffdc4 commit f51aa5d

File tree

1,659 files changed

+66735
-29934
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,659 files changed

+66735
-29934
lines changed

.DS_Store

0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-xp-app",
3-
"version": "0.3.4",
3+
"version": "0.4.0",
44
"description": "react xp project generator",
55
"main": "index.js",
66
"bin": {

src/.DS_Store

6 KB
Binary file not shown.

src/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# RXP
1+
# RXPHelloWorld
22

33
This app works on React Native (iOS, Android) and web. Most of the app's code is contained in `App.tsx`.
44

@@ -7,10 +7,6 @@ The commands in the instructions below assume you are in the root of this repo.
77
### Initial Setup
88

99
- Run `npm install`. This fetches the dependencies.
10-
- Open `node_modules/reactxp/dist/native-common/App.js` and replace
11-
`RN.AppRegistry.registerComponent('RXApp',`
12-
with
13-
`RN.AppRegistry.registerComponent('reactXPTest',`
1410

1511
### Building for Web
1612

src/__tests__/index.android.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/__tests__/index.ios.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/android/app/BUCK

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import re
2-
31
# To learn about Buck see [Docs](https://buckbuild.com/).
42
# To run your application with Buck:
53
# - install Buck
@@ -11,56 +9,57 @@ import re
119
#
1210

1311
lib_deps = []
12+
1413
for jarfile in glob(['libs/*.jar']):
15-
name = 'jars__' + re.sub(r'^.*/([^/]+)\.jar$', r'\1', jarfile)
14+
name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
1615
lib_deps.append(':' + name)
1716
prebuilt_jar(
1817
name = name,
1918
binary_jar = jarfile,
2019
)
2120

2221
for aarfile in glob(['libs/*.aar']):
23-
name = 'aars__' + re.sub(r'^.*/([^/]+)\.aar$', r'\1', aarfile)
22+
name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
2423
lib_deps.append(':' + name)
2524
android_prebuilt_aar(
2625
name = name,
2726
aar = aarfile,
2827
)
2928

3029
android_library(
31-
name = 'all-libs',
32-
exported_deps = lib_deps
30+
name = "all-libs",
31+
exported_deps = lib_deps,
3332
)
3433

3534
android_library(
36-
name = 'app-code',
37-
srcs = glob([
38-
'src/main/java/**/*.java',
39-
]),
40-
deps = [
41-
':all-libs',
42-
':build_config',
43-
':res',
44-
],
35+
name = "app-code",
36+
srcs = glob([
37+
"src/main/java/**/*.java",
38+
]),
39+
deps = [
40+
":all-libs",
41+
":build_config",
42+
":res",
43+
],
4544
)
4645

4746
android_build_config(
48-
name = 'build_config',
49-
package = 'com.rxapp',
47+
name = "build_config",
48+
package = "com.rxphelloworld",
5049
)
5150

5251
android_resource(
53-
name = 'res',
54-
res = 'src/main/res',
55-
package = 'com.rxapp',
52+
name = "res",
53+
package = "com.rxphelloworld",
54+
res = "src/main/res",
5655
)
5756

5857
android_binary(
59-
name = 'app',
60-
package_type = 'debug',
61-
manifest = 'src/main/AndroidManifest.xml',
62-
keystore = '//android/keystores:debug',
63-
deps = [
64-
':app-code',
65-
],
58+
name = "app",
59+
keystore = "//android/keystores:debug",
60+
manifest = "src/main/AndroidManifest.xml",
61+
package_type = "debug",
62+
deps = [
63+
":app-code",
64+
],
6665
)

src/android/app/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ def enableProguardInReleaseBuilds = false
8484

8585
android {
8686
compileSdkVersion 23
87-
buildToolsVersion "23.0.1"
87+
buildToolsVersion '25.0.0'
8888

8989
defaultConfig {
90-
applicationId "com.rxapp"
90+
applicationId "com.rxphelloworld"
9191
minSdkVersion 16
9292
targetSdkVersion 22
9393
versionCode 1
@@ -126,6 +126,8 @@ android {
126126
}
127127

128128
dependencies {
129+
compile project(':react-native-video')
130+
compile project(':react-native-svg')
129131
compile fileTree(dir: "libs", include: ["*.jar"])
130132
compile "com.android.support:appcompat-v7:23.0.1"
131133
compile "com.facebook.react:react-native:+" // From node_modules

src/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.rxapp"
2+
package="com.rxphelloworld"
33
android:versionCode="1"
44
android:versionName="1.0">
55

src/android/app/src/main/java/com/rxapp/MainActivity.java renamed to src/android/app/src/main/java/com/rxphelloworld/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.rxapp;
1+
package com.rxphelloworld;
22

33
import com.facebook.react.ReactActivity;
44

0 commit comments

Comments
 (0)