Skip to content

Commit

Permalink
add zero noise option and fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alevs2R committed Nov 21, 2017
1 parent 8c4b9c1 commit 9b4609c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
15 changes: 13 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,22 @@ android {
applicationId "com.magic_messenger"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
versionCode 2
versionName "1.1"
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
splits {
abi {
reset()
Expand All @@ -119,6 +129,7 @@ android {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
Expand Down
Binary file added android/app/my-release-key.keystore
Binary file not shown.
4 changes: 4 additions & 0 deletions android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@
# org.gradle.parallel=true

android.useDeprecatedNdk=true
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=panarepan2010
MYAPP_RELEASE_KEY_PASSWORD=panarepan2010
2 changes: 1 addition & 1 deletion src/components/Chat/ChatContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class ChatContainer extends React.Component {
settings:{
codingAlgo: 'hamming',
compressionAlgo: 'arithmetic',
noiseLevel: '1',
noiseLevel: '0',
},
};

Expand Down
1 change: 1 addition & 0 deletions src/components/Settings/SettingsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export default class SettingsModal extends Component {
<Picker
selectedValue={this.props.settings.noiseLevel}
onValueChange={(itemValue) => this.props.setSettings({noiseLevel: itemValue})}>
<Picker.Item label="no noise" value="0" />
<Picker.Item label="1%" value="1" />
<Picker.Item label="5%" value="5" />
<Picker.Item label="15%" value="15" />
Expand Down

0 comments on commit 9b4609c

Please sign in to comment.