Skip to content

Commit e36dae7

Browse files
committed
Vendor PhotoView library
1 parent 7f37d66 commit e36dae7

9 files changed

+144
-2
lines changed

vault-android/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,20 @@ emulator -list-avds
8484
# start an emulator
8585
emulator @Pixel_4_API_30
8686
```
87+
88+
## Libs
89+
90+
### PhotoView
91+
92+
PhotoView library is not hosted on Maven Central and there were problems with
93+
jitpack.io. The library was built locally and jar was added to libs.
94+
95+
```sh
96+
git clone https://github.com/Baseflow/PhotoView.git
97+
cd PhotoView
98+
git checkout 565505d
99+
# use java 8
100+
export ANDROID_HOME=$HOME/Library/Android/sdk
101+
sed -i "s/version = '2.3.0'/version = '565505d5cb'/" photoview/build.gradle
102+
./gradlew --no-daemon -Dmaven.repo.local=/PATH/TO/vault-android/app/libs publishToMavenLocal
103+
```

vault-android/app/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ dependencies {
117117
implementation("io.coil-kt:coil-compose-base:2.4.0")
118118
implementation("io.coil-kt:coil-gif:2.4.0")
119119
implementation("io.coil-kt:coil-svg:2.4.0")
120-
implementation("com.github.chrisbanes:PhotoView:565505d5cb84f5977771b5d2ccb7726338e77224")
120+
implementation("com.github.chrisbanes:PhotoView:565505d5cb")
121121
// implementation("com.davemorrissey.labs:subsampling-scale-image-view-androidx:3.10.0")
122122
implementation("androidx.media3:media3-exoplayer:1.1.1")
123123
implementation("androidx.media3:media3-ui:1.1.1")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"formatVersion": "1.1",
3+
"component": {
4+
"group": "com.github.chrisbanes",
5+
"module": "PhotoView",
6+
"version": "565505d5cb",
7+
"attributes": {
8+
"org.gradle.status": "release"
9+
}
10+
},
11+
"createdBy": {
12+
"gradle": {
13+
"version": "6.8",
14+
"buildId": "dzp6rhk7sfcnbjtosbezjqlxmi"
15+
}
16+
},
17+
"variants": [
18+
{
19+
"name": "releaseApiPublication",
20+
"attributes": {
21+
"org.gradle.category": "library",
22+
"org.gradle.dependency.bundling": "external",
23+
"org.gradle.libraryelements": "aar",
24+
"org.gradle.usage": "java-api"
25+
},
26+
"files": [
27+
{
28+
"name": "PhotoView-565505d5cb.aar",
29+
"url": "PhotoView-565505d5cb.aar",
30+
"size": 37262,
31+
"sha512": "68677fe74d9bf777ccf9bb068a598e440080b8029e35d7823a13e7022d87b1e3bae51a3930a9df53b22f6f9ec1d99ebe09359ba08649020f800f16118ea18d37",
32+
"sha256": "ea614445372fb43816191006d33aaffffad631d16ec64bb465de068b73f6d1fa",
33+
"sha1": "011b11c9300952fb87b492b6bba189fd1ecc4a59",
34+
"md5": "b3f73c0cc780ceb6a363b3b0191692de"
35+
}
36+
]
37+
},
38+
{
39+
"name": "releaseRuntimePublication",
40+
"attributes": {
41+
"org.gradle.category": "library",
42+
"org.gradle.dependency.bundling": "external",
43+
"org.gradle.libraryelements": "aar",
44+
"org.gradle.usage": "java-runtime"
45+
},
46+
"dependencies": [
47+
{
48+
"group": "androidx.appcompat",
49+
"module": "appcompat",
50+
"version": {
51+
"requires": "1.1.0"
52+
}
53+
}
54+
],
55+
"files": [
56+
{
57+
"name": "PhotoView-565505d5cb.aar",
58+
"url": "PhotoView-565505d5cb.aar",
59+
"size": 37262,
60+
"sha512": "68677fe74d9bf777ccf9bb068a598e440080b8029e35d7823a13e7022d87b1e3bae51a3930a9df53b22f6f9ec1d99ebe09359ba08649020f800f16118ea18d37",
61+
"sha256": "ea614445372fb43816191006d33aaffffad631d16ec64bb465de068b73f6d1fa",
62+
"sha1": "011b11c9300952fb87b492b6bba189fd1ecc4a59",
63+
"md5": "b3f73c0cc780ceb6a363b3b0191692de"
64+
}
65+
]
66+
}
67+
]
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4+
<!-- This module was also published with a richer model, Gradle metadata, -->
5+
<!-- which should be used instead. Do not delete the following line which -->
6+
<!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7+
<!-- that they should prefer consuming it instead. -->
8+
<!-- do_not_remove: published-with-gradle-metadata -->
9+
<modelVersion>4.0.0</modelVersion>
10+
<groupId>com.github.chrisbanes</groupId>
11+
<artifactId>PhotoView</artifactId>
12+
<version>565505d5cb</version>
13+
<packaging>aar</packaging>
14+
<name>PhotoView</name>
15+
<description>A simple ImageView that support zooming, both by Multi-touch gestures and double-tap.</description>
16+
<url>https://github.com/Baseflow/PhotoView</url>
17+
<licenses>
18+
<license>
19+
<name>The Apache License, Version 2.0</name>
20+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
21+
</license>
22+
</licenses>
23+
<developers>
24+
<developer>
25+
<id>chrisbanes</id>
26+
<name>Chris Banes</name>
27+
</developer>
28+
</developers>
29+
<scm>
30+
<connection>scm:git@github.com/chrisbanes/PhotoView.git</connection>
31+
<developerConnection>scm:git@github.com/chrisbanes/PhotoView.git</developerConnection>
32+
<url>https://github.com/chrisbanes/PhotoView</url>
33+
</scm>
34+
<dependencies>
35+
<dependency>
36+
<groupId>androidx.appcompat</groupId>
37+
<artifactId>appcompat</artifactId>
38+
<version>1.1.0</version>
39+
<scope>runtime</scope>
40+
</dependency>
41+
</dependencies>
42+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<metadata>
3+
<groupId>com.github.chrisbanes</groupId>
4+
<artifactId>PhotoView</artifactId>
5+
<versioning>
6+
<latest>565505d5cb</latest>
7+
<release>565505d5cb</release>
8+
<versions>
9+
<version>565505d5cb</version>
10+
</versions>
11+
<lastUpdated>20240617180150</lastUpdated>
12+
</versioning>
13+
</metadata>

vault-android/settings.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ dependencyResolutionManagement {
1010
repositories {
1111
google()
1212
mavenCentral()
13-
maven { url = uri("https://www.jitpack.io") }
13+
maven {
14+
url = uri("app/libs")
15+
}
1416
}
1517
}
1618

0 commit comments

Comments
 (0)