Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pelixpng committed Jan 20, 2024
1 parent 73cb864 commit 3af72a8
Show file tree
Hide file tree
Showing 11 changed files with 103 additions and 21 deletions.
4 changes: 2 additions & 2 deletions code/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ android {
applicationId 'com.pelixpng.PastVuApp'
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 4
versionName "1.3.0"
versionCode 5
versionName "1.3.1"

buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())
}
Expand Down
2 changes: 1 addition & 1 deletion code/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</intent>
</queries>
<application android:name=".MainApplication" android:label="@string/app_name" android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" android:allowBackup="true" android:theme="@style/AppTheme" android:requestLegacyExternalStorage="true">
<meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyAs_GoYr2mN3hjs-VynJXeGpONtaA5GkXo"/>
<meta-data android:name="com.google.android.geo.API_KEY" android:value="AIzaSyAboOEQGb_eM7kUS3qRDVE8lrfDuKKJDp0"/>
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>
<meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="@string/expo_runtime_version"/>
<meta-data android:name="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH" android:value="ALWAYS"/>
Expand Down
4 changes: 2 additions & 2 deletions code/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"expo": {
"name": "PastVu",
"slug": "PastVuApp",
"version": "1.3.0",
"version": "1.3.1",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
Expand All @@ -28,7 +28,7 @@
"backgroundColor": "#ffffff"
},
"package": "com.pelixpng.PastVuApp",
"versionCode": 4
"versionCode": 5
},
"web": {
"favicon": "./assets/favicon.png"
Expand Down
Binary file added code/assets/avatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions code/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
module.exports = function (api) {
api.cache(true)
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin']
}
}
2 changes: 1 addition & 1 deletion code/ios/PastVu/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.3.0</string>
<string>1.3.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
80 changes: 80 additions & 0 deletions code/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"styled-components": "^6.0.3",
"expo-image": "~1.3.5"
"expo-image": "~1.3.5",
"react-native-reanimated": "~3.3.0",
"@shopify/flash-list": "1.4.3"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
7 changes: 3 additions & 4 deletions code/src/components/post/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import { perfectSize } from '../../utils/ScreenSize'
import { DefaultTheme, useTheme } from 'styled-components'
import RenderHtml from 'react-native-render-html'
import { Image } from 'expo-image'
import StandardAvatar from '../../../assets/avatar.png'

type CommentProps = {
uri: string | undefined
uri?: string
name: string
text: string
width: string
Expand All @@ -24,9 +25,7 @@ export const Comment: FC<CommentProps> = ({ name, text, uri, width }) => {
return (
<CommentContainer width={width}>
<Image
source={{
uri: `https://pastvu.com${uri ? uri : '/img/caps/avatar.png'}`
}}
source={uri ? { uri: `https://pastvu.com${uri}` } : StandardAvatar}
style={{
width: perfectSize(40),
height: perfectSize(40),
Expand Down
3 changes: 1 addition & 2 deletions code/src/screens/map/PhotoView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ export const PhotoPage: React.FC<PhotoPageProps> = observer(({ route }) => {
} = route.params
return (
<ViewContainer>
<Pinchable style={{ width: '100%', height: '40%' }}>
<Pinchable style={{ width: '100%', height: '45%' }}>
<Image
source={{
uri: `https://pastvu.com/_p/${photoQualitySettings}/${file}`
}}
style={{ width: '100%', height: '100%' }}
contentFit="contain"
allowDownscaling={false}
onError={() =>
AlertModalService.infoAlert(
'Ошибка',
Expand Down
5 changes: 3 additions & 2 deletions code/src/screens/settings/AboutApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
} from '../../components/ui/UniversalComponents'
import { InsideMenuProps, LinkProps } from '../../types/components'
import { InsideMenuComponent } from '../../components/ui/InsideMenuComponent'
import AppIcon from '../../../assets/icon.png'

const ResourcesUsed: LinkProps[] = [
{ title: 'PastVu Api', url: 'https://docs.pastvu.com/dev/api' },
Expand Down Expand Up @@ -44,9 +45,9 @@ export const AppInfo: FC = () => {
return (
<ScrollContainer>
<AppIconContainer>
<LogoContainer source={require('../../../assets/icon.png')} />
<LogoContainer source={AppIcon} />
<MenuDescriptionText>
Версия 1.3.0 от 13 января 2024 г.
Версия 1.3.1 от 18 января 2024 г.
</MenuDescriptionText>
</AppIconContainer>
<InsideMenuComponent
Expand Down

0 comments on commit 3af72a8

Please sign in to comment.