Skip to content

Commit dd861d6

Browse files
committed
add font 字体包
1 parent 83f10e3 commit dd861d6

File tree

8 files changed

+50
-41
lines changed

8 files changed

+50
-41
lines changed
Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,30 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
1+
<manifest
2+
xmlns:android="http://schemas.android.com/apk/res/android"
23
package="com.awesomeproject"
34
android:versionCode="1"
45
android:versionName="1.0.0">
5-
66
<uses-permission android:name="android.permission.INTERNET" />
7-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
7+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
88

9-
<uses-sdk
10-
android:minSdkVersion="16"
11-
android:targetSdkVersion="22" />
9+
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="22" />
1210

1311
<application
14-
android:name=".MainApplication"
15-
android:allowBackup="true"
16-
android:label="@string/app_name"
17-
android:icon="@mipmap/ic_launcher"
18-
android:theme="@style/AppTheme">
19-
<activity
20-
android:name=".MainActivity"
12+
android:name=".MainApplication"
13+
android:allowBackup="true"
2114
android:label="@string/app_name"
22-
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
23-
android:windowSoftInputMode="adjustResize">
24-
<intent-filter>
25-
<action android:name="android.intent.action.MAIN" />
26-
<category android:name="android.intent.category.LAUNCHER" />
27-
</intent-filter>
28-
</activity>
29-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
15+
android:icon="@mipmap/ic_launcher"
16+
android:theme="@style/AppTheme">
17+
<activity
18+
android:name=".MainActivity"
19+
android:label="@string/app_name"
20+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
21+
android:windowSoftInputMode="adjustResize">
22+
<intent-filter>
23+
<action android:name="android.intent.action.MAIN" />
24+
<category android:name="android.intent.category.LAUNCHER" />
25+
</intent-filter>
26+
</activity>
27+
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
3028
<meta-data android:name="android.max_aspect" android:value="2.1" />
31-
3229
</application>
33-
34-
</manifest>
30+
</manifest>;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<resources>
2-
<string moduleConfig="true" name="reactNativeCodePush_androidDeploymentKey"></string>
2+
<string moduleConfig="true" name="reactNativeCodePush_androidDeploymentKey" />
33
<string name="app_name">Trust</string>
4-
</resources>
4+
</resources>;

ios/AwesomeProject.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
C1595B622081115F000EE772 /* libSplashScreen.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C153C8C9208085FD00AE197D /* libSplashScreen.a */; };
3636
C1595B6320811929000EE772 /* libBVLinearGradient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C107CD232062369C0092BDCC /* libBVLinearGradient.a */; };
3737
C1595C5D20814891000EE772 /* TZImagePickerController.bundle in Resources */ = {isa = PBXBuildFile; fileRef = C1595C5C20814891000EE772 /* TZImagePickerController.bundle */; };
38+
C1D609A3209178F800B46958 /* Michroma.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C1D60974209178D700B46958 /* Michroma.ttf */; };
3839
DF73FDB979234C9F8479AB88 /* FontAwesome.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 6EBED712511344E5ADA8565A /* FontAwesome.ttf */; };
3940
EFDCC6BF420E4F7BB42F02AE /* Ionicons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = FC133623B92A41C8B4630EF6 /* Ionicons.ttf */; };
4041
FD30C84063F94E01930DABE1 /* EvilIcons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A696A4AB6E5349809FFEF8EA /* EvilIcons.ttf */; };
@@ -414,6 +415,7 @@
414415
C107CD0E20615D840092BDCC /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = AwesomeProject/Images.xcassets; sourceTree = "<group>"; };
415416
C1595C5C20814891000EE772 /* TZImagePickerController.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; name = TZImagePickerController.bundle; path = "../node_modules/react-native-syan-image-picker/ios/TZImagePickerController/TZImagePickerController.bundle"; sourceTree = "<group>"; };
416417
C1595C5E20814AB7000EE772 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/LaunchScreen.strings"; sourceTree = "<group>"; };
418+
C1D60974209178D700B46958 /* Michroma.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = Michroma.ttf; path = "../../../../Downloads/AssetLibrary-master/Fonts/File/Michroma/Michroma.ttf"; sourceTree = "<group>"; };
417419
CB85E3A3243D4DC5B0D07790 /* MaterialIcons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = MaterialIcons.ttf; path = "../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf"; sourceTree = "<group>"; };
418420
CEC7DE2E2DE348A1888A445C /* libRNSyanImagePicker.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNSyanImagePicker.a; sourceTree = "<group>"; };
419421
D053671C50B94A0C87A949B0 /* libBVLinearGradient.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libBVLinearGradient.a; sourceTree = "<group>"; };
@@ -659,6 +661,7 @@
659661
83CBB9F61A601CBA00E9B192 = {
660662
isa = PBXGroup;
661663
children = (
664+
C1D60974209178D700B46958 /* Michroma.ttf */,
662665
C1595C5C20814891000EE772 /* TZImagePickerController.bundle */,
663666
13B07FAE1A68108700A75B9A /* AwesomeProject */,
664667
832341AE1AAA6A7D00B99B32 /* Libraries */,
@@ -1251,6 +1254,7 @@
12511254
985627163E6C4FA89355A04D /* Foundation.ttf in Resources */,
12521255
EFDCC6BF420E4F7BB42F02AE /* Ionicons.ttf in Resources */,
12531256
AF5D140310384696A649676C /* MaterialCommunityIcons.ttf in Resources */,
1257+
C1D609A3209178F800B46958 /* Michroma.ttf in Resources */,
12541258
C107CD0F20615D840092BDCC /* Images.xcassets in Resources */,
12551259
9427BD1F746A43A3945E717B /* MaterialIcons.ttf in Resources */,
12561260
93BDEE8256F34A1688C90530 /* SimpleLineIcons.ttf in Resources */,

ios/AwesomeProject.xcodeproj/xcshareddata/xcschemes/AwesomeProject.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
</AdditionalOptions>
8181
</TestAction>
8282
<LaunchAction
83-
buildConfiguration = "Debug"
83+
buildConfiguration = "Release"
8484
selectedDebuggerIdentifier = ""
8585
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
8686
launchStyle = "0"

ios/AwesomeProject/AppDelegate.m

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,26 @@ @implementation AppDelegate
1717
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
1818
{
1919
NSURL *jsCodeLocation;
20+
for(NSString* family in [UIFont familyNames])
21+
{
22+
NSLog(@"%@", family);
23+
for(NSString* name in [UIFont fontNamesForFamilyName: family]){
24+
NSLog(@" %@", name);
25+
}
26+
}
27+
28+
#ifdef DEBUG
29+
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
30+
#else
31+
jsCodeLocation = [CodePush bundleURL];
32+
#endif
2033

21-
#ifdef DEBUG
22-
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
23-
#else
24-
jsCodeLocation = [CodePush bundleURL];
25-
#endif
26-
2734
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
2835
moduleName:@"AwesomeProject"
2936
initialProperties:nil
3037
launchOptions:launchOptions];
3138
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
32-
39+
3340
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
3441
UIViewController *rootViewController = [UIViewController new];
3542
rootViewController.view = rootView;

ios/AwesomeProject/Info.plist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0.6</string>
20+
<string>1.0.7</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
@@ -64,6 +64,7 @@
6464
<string>Octicons.ttf</string>
6565
<string>SimpleLineIcons.ttf</string>
6666
<string>Zocial.ttf</string>
67+
<string>Michroma.ttf</string>
6768
</array>
6869
<key>UIRequiredDeviceCapabilities</key>
6970
<array>

src/page/Login/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ class LoginScreen extends Component<Props, State> {
7272
<Text style={styles.buttonTitle}>登录</Text>
7373
</TouchableOpacity>
7474
</View>
75-
7675
<InputAccessoryView nativeID={inputAccessoryViewID} backgroundColor="#fffffff7">
7776
<View style={styles.textInputContainer}>
7877
<Button onPress={() => alert(1)} title="Send" />
@@ -103,7 +102,8 @@ const styles = StyleSheet.create({
103102
},
104103
buttonTitle: {
105104
color: '#fff',
106-
fontSize: 17
105+
fontSize: 17,
106+
fontFamily: 'PingFangTC-Medium'
107107
},
108108
textInputContainer: {
109109
flexDirection: 'row'
@@ -115,7 +115,8 @@ const styles = StyleSheet.create({
115115
borderColor: 'rgba(255,255,255,.5)',
116116
borderRadius: 6,
117117
color: '#f1f1f1',
118-
fontSize: 16.5
118+
fontSize: 16.5,
119+
fontFamily: 'PingFangTC-Medium'
119120
},
120121
text: {
121122
padding: 10,

src/page/Root.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ class LoginScreenView extends Component {
8888
Alert.alert('温馨提示', '用户名或密码不能为空!');
8989
} else {
9090
this.refs.modal.open(); //loading 状态
91-
/*this.props.actions.login({ phone: this.state.phone, password: this.state.password }); //dispath 登陆
91+
this.props.actions.login({ phone: this.state.phone, password: this.state.password }); //dispath 登陆
9292
const resetAction = NavigationActions.reset({
9393
index: 0,
9494
actions: [NavigationActions.navigate({ routeName: 'NavigationBar' })]
9595
});
96-
LayoutAnimation.configureNext(customAnimationConfig);
96+
//LayoutAnimation.configureNext(customAnimationConfig);
9797
this.props.navigation.dispatch(resetAction);
98-
console.log(this.props);*/
98+
console.log(this.props);
9999
}
100100
};
101101
onCheckForUpdate = () => {

0 commit comments

Comments
 (0)