소스 검색

added missing files to redux example

Guy Carmeli 8 년 전
부모
커밋
41db854e89
4개의 변경된 파일19개의 추가작업 그리고 19개의 파일을 삭제
  1. 1
    1
      example-redux/android/app/react.gradle
  2. 3
    3
      example/android/app/build.gradle
  3. 1
    1
      example/android/app/react.gradle
  4. 14
    14
      example/android/app/src/main/AndroidManifest.xml

+ 1
- 1
example-redux/android/app/react.gradle 파일 보기

@@ -41,7 +41,7 @@ gradle.projectsEvaluated {
41 41
             def jsBundleDir = elvisFile(config."$jsBundleDirConfigName") ?:
42 42
                     file("$buildDir/intermediates/assets/${targetPath}")
43 43
 
44
-            def resourcesDirConfigName = "jsBundleDir${targetName}"
44
+            def resourcesDirConfigName = "resourcesDir${targetName}"
45 45
             def resourcesDir = elvisFile(config."${resourcesDirConfigName}") ?:
46 46
                     file("$buildDir/intermediates/res/merged/${targetPath}")
47 47
             def jsBundleFile = file("$jsBundleDir/$bundleAssetName")

+ 3
- 3
example/android/app/build.gradle 파일 보기

@@ -120,9 +120,9 @@ android {
120 120
 }
121 121
 
122 122
 dependencies {
123
-    compile fileTree(dir: "libs", include: ["*.jar"])
124
-    compile "com.android.support:appcompat-v7:23.0.1"
125
-    compile "com.facebook.react:react-native:+"  // From node_modules
123
+    compile fileTree(dir: 'libs', include: ['*.jar'])
124
+    compile 'com.android.support:appcompat-v7:23.0.1'
125
+    compile 'com.facebook.react:react-native:+'
126 126
         debugCompile project(path: ':react-native-navigation', configuration: 'libraryDebug')
127 127
         releaseCompile project(path: ':react-native-navigation', configuration: 'libraryRelease')
128 128
 //    compile project(':react-native-navigation')

+ 1
- 1
example/android/app/react.gradle 파일 보기

@@ -41,7 +41,7 @@ gradle.projectsEvaluated {
41 41
             def jsBundleDir = elvisFile(config."$jsBundleDirConfigName") ?:
42 42
                     file("$buildDir/intermediates/assets/${targetPath}")
43 43
 
44
-            def resourcesDirConfigName = "jsBundleDir${targetName}"
44
+            def resourcesDirConfigName = "resourcesDir${targetName}"
45 45
             def resourcesDir = elvisFile(config."${resourcesDirConfigName}") ?:
46 46
                     file("$buildDir/intermediates/res/merged/${targetPath}")
47 47
             def jsBundleFile = file("$jsBundleDir/$bundleAssetName")

+ 14
- 14
example/android/app/src/main/AndroidManifest.xml 파일 보기

@@ -1,23 +1,23 @@
1 1
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
-    package="com.example">
2
+          package="com.example">
3 3
 
4 4
     <uses-permission android:name="android.permission.INTERNET" />
5 5
 
6 6
     <application
7
-      android:allowBackup="true"
8
-      android:label="@string/app_name"
9
-      android:icon="@mipmap/ic_launcher"
10
-      android:theme="@style/AppTheme">
11
-      <activity
12
-        android:name=".MainActivity"
7
+        android:allowBackup="true"
13 8
         android:label="@string/app_name"
14
-        android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
15
-        <intent-filter>
16
-            <action android:name="android.intent.action.MAIN" />
17
-            <category android:name="android.intent.category.LAUNCHER" />
18
-        </intent-filter>
19
-      </activity>
20
-      <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
9
+        android:icon="@mipmap/ic_launcher"
10
+        android:theme="@style/AppTheme">
11
+        <activity
12
+            android:name=".MainActivity"
13
+            android:label="@string/app_name"
14
+            android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
15
+            <intent-filter>
16
+                <action android:name="android.intent.action.MAIN" />
17
+                <category android:name="android.intent.category.LAUNCHER" />
18
+            </intent-filter>
19
+        </activity>
20
+        <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
21 21
     </application>
22 22
 
23 23
 </manifest>