@capawesome/capacitor-exif 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/CapawesomeCapacitorExif.podspec +17 -0
  2. package/LICENSE +21 -0
  3. package/Package.swift +28 -0
  4. package/README.md +322 -0
  5. package/android/build.gradle +60 -0
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/Exif.java +289 -0
  8. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/ExifPlugin.java +120 -0
  9. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/classes/CustomException.java +20 -0
  10. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/classes/CustomExceptions.java +27 -0
  11. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/classes/options/ReadExifOptions.java +36 -0
  12. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/classes/options/RemoveExifOptions.java +43 -0
  13. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/classes/options/WriteExifOptions.java +185 -0
  14. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/classes/results/ReadExifResult.java +152 -0
  15. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/interfaces/Callback.java +5 -0
  16. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/interfaces/EmptyCallback.java +5 -0
  17. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/interfaces/NonEmptyResultCallback.java +7 -0
  18. package/android/src/main/java/io/capawesome/capacitorjs/plugins/exif/interfaces/Result.java +7 -0
  19. package/android/src/main/res/.gitkeep +0 -0
  20. package/dist/docs.json +746 -0
  21. package/dist/esm/definitions.d.ts +375 -0
  22. package/dist/esm/definitions.js +32 -0
  23. package/dist/esm/definitions.js.map +1 -0
  24. package/dist/esm/index.d.ts +4 -0
  25. package/dist/esm/index.js +7 -0
  26. package/dist/esm/index.js.map +1 -0
  27. package/dist/esm/web.d.ts +7 -0
  28. package/dist/esm/web.js +13 -0
  29. package/dist/esm/web.js.map +1 -0
  30. package/dist/plugin.cjs.js +59 -0
  31. package/dist/plugin.cjs.js.map +1 -0
  32. package/dist/plugin.js +62 -0
  33. package/dist/plugin.js.map +1 -0
  34. package/ios/Plugin/Classes/Options/ReadExifOptions.swift +20 -0
  35. package/ios/Plugin/Classes/Options/RemoveExifOptions.swift +12 -0
  36. package/ios/Plugin/Classes/Options/WriteExifOptions.swift +49 -0
  37. package/ios/Plugin/Classes/Results/ReadExifResult.swift +75 -0
  38. package/ios/Plugin/Enums/CustomError.swift +54 -0
  39. package/ios/Plugin/Exif.swift +219 -0
  40. package/ios/Plugin/ExifPlugin.swift +83 -0
  41. package/ios/Plugin/Info.plist +24 -0
  42. package/ios/Plugin/Protocols/Result.swift +5 -0
  43. package/package.json +97 -0
@@ -0,0 +1,17 @@
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = 'CapawesomeCapacitorExif'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license']
10
+ s.homepage = package['repository']['url']
11
+ s.author = package['author']
12
+ s.source = { :git => package['repository']['url'], :tag => s.version.to_s }
13
+ s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
+ s.ios.deployment_target = '15.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.1'
17
+ end
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Robin Genz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/Package.swift ADDED
@@ -0,0 +1,28 @@
1
+ // swift-tools-version: 5.9
2
+ import PackageDescription
3
+
4
+ let package = Package(
5
+ name: "CapawesomeCapacitorExif",
6
+ platforms: [.iOS(.v15)],
7
+ products: [
8
+ .library(
9
+ name: "CapawesomeCapacitorExif",
10
+ targets: ["ExifPlugin"])
11
+ ],
12
+ dependencies: [
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0")
14
+ ],
15
+ targets: [
16
+ .target(
17
+ name: "ExifPlugin",
18
+ dependencies: [
19
+ .product(name: "Capacitor", package: "capacitor-swift-pm"),
20
+ .product(name: "Cordova", package: "capacitor-swift-pm")
21
+ ],
22
+ path: "ios/Plugin"),
23
+ .testTarget(
24
+ name: "ExifPluginTests",
25
+ dependencies: ["ExifPlugin"],
26
+ path: "ios/PluginTests")
27
+ ]
28
+ )
package/README.md ADDED
@@ -0,0 +1,322 @@
1
+ # Capacitor Exif Plugin
2
+
3
+ Capacitor plugin to read, write and remove EXIF metadata from image files.
4
+
5
+ <div class="capawesome-z29o10a">
6
+ <a href="https://cloud.capawesome.io/" target="_blank">
7
+ <img alt="Deliver Live Updates to your Capacitor app with Capawesome Cloud" src="https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1" />
8
+ </a>
9
+ </div>
10
+
11
+ ## Features
12
+
13
+ - 📖 **Read**: Read typed EXIF tags like GPS position, camera model, and capture date.
14
+ - ✍️ **Write**: Update EXIF tags in place without touching the rest of the file.
15
+ - 🕵️ **Privacy**: Strip GPS positions and other sensitive metadata before uploading images.
16
+ - 💎 **Lossless**: The pixel data is never re-encoded, so the image quality is not affected.
17
+ - 🖼️ **HEIC support**: Read and write HEIC metadata natively, which JavaScript libraries can not do.
18
+ - ⚡ **Native performance**: Files are processed natively and never loaded into the WebView memory.
19
+ - 🤝 **Compatibility**: Works alongside the [File Picker](https://capawesome.io/docs/sdks/capacitor/file-picker/), [File Compressor](https://capawesome.io/docs/sdks/capacitor/file-compressor/) and [Photo Editor](https://capawesome.io/docs/sdks/capacitor/photo-editor/) plugins.
20
+ - 🔒 **App Store safe**: Uses only official platform APIs.
21
+ - 📦 **CocoaPods & SPM**: Supports CocoaPods and Swift Package Manager for iOS.
22
+ - 🔁 **Up-to-date**: Always supports the latest Capacitor version.
23
+
24
+ Missing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!
25
+
26
+ ## Newsletter
27
+
28
+ Stay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).
29
+
30
+ ## Compatibility
31
+
32
+ | Plugin Version | Capacitor Version | Status |
33
+ | -------------- | ----------------- | -------------- |
34
+ | 0.x.x | >=8.x.x | Active support |
35
+
36
+ ## Installation
37
+
38
+ You can use our **AI-Assisted Setup** to install the plugin.
39
+ Add the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:
40
+
41
+ ```bash
42
+ npx skills add capawesome-team/skills --skill capacitor-plugins
43
+ ```
44
+
45
+ Then use the following prompt:
46
+
47
+ ```
48
+ Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-exif` plugin in my project.
49
+ ```
50
+
51
+ If you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:
52
+
53
+ ```bash
54
+ npm install @capawesome/capacitor-exif
55
+ npx cap sync
56
+ ```
57
+
58
+ ### Android
59
+
60
+ #### Variables
61
+
62
+ This plugin will use the following project variables (defined in your app’s `variables.gradle` file):
63
+
64
+ - `$androidxExifInterfaceVersion` version of `androidx.exifinterface:exifinterface` (default: `1.4.2`)
65
+
66
+ ### iOS
67
+
68
+ No additional configuration is required for this plugin.
69
+
70
+ ## Configuration
71
+
72
+ No configuration required for this plugin.
73
+
74
+ ## Usage
75
+
76
+ ```typescript
77
+ import { Exif } from '@capawesome/capacitor-exif';
78
+
79
+ const readExif = async () => {
80
+ const { tags } = await Exif.readExif({
81
+ path: 'file:///path/to/photo.jpg',
82
+ });
83
+ console.log('GPS position:', tags.gpsLatitude, tags.gpsLongitude);
84
+ };
85
+
86
+ const writeExif = async () => {
87
+ await Exif.writeExif({
88
+ path: 'file:///path/to/photo.jpg',
89
+ tags: {
90
+ dateTimeOriginal: '2026:01:15 10:30:00',
91
+ gpsLatitude: 51.503364,
92
+ gpsLongitude: -0.127625,
93
+ },
94
+ });
95
+ };
96
+
97
+ const removeExif = async () => {
98
+ await Exif.removeExif({
99
+ path: 'file:///path/to/photo.jpg',
100
+ });
101
+ };
102
+ ```
103
+
104
+ ## API
105
+
106
+ <docgen-index>
107
+
108
+ * [`readExif(...)`](#readexif)
109
+ * [`removeExif(...)`](#removeexif)
110
+ * [`writeExif(...)`](#writeexif)
111
+ * [Interfaces](#interfaces)
112
+
113
+ </docgen-index>
114
+
115
+ <docgen-api>
116
+ <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
117
+
118
+ ### readExif(...)
119
+
120
+ ```typescript
121
+ readExif(options: ReadExifOptions) => Promise<ReadExifResult>
122
+ ```
123
+
124
+ Read the EXIF metadata of an image file.
125
+
126
+ Only available on Android and iOS.
127
+
128
+ | Param | Type |
129
+ | ------------- | ----------------------------------------------------------- |
130
+ | **`options`** | <code><a href="#readexifoptions">ReadExifOptions</a></code> |
131
+
132
+ **Returns:** <code>Promise&lt;<a href="#readexifresult">ReadExifResult</a>&gt;</code>
133
+
134
+ **Since:** 0.1.0
135
+
136
+ --------------------
137
+
138
+
139
+ ### removeExif(...)
140
+
141
+ ```typescript
142
+ removeExif(options: RemoveExifOptions) => Promise<void>
143
+ ```
144
+
145
+ Remove the EXIF metadata from an image file in place.
146
+
147
+ The pixel data is never re-encoded, so the image quality
148
+ is not affected.
149
+
150
+ Only available on Android and iOS.
151
+
152
+ | Param | Type |
153
+ | ------------- | --------------------------------------------------------------- |
154
+ | **`options`** | <code><a href="#removeexifoptions">RemoveExifOptions</a></code> |
155
+
156
+ **Since:** 0.1.0
157
+
158
+ --------------------
159
+
160
+
161
+ ### writeExif(...)
162
+
163
+ ```typescript
164
+ writeExif(options: WriteExifOptions) => Promise<void>
165
+ ```
166
+
167
+ Write EXIF metadata to an image file in place.
168
+
169
+ Only the provided tags are updated. All other tags remain unchanged.
170
+ The pixel data is never re-encoded, so the image quality
171
+ is not affected.
172
+
173
+ Only available on Android and iOS.
174
+
175
+ | Param | Type |
176
+ | ------------- | ------------------------------------------------------------- |
177
+ | **`options`** | <code><a href="#writeexifoptions">WriteExifOptions</a></code> |
178
+
179
+ **Since:** 0.1.0
180
+
181
+ --------------------
182
+
183
+
184
+ ### Interfaces
185
+
186
+
187
+ #### ReadExifResult
188
+
189
+ | Prop | Type | Description | Since |
190
+ | ---------- | --------------------------------------------- | ------------------------------------------------- | ----- |
191
+ | **`tags`** | <code><a href="#exiftags">ExifTags</a></code> | The EXIF tags that were read from the image file. | 0.1.0 |
192
+
193
+
194
+ #### ExifTags
195
+
196
+ The EXIF tags of an image file.
197
+
198
+ Every property is optional and only present if the tag
199
+ exists in the file.
200
+
201
+ | Prop | Type | Description | Since |
202
+ | ---------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------ | ----- |
203
+ | **`dateTimeOriginal`** | <code>string</code> | The date and time when the image was originally captured in the EXIF date format `YYYY:MM:DD HH:MM:SS`. | 0.1.0 |
204
+ | **`exposureTime`** | <code>number</code> | The exposure time in seconds. | 0.1.0 |
205
+ | **`fNumber`** | <code>number</code> | The F number (aperture) of the lens. | 0.1.0 |
206
+ | **`flash`** | <code>boolean</code> | Whether or not the flash fired when the image was captured. | 0.1.0 |
207
+ | **`focalLength`** | <code>number</code> | The focal length of the lens in millimeters. | 0.1.0 |
208
+ | **`gpsAltitude`** | <code>number</code> | The altitude in meters above (positive) or below (negative) sea level. | 0.1.0 |
209
+ | **`gpsLatitude`** | <code>number</code> | The latitude in signed decimal degrees. Positive values are north of the equator, negative values are south. | 0.1.0 |
210
+ | **`gpsLongitude`** | <code>number</code> | The longitude in signed decimal degrees. Positive values are east of the prime meridian, negative values are west. | 0.1.0 |
211
+ | **`iso`** | <code>number</code> | The ISO speed rating (photographic sensitivity). | 0.1.0 |
212
+ | **`lensModel`** | <code>string</code> | The model of the lens. | 0.1.0 |
213
+ | **`make`** | <code>string</code> | The manufacturer of the camera. | 0.1.0 |
214
+ | **`model`** | <code>string</code> | The model of the camera. | 0.1.0 |
215
+ | **`orientation`** | <code>number</code> | The orientation of the image as defined by the EXIF specification (1-8). | 0.1.0 |
216
+ | **`pixelHeight`** | <code>number</code> | The height of the image in pixels. | 0.1.0 |
217
+ | **`pixelWidth`** | <code>number</code> | The width of the image in pixels. | 0.1.0 |
218
+ | **`software`** | <code>string</code> | The name of the software that was used to create or edit the image. | 0.1.0 |
219
+
220
+
221
+ #### ReadExifOptions
222
+
223
+ | Prop | Type | Description | Since |
224
+ | ---------- | ------------------- | ------------------------------------------------------------------------------------------------------------- | ----- |
225
+ | **`path`** | <code>string</code> | The path to the image file to read the EXIF metadata from. Local file paths and `file://` URIs are supported. | 0.1.0 |
226
+
227
+
228
+ #### RemoveExifOptions
229
+
230
+ | Prop | Type | Description | Default | Since |
231
+ | --------------------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ----- |
232
+ | **`keepOrientation`** | <code>boolean</code> | Whether or not to keep the orientation tag when removing the EXIF metadata. This is enabled by default so that images are not suddenly displayed rotated after the metadata has been removed. | <code>true</code> | 0.1.0 |
233
+ | **`path`** | <code>string</code> | The path to the image file to remove the EXIF metadata from. Local file paths and `file://` URIs are supported. | | 0.1.0 |
234
+
235
+
236
+ #### WriteExifOptions
237
+
238
+ | Prop | Type | Description | Since |
239
+ | ---------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----- |
240
+ | **`path`** | <code>string</code> | The path to the image file to write the EXIF metadata to. Local file paths and `file://` URIs are supported. | 0.1.0 |
241
+ | **`tags`** | <code><a href="#writableexiftags">WritableExifTags</a></code> | The EXIF tags to write to the image file. Only the provided tags are updated. All other tags remain unchanged. | 0.1.0 |
242
+
243
+
244
+ #### WritableExifTags
245
+
246
+ The writable subset of the EXIF tags.
247
+
248
+ | Prop | Type | Description | Since |
249
+ | ---------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
250
+ | **`dateTimeOriginal`** | <code>string</code> | The date and time when the image was originally captured in the EXIF date format `YYYY:MM:DD HH:MM:SS`. | 0.1.0 |
251
+ | **`exposureTime`** | <code>number</code> | The exposure time in seconds. | 0.1.0 |
252
+ | **`fNumber`** | <code>number</code> | The F number (aperture) of the lens. | 0.1.0 |
253
+ | **`flash`** | <code>boolean</code> | Whether or not the flash fired when the image was captured. | 0.1.0 |
254
+ | **`focalLength`** | <code>number</code> | The focal length of the lens in millimeters. | 0.1.0 |
255
+ | **`gpsAltitude`** | <code>number</code> | The altitude in meters above (positive) or below (negative) sea level. | 0.1.0 |
256
+ | **`gpsLatitude`** | <code>number</code> | The latitude in signed decimal degrees. Positive values are north of the equator, negative values are south. Must be provided together with `gpsLongitude`. | 0.1.0 |
257
+ | **`gpsLongitude`** | <code>number</code> | The longitude in signed decimal degrees. Positive values are east of the prime meridian, negative values are west. Must be provided together with `gpsLatitude`. | 0.1.0 |
258
+ | **`iso`** | <code>number</code> | The ISO speed rating (photographic sensitivity). | 0.1.0 |
259
+ | **`lensModel`** | <code>string</code> | The model of the lens. | 0.1.0 |
260
+ | **`make`** | <code>string</code> | The manufacturer of the camera. | 0.1.0 |
261
+ | **`model`** | <code>string</code> | The model of the camera. | 0.1.0 |
262
+ | **`orientation`** | <code>number</code> | The orientation of the image as defined by the EXIF specification (1-8). | 0.1.0 |
263
+ | **`software`** | <code>string</code> | The name of the software that was used to create or edit the image. | 0.1.0 |
264
+
265
+ </docgen-api>
266
+
267
+ ## Format Support
268
+
269
+ The plugin can read EXIF metadata from any image format that the platform supports.
270
+ Writing and removing EXIF metadata is a lossless in-place operation that is only supported for the following formats:
271
+
272
+ | Format | Read (Android) | Read (iOS) | Write & Remove (Android) | Write & Remove (iOS) |
273
+ | --------- | -------------- | ---------- | ------------------------ | -------------------- |
274
+ | JPEG | ✅ | ✅ | ✅ | ✅ |
275
+ | PNG | ✅ | ✅ | ✅ | ❌ |
276
+ | WebP | ✅ | ✅ | ✅ | ❌ |
277
+ | HEIC/HEIF | ✅ | ✅ | ❌ | ✅ |
278
+ | DNG/RAW | ✅ | ✅ | ❌ | ❌ |
279
+
280
+ Calling `writeExif(...)` or `removeExif(...)` with an unsupported format rejects with the `UNSUPPORTED_FORMAT` error code.
281
+
282
+ ## Lossless Metadata Writes
283
+
284
+ A metadata plugin that degrades the image quality is broken.
285
+ This plugin therefore guarantees that the pixel data is never decoded or re-encoded:
286
+
287
+ - On **Android**, the [`ExifInterface`](https://developer.android.com/reference/androidx/exifinterface/media/ExifInterface) library rewrites only the metadata segments of the file in place.
288
+ - On **iOS**, the [`CGImageDestinationCopyImageSource`](https://developer.apple.com/documentation/imageio/cgimagedestinationcopyimagesource(_:_:_:_:)) API copies the compressed image data unchanged and only replaces the metadata.
289
+
290
+ ## Privacy: Strip Metadata Before Upload
291
+
292
+ Images taken with a smartphone usually contain the exact GPS position, the device model, and the capture date.
293
+ To protect the privacy of your users, remove this metadata before uploading images to a server:
294
+
295
+ ```typescript
296
+ import { Exif } from '@capawesome/capacitor-exif';
297
+
298
+ const prepareUpload = async (path: string) => {
299
+ // Remove the GPS position and all other EXIF metadata.
300
+ // The orientation is kept so that the image is not displayed rotated.
301
+ await Exif.removeExif({ path });
302
+ };
303
+ ```
304
+
305
+ ## Limitations
306
+
307
+ ### Android
308
+
309
+ - Vendor-specific maker notes and other unknown tags may survive `removeExif(...)` since the `ExifInterface` library can only remove known tags.
310
+
311
+ ### iOS
312
+
313
+ - HEIC files store the orientation at the container level, so the `orientation` tag can not be changed and is always kept, even with `keepOrientation` set to `false`.
314
+ - HEIC files may keep the `software` and `dateTimeOriginal` tags after `removeExif(...)`. GPS data and device identity tags (`make`, `model`, `lensModel`) are always removed.
315
+
316
+ ## Changelog
317
+
318
+ See [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/exif/CHANGELOG.md).
319
+
320
+ ## License
321
+
322
+ See [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/exif/LICENSE).
@@ -0,0 +1,60 @@
1
+ ext {
2
+ androidxExifInterfaceVersion = project.hasProperty('androidxExifInterfaceVersion') ? rootProject.ext.androidxExifInterfaceVersion : '1.4.2'
3
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
4
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
5
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
6
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
7
+ }
8
+
9
+ buildscript {
10
+ repositories {
11
+ google()
12
+ mavenCentral()
13
+ }
14
+ dependencies {
15
+ classpath 'com.android.tools.build:gradle:8.13.0'
16
+ }
17
+ }
18
+
19
+ apply plugin: 'com.android.library'
20
+
21
+ android {
22
+ namespace = "io.capawesome.capacitorjs.plugins.exif"
23
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
24
+ defaultConfig {
25
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
26
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
27
+ versionCode 1
28
+ versionName "1.0"
29
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
30
+ }
31
+ buildTypes {
32
+ release {
33
+ minifyEnabled false
34
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35
+ }
36
+ }
37
+ lintOptions {
38
+ abortOnError = false
39
+ }
40
+ compileOptions {
41
+ sourceCompatibility JavaVersion.VERSION_21
42
+ targetCompatibility JavaVersion.VERSION_21
43
+ }
44
+ }
45
+
46
+ repositories {
47
+ google()
48
+ mavenCentral()
49
+ }
50
+
51
+
52
+ dependencies {
53
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
54
+ implementation project(':capacitor-android')
55
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
56
+ implementation "androidx.exifinterface:exifinterface:$androidxExifInterfaceVersion"
57
+ testImplementation "junit:junit:$junitVersion"
58
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
59
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
60
+ }
@@ -0,0 +1,2 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ </manifest>