Skip to content

Commit

Permalink
localization & restore icons
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeng94 committed Jan 5, 2018
1 parent dae95fe commit 4710d09
Show file tree
Hide file tree
Showing 16 changed files with 355 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ buck-out/
*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Release
android/app/release/
14 changes: 7 additions & 7 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export default class App extends React.Component {
constructor(props){
super(props);
this.state = {
pwd1: "精神焕发",
pwd2: "防冷涂的蜡",
pwd1: "antidisestablishmentarianism",
pwd2: "honorificabilitudinitatibus",
pwd3: "WeiBuXin @_@ 微不信",
cipherText: "",
plainText: ""
Expand Down Expand Up @@ -63,7 +63,7 @@ export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>你的脸怎么红了?</Text>
<Text>Encrytion Key 1</Text>
<WebxInput value={this.state.pwd1} onChangeText={(text) => {
this.setState({
pwd1: text,
Expand All @@ -77,7 +77,7 @@ export default class App extends React.Component {
});

}} />
<Text>怎么又黄了?</Text>
<Text>Encryption Key 2</Text>
<WebxInput value={this.state.pwd2} onChangeText={(text) => {
this.setState({
pwd2: text,
Expand All @@ -90,16 +90,16 @@ export default class App extends React.Component {
}
});
}} />
<Text>微不信:</Text>
<Text>Encrypted Text (Paste to Decrypt)</Text>
<WebxMultilineInput value={this.state.cipherText} onChangeText={(text) => {
let decTxt = this.decrypt(text);
if (!decTxt) decTxt = "很抱歉,我不知道你在说什么。";
if (!decTxt) decTxt = "Sorry, I can't decrypt your text.";
this.setState({
cipherText: text,
plainText: text ? decTxt : "",
})
}} />
<Text>信不信由你:</Text>
<Text>Plain Text (Input to Encrypt)</Text>
<WebxMultilineInput value={this.state.plainText} onChangeText={(text) => {
this.setState({
cipherText: text ? this.encrypt(text) : "",
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Webx

See the [docs on the website](Screenshots/1.png).

# Running tests

When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see [Testing](https://facebook.github.io/react-native/docs/testing.html).
Binary file added Screenshots/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def enableProguardInReleaseBuilds = false

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
buildToolsVersion "27.0.3"

defaultConfig {
applicationId "com.webx"
Expand Down Expand Up @@ -138,7 +138,7 @@ android {

dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.android.support:appcompat-v7:23.4.0"
compile "com.facebook.react:react-native:+" // From node_modules
}

Expand Down
332 changes: 332 additions & 0 deletions android/app/src/main/assets/index.android.bundle

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions android/app/src/main/assets/index.android.bundle.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
N y��w�eH��= �[�
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:3.0.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
1 change: 1 addition & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
# org.gradle.parallel=true

android.useDeprecatedNdk=true
org.gradle.jvmargs=-Xmx1536M
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-all.zip

0 comments on commit 4710d09

Please sign in to comment.