From 9b4609c15a12f4d8e37108d2663181bbe900a3e4 Mon Sep 17 00:00:00 2001 From: Alevs Date: Tue, 21 Nov 2017 23:45:04 +0300 Subject: [PATCH] add zero noise option and fix bugs --- android/app/build.gradle | 15 +++++++++++++-- android/app/my-release-key.keystore | Bin 0 -> 2275 bytes android/gradle.properties | 4 ++++ src/components/Chat/ChatContainer.js | 2 +- src/components/Settings/SettingsModal.js | 1 + 5 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 android/app/my-release-key.keystore diff --git a/android/app/build.gradle b/android/app/build.gradle index 738c764..2717856 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -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() @@ -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 diff --git a/android/app/my-release-key.keystore b/android/app/my-release-key.keystore new file mode 100644 index 0000000000000000000000000000000000000000..983477fe7ef3bc38815f06579ff306e9d3c40ffa GIT binary patch literal 2275 zcmc(g`8N~_8^>ou_85k&6J;4jGZV5;))pc}V#HX=HcYl`g|UZ{^(Oly%Pq^bG#H(6 zEn!gJp{&(pUnVgmgsXerd(M6Tg7=5#hwtZne|XOKdCv13unt%N004AUz`u)+5RUZq z3`gSqyzxOt5C;$CBLV;%KokkGj}qYIQQ-tafC!Kf5Xb?5kRVGV3-IbE;~>}Q>4oz} z2Xd0<9!IX4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UfByhtfS-2|8j2G7<>P_!5ZsBL$h!f7ejfio-v5E( zDA+G27%FJ!=NaZ14mS<;!xM;}p(q(Ke)Kt%23i}9#%OA2Ig0VCtD{jU_5aHMXKN&& z+`of5dLv*GP!ND30eL_qAP`Vt3q9#|?`wEffIt_|{^aJlA!~c8zFoz_B*(I=-VIFZ z6H9Zq87P@IDvp1&@$2?d2jj{E1s9bshnlY=d}P!guQ;>cvLs#ggkJoC5~@qWG0rRx z!mzF;_w@?C@42@$nmrx$Gvs%=q8{QxkH_x3sXd##H#1iYr;Lnz=Mz~- z+K-BBL|TQ6wCo@=w%K=^`g^=@?{k`q_LS~T0UdN27(`9~E;R4kyO%-`9~@dX~NK z*)nnd=Wiio`n#MV!u2o#s9Bk&Y4xsT5+)m|@qPWS(;m@@t}jIZn4Un%q7NU$AF zkF2l@6kK)Q{9)<7B_vg;x#A{t`YVWQXM<`yF~AUx2T}dv_DjLY;0xQP{2UL}Xzs@f zt>vd{1@*=tmm$9UggGehyot#jQTx#;1P)?OZ~8dmhjGg4YQ6B{3}VcL@F@{K={w!m z>X5rv64BQ7T2y|&4*^3KNM e#aD;j1*R#AioG86>=^@lk@ZIj1n1!T0_tB~H1C`M literal 0 HcmV?d00001 diff --git a/android/gradle.properties b/android/gradle.properties index 1fd964e..e41a0eb 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -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 \ No newline at end of file diff --git a/src/components/Chat/ChatContainer.js b/src/components/Chat/ChatContainer.js index 434293b..a671742 100644 --- a/src/components/Chat/ChatContainer.js +++ b/src/components/Chat/ChatContainer.js @@ -22,7 +22,7 @@ export default class ChatContainer extends React.Component { settings:{ codingAlgo: 'hamming', compressionAlgo: 'arithmetic', - noiseLevel: '1', + noiseLevel: '0', }, }; diff --git a/src/components/Settings/SettingsModal.js b/src/components/Settings/SettingsModal.js index 21e9ebb..06428df 100644 --- a/src/components/Settings/SettingsModal.js +++ b/src/components/Settings/SettingsModal.js @@ -37,6 +37,7 @@ export default class SettingsModal extends Component { this.props.setSettings({noiseLevel: itemValue})}> +