Skip to content

Commit 4cb7206

Browse files
author
z50902677
committed
修改
2 parents 021948a + 9e3769b commit 4cb7206

File tree

23 files changed

+1093
-299
lines changed

23 files changed

+1093
-299
lines changed

android/app/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ android {
9696
abiFilters "armeabi-v7a", "x86"
9797
}
9898
}
99+
signingConfigs {
100+
release {
101+
storeFile file(MYAPP_RELEASE_STORE_FILE)
102+
storePassword MYAPP_RELEASE_STORE_PASSWORD
103+
keyAlias MYAPP_RELEASE_KEY_ALIAS
104+
keyPassword MYAPP_RELEASE_KEY_PASSWORD
105+
}
106+
}
99107
splits {
100108
abi {
101109
reset()
@@ -108,6 +116,7 @@ android {
108116
release {
109117
minifyEnabled enableProguardInReleaseBuilds
110118
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
119+
signingConfig signingConfigs.release
111120
}
112121
}
113122
// applicationVariants are e.g. debug, release
2.18 KB
Binary file not shown.

android/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
<uses-feature android:name="android.hardware.camera" android:required="false"/>
1111
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
1212

13+
14+
<uses-permission android:name="android.permission.CAMERA" />
15+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
16+
<uses-feature android:name="android.hardware.camera" android:required="true"/>
17+
<uses-feature android:name="android.hardware.camera.autofocus" />
1318
<uses-sdk
1419
android:minSdkVersion="16"
1520
android:targetSdkVersion="22" />

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.facebook.react.ReactPackage;
1010
import com.facebook.react.shell.MainReactPackage;
1111
import com.imagepicker.ImagePickerPackage;
12-
1312
import java.util.Arrays;
1413
import java.util.List;
1514

android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ buildscript {
66
}
77
dependencies {
88
classpath 'com.android.tools.build:gradle:1.3.1'
9-
109
// NOTE: Do not place your application dependencies here; they belong
1110
// in the individual module build.gradle files
1211
}

android/gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@
1818
# org.gradle.parallel=true
1919

2020
android.useDeprecatedNdk=true
21+
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
22+
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
23+
MYAPP_RELEASE_STORE_PASSWORD=1234567
24+
MYAPP_RELEASE_KEY_PASSWORD=1234567

ios/wechatArticle.xcodeproj/project.pbxproj

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
};
66
objectVersion = 46;
77
objects = {
8-
98
/* Begin PBXBuildFile section */
109
00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; };
1110
00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; };
@@ -23,6 +22,7 @@
2322
140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
2423
146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
2524
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
25+
7AF08C5BA96F4AB9A57A2F0F /* libRNImagePicker.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7373DDAD1CAD4EB082752DA7 /* libRNImagePicker.a */; };
2626
/* End PBXBuildFile section */
2727

2828
/* Begin PBXContainerItemProxy section */
@@ -127,6 +127,8 @@
127127
146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = ../node_modules/react-native/React/React.xcodeproj; sourceTree = "<group>"; };
128128
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = ../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj; sourceTree = "<group>"; };
129129
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = ../node_modules/react-native/Libraries/Text/RCTText.xcodeproj; sourceTree = "<group>"; };
130+
0A3171D3112B45FB9501E4EC /* RNImagePicker.xcodeproj */ = {isa = PBXFileReference; name = "RNImagePicker.xcodeproj"; path = "../node_modules/react-native-image-picker/ios/RNImagePicker.xcodeproj"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = wrapper.pb-project; explicitFileType = undefined; includeInIndex = 0; };
131+
7373DDAD1CAD4EB082752DA7 /* libRNImagePicker.a */ = {isa = PBXFileReference; name = "libRNImagePicker.a"; path = "libRNImagePicker.a"; sourceTree = "<group>"; fileEncoding = undefined; lastKnownFileType = archive.ar; explicitFileType = undefined; includeInIndex = 0; };
130132
/* End PBXFileReference section */
131133

132134
/* Begin PBXFrameworksBuildPhase section */
@@ -152,6 +154,7 @@
152154
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
153155
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
154156
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
157+
7AF08C5BA96F4AB9A57A2F0F /* libRNImagePicker.a in Frameworks */,
155158
);
156159
runOnlyForDeploymentPostprocessing = 0;
157160
};
@@ -274,6 +277,7 @@
274277
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
275278
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
276279
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
280+
0A3171D3112B45FB9501E4EC /* RNImagePicker.xcodeproj */,
277281
);
278282
name = Libraries;
279283
sourceTree = "<group>";
@@ -352,7 +356,7 @@
352356
83CBB9F71A601CBA00E9B192 /* Project object */ = {
353357
isa = PBXProject;
354358
attributes = {
355-
LastUpgradeCheck = 0610;
359+
LastUpgradeCheck = 610;
356360
ORGANIZATIONNAME = Facebook;
357361
TargetAttributes = {
358362
00E356ED1AD99517003FC87E = {
@@ -586,6 +590,10 @@
586590
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
587591
PRODUCT_NAME = "$(TARGET_NAME)";
588592
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/wechatArticle.app/wechatArticle";
593+
LIBRARY_SEARCH_PATHS = (
594+
"$(inherited)",
595+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
596+
);
589597
};
590598
name = Debug;
591599
};
@@ -599,6 +607,10 @@
599607
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
600608
PRODUCT_NAME = "$(TARGET_NAME)";
601609
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/wechatArticle.app/wechatArticle";
610+
LIBRARY_SEARCH_PATHS = (
611+
"$(inherited)",
612+
"\"$(SRCROOT)/$(TARGET_NAME)\"",
613+
);
602614
};
603615
name = Release;
604616
};
@@ -611,14 +623,15 @@
611623
"$(inherited)",
612624
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
613625
"$(SRCROOT)/../node_modules/react-native/React/**",
626+
"$(SRCROOT)\..\node_modules\react-native-image-picker\ios/**",
614627
);
615628
INFOPLIST_FILE = "wechatArticle/Info.plist";
616629
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
617-
OTHER_LDFLAGS = (
630+
OTHER_LDFLAGS = (
618631
"$(inherited)",
619-
"-ObjC",
620-
"-lc++",
621-
);
632+
"-ObjC",
633+
"-lc++",
634+
);
622635
PRODUCT_NAME = wechatArticle;
623636
};
624637
name = Debug;
@@ -631,14 +644,15 @@
631644
"$(inherited)",
632645
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
633646
"$(SRCROOT)/../node_modules/react-native/React/**",
647+
"$(SRCROOT)\..\node_modules\react-native-image-picker\ios/**",
634648
);
635649
INFOPLIST_FILE = "wechatArticle/Info.plist";
636650
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
637-
OTHER_LDFLAGS = (
651+
OTHER_LDFLAGS = (
638652
"$(inherited)",
639-
"-ObjC",
640-
"-lc++",
641-
);
653+
"-ObjC",
654+
"-lc++",
655+
);
642656
PRODUCT_NAME = wechatArticle;
643657
};
644658
name = Release;
@@ -681,6 +695,7 @@
681695
"$(inherited)",
682696
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
683697
"$(SRCROOT)/../node_modules/react-native/React/**",
698+
"$(SRCROOT)\..\node_modules\react-native-image-picker\ios/**",
684699
);
685700
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
686701
MTL_ENABLE_DEBUG_INFO = YES;
@@ -721,6 +736,7 @@
721736
"$(inherited)",
722737
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
723738
"$(SRCROOT)/../node_modules/react-native/React/**",
739+
"$(SRCROOT)\..\node_modules\react-native-image-picker\ios/**",
724740
);
725741
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
726742
MTL_ENABLE_DEBUG_INFO = NO;

0 commit comments

Comments
 (0)