mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +03:00
Merge branch 'master' of https://github.com/esteemapp/esteem-mobile into enhancment/redeem
This commit is contained in:
commit
0537be746b
@ -114,7 +114,7 @@ android {
|
|||||||
minSdkVersion rootProject.ext.minSdkVersion
|
minSdkVersion rootProject.ext.minSdkVersion
|
||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
|
versionCode versionMajor * 10000 + versionMinor * 100 + versionPatch
|
||||||
versionName "2.2.1"
|
versionName "2.2.2"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
resValue "string", "build_config_package", "app.esteem.mobile.android"
|
resValue "string", "build_config_package", "app.esteem.mobile.android"
|
||||||
}
|
}
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.2.1</string>
|
<string>2.2.2</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>6</string>
|
<string>7</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true />
|
<true />
|
||||||
<key>UILaunchStoryboardName</key>
|
<key>UILaunchStoryboardName</key>
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>BNDL</string>
|
<string>BNDL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.2.1</string>
|
<string>2.2.2</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>6</string>
|
<string>7</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@ -1965,7 +1965,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = eSteem/eSteem.entitlements;
|
CODE_SIGN_ENTITLEMENTS = eSteem/eSteem.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "iPhone Developer";
|
CODE_SIGN_IDENTITY = "iPhone Developer";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 6;
|
CURRENT_PROJECT_VERSION = 7;
|
||||||
DEAD_CODE_STRIPPING = NO;
|
DEAD_CODE_STRIPPING = NO;
|
||||||
DEVELOPMENT_TEAM = 75B6RXTKGT;
|
DEVELOPMENT_TEAM = 75B6RXTKGT;
|
||||||
GCC_NO_COMMON_BLOCKS = NO;
|
GCC_NO_COMMON_BLOCKS = NO;
|
||||||
@ -2008,7 +2008,7 @@
|
|||||||
CODE_SIGN_ENTITLEMENTS = eSteem/eSteem.entitlements;
|
CODE_SIGN_ENTITLEMENTS = eSteem/eSteem.entitlements;
|
||||||
CODE_SIGN_IDENTITY = "iPhone Distribution";
|
CODE_SIGN_IDENTITY = "iPhone Distribution";
|
||||||
CODE_SIGN_STYLE = Manual;
|
CODE_SIGN_STYLE = Manual;
|
||||||
CURRENT_PROJECT_VERSION = 6;
|
CURRENT_PROJECT_VERSION = 7;
|
||||||
DEVELOPMENT_TEAM = 75B6RXTKGT;
|
DEVELOPMENT_TEAM = 75B6RXTKGT;
|
||||||
GCC_NO_COMMON_BLOCKS = NO;
|
GCC_NO_COMMON_BLOCKS = NO;
|
||||||
HEADER_SEARCH_PATHS = (
|
HEADER_SEARCH_PATHS = (
|
||||||
|
Binary file not shown.
@ -17,7 +17,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.2.1</string>
|
<string>2.2.2</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleURLTypes</key>
|
<key>CFBundleURLTypes</key>
|
||||||
@ -31,7 +31,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1672</string>
|
<string>1674</string>
|
||||||
<key>CodePushDeploymentKey</key>
|
<key>CodePushDeploymentKey</key>
|
||||||
<string>13ThFZsgwk6UZp6mIe95IDbnfw8iHy1jfsn-E</string>
|
<string>13ThFZsgwk6UZp6mIe95IDbnfw8iHy1jfsn-E</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>BNDL</string>
|
<string>BNDL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.2.1</string>
|
<string>2.2.2</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>6</string>
|
<string>7</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "eSteem",
|
"name": "eSteem",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"rnpm": {
|
"rnpm": {
|
||||||
"assets": [
|
"assets": [
|
||||||
|
@ -199,7 +199,7 @@ class CommentsContainer extends Component {
|
|||||||
const { dispatch, intl, navigation, isOwnProfile } = this.props;
|
const { dispatch, intl, navigation, isOwnProfile } = this.props;
|
||||||
|
|
||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
writeToClipboard(`https://steemit.com${get(selectedComment, 'url')}`).then(() => {
|
writeToClipboard(`https://esteem.app${get(selectedComment, 'url')}`).then(() => {
|
||||||
dispatch(
|
dispatch(
|
||||||
toastNotification(
|
toastNotification(
|
||||||
intl.formatMessage({
|
intl.formatMessage({
|
||||||
|
@ -63,9 +63,9 @@ export default class MarkdownEditorView extends Component {
|
|||||||
|
|
||||||
componentDidUpdate(prevProps, prevState) {
|
componentDidUpdate(prevProps, prevState) {
|
||||||
const { text } = this.state;
|
const { text } = this.state;
|
||||||
const { isFormValid, handleIsFormValid } = this.props;
|
const { handleIsFormValid } = this.props;
|
||||||
|
|
||||||
if (prevState.text !== text && !isFormValid) {
|
if (prevState.text !== text) {
|
||||||
const nextText = text.replace(prevState.text, '');
|
const nextText = text.replace(prevState.text, '');
|
||||||
|
|
||||||
if (nextText && nextText.length > 0) {
|
if (nextText && nextText.length > 0) {
|
||||||
@ -81,14 +81,6 @@ export default class MarkdownEditorView extends Component {
|
|||||||
// Component functions
|
// Component functions
|
||||||
_changeText = input => {
|
_changeText = input => {
|
||||||
const { onChange, handleOnTextChange, handleIsValid, componentID } = this.props;
|
const { onChange, handleOnTextChange, handleIsValid, componentID } = this.props;
|
||||||
const { textUpdated } = this.state;
|
|
||||||
|
|
||||||
if (textUpdated) {
|
|
||||||
this.setState({
|
|
||||||
textUpdated: false,
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
this.setState({ text: input });
|
this.setState({ text: input });
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@
|
|||||||
},
|
},
|
||||||
"payout": {
|
"payout": {
|
||||||
"potential_payout": "Lehetséges Kifizetés",
|
"potential_payout": "Lehetséges Kifizetés",
|
||||||
"promoted": "Támogatott",
|
"promoted": "Promovált",
|
||||||
"author_payout": "Szerzői Kifizetés",
|
"author_payout": "Szerzői Kifizetés",
|
||||||
"curation_payout": "Kurátori Kifizetés",
|
"curation_payout": "Kurátori Kifizetés",
|
||||||
"payout_date": "Kifizetés"
|
"payout_date": "Kifizetés"
|
||||||
|
@ -128,7 +128,7 @@ export const loginWithSC2 = async (code, isPinCodeOpen) => {
|
|||||||
postingKey: '',
|
postingKey: '',
|
||||||
activeKey: '',
|
activeKey: '',
|
||||||
memoKey: '',
|
memoKey: '',
|
||||||
accessToken: scTokens.access_token,
|
accessToken: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isPinCodeOpen) {
|
if (isPinCodeOpen) {
|
||||||
@ -177,8 +177,10 @@ export const setUserDataWithPinCode = async data => {
|
|||||||
get(userData, 'memoKey') ||
|
get(userData, 'memoKey') ||
|
||||||
get(userData, 'postingKey');
|
get(userData, 'postingKey');
|
||||||
|
|
||||||
|
if (publicKey) {
|
||||||
data.password = decryptKey(publicKey, data.pinCode);
|
data.password = decryptKey(publicKey, data.pinCode);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const updatedUserData = getUpdatedUserData(userData, data);
|
const updatedUserData = getUpdatedUserData(userData, data);
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ export const prepareBeneficiaries = post => {
|
|||||||
beneficiaries: [
|
beneficiaries: [
|
||||||
{
|
{
|
||||||
account: 'esteemapp',
|
account: 'esteemapp',
|
||||||
weight: 1000, // 10%
|
weight: 300, // 3%
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -131,7 +131,7 @@ class ApplicationContainer extends Component {
|
|||||||
if (nextProps.isDarkTheme) {
|
if (nextProps.isDarkTheme) {
|
||||||
changeNavigationBarColor('#1e2835');
|
changeNavigationBarColor('#1e2835');
|
||||||
} else {
|
} else {
|
||||||
changeNavigationBarColor('#FFFFFF');
|
changeNavigationBarColor('#FFFFFF', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,6 +3,7 @@ import { Alert, Linking, Platform } from 'react-native';
|
|||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
import AppCenter from 'appcenter';
|
import AppCenter from 'appcenter';
|
||||||
|
import Config from 'react-native-config';
|
||||||
|
|
||||||
// Services and Actions
|
// Services and Actions
|
||||||
import { login } from '../../../providers/steem/auth';
|
import { login } from '../../../providers/steem/auth';
|
||||||
@ -13,9 +14,14 @@ import {
|
|||||||
addOtherAccount,
|
addOtherAccount,
|
||||||
updateCurrentAccount,
|
updateCurrentAccount,
|
||||||
} from '../../../redux/actions/accountAction';
|
} from '../../../redux/actions/accountAction';
|
||||||
import { login as loginAction, openPinCodeModal } from '../../../redux/actions/applicationActions';
|
import {
|
||||||
|
login as loginAction,
|
||||||
|
openPinCodeModal,
|
||||||
|
setPinCode,
|
||||||
|
} from '../../../redux/actions/applicationActions';
|
||||||
import { setPushTokenSaved } from '../../../realm/realm';
|
import { setPushTokenSaved } from '../../../realm/realm';
|
||||||
import { setPushToken } from '../../../providers/esteem/esteem';
|
import { setPushToken } from '../../../providers/esteem/esteem';
|
||||||
|
import { encryptKey } from '../../../utils/crypto';
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
|
|
||||||
@ -62,6 +68,8 @@ class LoginContainer extends PureComponent {
|
|||||||
if (isPinCodeOpen) {
|
if (isPinCodeOpen) {
|
||||||
dispatch(openPinCodeModal({ navigateTo: ROUTES.DRAWER.MAIN }));
|
dispatch(openPinCodeModal({ navigateTo: ROUTES.DRAWER.MAIN }));
|
||||||
} else {
|
} else {
|
||||||
|
const encryptedPin = encryptKey(Config.DEFAULT_PIN, Config.PIN_KEY);
|
||||||
|
dispatch(setPinCode(encryptedPin));
|
||||||
navigation.navigate({
|
navigation.navigate({
|
||||||
routeName: ROUTES.DRAWER.MAIN,
|
routeName: ROUTES.DRAWER.MAIN,
|
||||||
});
|
});
|
||||||
|
@ -65,7 +65,7 @@ export const makeOptions = (author, permlink, operationType) => {
|
|||||||
permlink,
|
permlink,
|
||||||
max_accepted_payout: '1000000.000 SBD',
|
max_accepted_payout: '1000000.000 SBD',
|
||||||
percent_steem_dollars: 10000,
|
percent_steem_dollars: 10000,
|
||||||
extensions: [[0, { beneficiaries: [{ account: 'esteemapp', weight: 1000 }] }]],
|
extensions: [[0, { beneficiaries: [{ account: 'esteemapp', weight: 300 }] }]],
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (operationType) {
|
switch (operationType) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export const getPostUrl = url => {
|
export const getPostUrl = url => {
|
||||||
const BASE_URL = 'https://steemit.com';
|
const BASE_URL = 'https://esteem.app';
|
||||||
|
|
||||||
return BASE_URL + url;
|
return BASE_URL + url;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user