浏览代码

example is now a folder in the lib

Gaëtan Renaudeau 7 年前
父节点
当前提交
9bae01901b

+ 122
- 0
android/react-native-view-shot.iml 查看文件

@@ -0,0 +1,122 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module external.linked.project.id=":react-native-view-shot" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/../example/android" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3
+  <component name="FacetManager">
4
+    <facet type="android-gradle" name="Android-Gradle">
5
+      <configuration>
6
+        <option name="GRADLE_PROJECT_PATH" value=":react-native-view-shot" />
7
+      </configuration>
8
+    </facet>
9
+    <facet type="android" name="Android">
10
+      <configuration>
11
+        <option name="SELECTED_BUILD_VARIANT" value="debug" />
12
+        <option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
13
+        <option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
14
+        <afterSyncTasks>
15
+          <task>generateDebugSources</task>
16
+        </afterSyncTasks>
17
+        <option name="ALLOW_USER_CONFIGURATION" value="false" />
18
+        <option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
19
+        <option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
20
+        <option name="RES_FOLDERS_RELATIVE_PATH" value="" />
21
+        <option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
22
+        <option name="PROJECT_TYPE" value="1" />
23
+      </configuration>
24
+    </facet>
25
+  </component>
26
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
27
+    <output url="file://$MODULE_DIR$/build/intermediates/classes/debug" />
28
+    <output-test url="file://$MODULE_DIR$/build/intermediates/classes/test/debug" />
29
+    <exclude-output />
30
+    <content url="file://$MODULE_DIR$">
31
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/debug" isTestSource="false" generated="true" />
32
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
33
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
34
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/debug" isTestSource="false" generated="true" />
35
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/debug" isTestSource="false" generated="true" />
36
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/debug" type="java-resource" />
37
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/debug" type="java-resource" />
38
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
39
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
40
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
41
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
42
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/source/apt/androidTest/debug" isTestSource="true" generated="true" />
43
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
44
+      <sourceFolder url="file://$MODULE_DIR$/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
45
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/res" type="java-resource" />
46
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" type="java-resource" />
47
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" type="java-resource" />
48
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
49
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
50
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
51
+      <sourceFolder url="file://$MODULE_DIR$/src/debug/shaders" isTestSource="false" />
52
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/res" type="java-test-resource" />
53
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/resources" type="java-test-resource" />
54
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/assets" type="java-test-resource" />
55
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/aidl" isTestSource="true" />
56
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/java" isTestSource="true" />
57
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/rs" isTestSource="true" />
58
+      <sourceFolder url="file://$MODULE_DIR$/src/testDebug/shaders" isTestSource="true" />
59
+      <sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
60
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
61
+      <sourceFolder url="file://$MODULE_DIR$/src/main/assets" type="java-resource" />
62
+      <sourceFolder url="file://$MODULE_DIR$/src/main/aidl" isTestSource="false" />
63
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
64
+      <sourceFolder url="file://$MODULE_DIR$/src/main/rs" isTestSource="false" />
65
+      <sourceFolder url="file://$MODULE_DIR$/src/main/shaders" isTestSource="false" />
66
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/res" type="java-test-resource" />
67
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/resources" type="java-test-resource" />
68
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/assets" type="java-test-resource" />
69
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/aidl" isTestSource="true" />
70
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/java" isTestSource="true" />
71
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/rs" isTestSource="true" />
72
+      <sourceFolder url="file://$MODULE_DIR$/src/androidTest/shaders" isTestSource="true" />
73
+      <sourceFolder url="file://$MODULE_DIR$/src/test/res" type="java-test-resource" />
74
+      <sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
75
+      <sourceFolder url="file://$MODULE_DIR$/src/test/assets" type="java-test-resource" />
76
+      <sourceFolder url="file://$MODULE_DIR$/src/test/aidl" isTestSource="true" />
77
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
78
+      <sourceFolder url="file://$MODULE_DIR$/src/test/rs" isTestSource="true" />
79
+      <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
80
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/annotations" />
81
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/assets" />
82
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/blame" />
83
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/bundles" />
84
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/classes" />
85
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/dependency-cache" />
86
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
87
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental-safeguard" />
88
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/jniLibs" />
89
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/lint" />
90
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/manifests" />
91
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/res" />
92
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/rs" />
93
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/shaders" />
94
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/symbols" />
95
+      <excludeFolder url="file://$MODULE_DIR$/build/intermediates/transforms" />
96
+      <excludeFolder url="file://$MODULE_DIR$/build/outputs" />
97
+      <excludeFolder url="file://$MODULE_DIR$/build/tmp" />
98
+    </content>
99
+    <orderEntry type="jdk" jdkName="Android API 26 Platform" jdkType="Android SDK" />
100
+    <orderEntry type="sourceFolder" forTests="false" />
101
+    <orderEntry type="library" exported="" name="imagepipeline-base-1.0.1" level="project" />
102
+    <orderEntry type="library" exported="" name="textlayoutbuilder-1.0.0" level="project" />
103
+    <orderEntry type="library" exported="" name="okio-1.13.0" level="project" />
104
+    <orderEntry type="library" exported="" name="imagepipeline-1.0.1" level="project" />
105
+    <orderEntry type="library" exported="" name="soloader-0.1.0" level="project" />
106
+    <orderEntry type="library" exported="" name="javax.inject-1" level="project" />
107
+    <orderEntry type="library" exported="" name="jsr305-3.0.0" level="project" />
108
+    <orderEntry type="library" exported="" name="support-v4-24.0.0" level="project" />
109
+    <orderEntry type="library" exported="" name="bolts-tasks-1.4.0" level="project" />
110
+    <orderEntry type="library" exported="" name="drawee-1.0.1" level="project" />
111
+    <orderEntry type="library" exported="" name="fbcore-1.0.1" level="project" />
112
+    <orderEntry type="library" exported="" name="react-native-0.47.2" level="project" />
113
+    <orderEntry type="library" exported="" name="okhttp-3.6.0" level="project" />
114
+    <orderEntry type="library" exported="" name="okhttp-urlconnection-3.6.0" level="project" />
115
+    <orderEntry type="library" exported="" name="android-jsc-r174650" level="project" />
116
+    <orderEntry type="library" exported="" name="staticlayout-proxy-1.0" level="project" />
117
+    <orderEntry type="library" exported="" name="imagepipeline-okhttp3-1.0.1" level="project" />
118
+    <orderEntry type="library" exported="" name="appcompat-v7-23.0.1" level="project" />
119
+    <orderEntry type="library" exported="" name="fresco-1.0.1" level="project" />
120
+    <orderEntry type="library" exported="" name="support-annotations-23.0.1" level="project" />
121
+  </component>
122
+</module>

+ 1
- 1
example/android/app/build.gradle 查看文件

@@ -84,7 +84,7 @@ def enableProguardInReleaseBuilds = false
84 84
 
85 85
 android {
86 86
     compileSdkVersion 23
87
-    buildToolsVersion "23.0.1"
87
+    buildToolsVersion '25.0.0'
88 88
 
89 89
     defaultConfig {
90 90
         applicationId "com.viewshotexample"

+ 1
- 1
example/android/build.gradle 查看文件

@@ -5,7 +5,7 @@ buildscript {
5 5
         jcenter()
6 6
     }
7 7
     dependencies {
8
-        classpath 'com.android.tools.build:gradle:2.2.3'
8
+        classpath 'com.android.tools.build:gradle:2.3.3'
9 9
 
10 10
         // NOTE: Do not place your application dependencies here; they belong
11 11
         // in the individual module build.gradle files

+ 2
- 2
example/android/gradle/wrapper/gradle-wrapper.properties 查看文件

@@ -1,6 +1,6 @@
1
-#Tue Jan 10 10:28:13 CET 2017
1
+#Tue Sep 12 09:47:32 CEST 2017
2 2
 distributionBase=GRADLE_USER_HOME
3 3
 distributionPath=wrapper/dists
4 4
 zipStoreBase=GRADLE_USER_HOME
5 5
 zipStorePath=wrapper/dists
6
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

+ 1
- 1
example/android/settings.gradle 查看文件

@@ -2,7 +2,7 @@ rootProject.name = 'ViewShotExample'
2 2
 
3 3
 include ':app'
4 4
 include ':react-native-view-shot'
5
-project(':react-native-view-shot').projectDir = new File(rootProject.projectDir, '../android')
5
+project(':react-native-view-shot').projectDir = new File(rootProject.projectDir, '../../android')
6 6
 
7 7
 include ':react-native-maps'
8 8
 project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')