Skip to content

Commit

Permalink
fix: android
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Sep 26, 2021
1 parent 81bb553 commit f99435d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
15 changes: 7 additions & 8 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
repositories {
jcenter()
mavenCentral()
}

dependencies {
Expand All @@ -11,12 +11,12 @@ buildscript {
apply plugin: 'com.android.library'

android {
compileSdkVersion 28
buildToolsVersion "28.0.3"
compileSdkVersion 30
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 16
targetSdkVersion 28
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
Expand All @@ -26,21 +26,20 @@ android {
}

repositories {
jcenter()
mavenCentral()
}


ext {
supportVersion = '28.0.3'
supportVersion = '30.0.3'
frescoVersion = '1.13.0'
}

dependencies {

implementation "com.facebook.react:react-native:+" // From node_modules
implementation "androidx.appcompat:appcompat:1.0.0"
implementation 'me.relex:photodraweeview:1.1.0'
implementation "androidx.appcompat:appcompat:1.3.1"
implementation 'me.relex:photodraweeview:2.1.0'

implementation "com.facebook.fresco:fresco:$frescoVersion"
implementation "com.facebook.fresco:animated-gif:$frescoVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ public void setScale(float scale, float focalX, float focalY, boolean animate) {
attacher.setScale(scale, focalX, focalY, animate);
}

@Override
public void setOrientation(int orientation) {

}

@Override
public void setZoomTransitionDuration(long duration) {
attacher.setZoomTransitionDuration(duration);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@merryjs/photo-viewer",
"version": "3.2.1",
"version": "3.2.3",
"description": "A photo viewer for react native",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit f99435d

Please sign in to comment.