@elizaos/capacitor-camera 1.0.0

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.
@@ -0,0 +1,18 @@
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 = 'ElizaosCapacitorCamera'
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.license = package['license'] || { :type => 'MIT' }
10
+ s.homepage = 'https://elizaos.ai'
11
+ s.authors = { 'elizaOS' => 'dev@elizaos.ai' }
12
+ s.source = { :git => 'https://github.com/elizaOS/eliza.git', :tag => s.version.to_s }
13
+ s.source_files = 'ios/Sources/**/*.{swift,h,m}'
14
+ s.ios.deployment_target = '15.0'
15
+ s.dependency 'Capacitor'
16
+ s.swift_version = '5.9'
17
+ s.frameworks = 'AVFoundation', 'Photos', 'UIKit'
18
+ end
@@ -0,0 +1,61 @@
1
+ ext {
2
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
3
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.6.1'
4
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.1.5'
5
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.5.1'
6
+ coroutinesVersion = project.hasProperty('coroutinesVersion') ? rootProject.ext.coroutinesVersion : '1.10.2'
7
+ cameraxVersion = project.hasProperty('cameraxVersion') ? rootProject.ext.cameraxVersion : '1.3.1'
8
+ }
9
+
10
+ apply plugin: 'com.android.library'
11
+ android {
12
+ namespace = "ai.eliza.plugins.camera"
13
+ compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 34
14
+
15
+ defaultConfig {
16
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
17
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 34
18
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19
+ }
20
+
21
+ buildTypes {
22
+ release {
23
+ minifyEnabled false
24
+ proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25
+ }
26
+ }
27
+
28
+ compileOptions {
29
+ sourceCompatibility JavaVersion.VERSION_17
30
+ targetCompatibility JavaVersion.VERSION_17
31
+ }
32
+
33
+ }
34
+
35
+ repositories {
36
+ google()
37
+ maven {
38
+ url = uri(rootProject.ext.mavenCentralMirrorUrl)
39
+ }
40
+ mavenCentral()
41
+ }
42
+
43
+ dependencies {
44
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
45
+ implementation project(':capacitor-android')
46
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
47
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
48
+ implementation "androidx.exifinterface:exifinterface:1.4.2"
49
+
50
+ // CameraX
51
+ implementation "androidx.camera:camera-core:$cameraxVersion"
52
+ implementation "androidx.camera:camera-camera2:$cameraxVersion"
53
+ implementation "androidx.camera:camera-lifecycle:$cameraxVersion"
54
+ implementation "androidx.camera:camera-video:$cameraxVersion"
55
+ implementation "androidx.camera:camera-view:$cameraxVersion"
56
+ implementation "androidx.camera:camera-extensions:$cameraxVersion"
57
+
58
+ testImplementation "junit:junit:$junitVersion"
59
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
60
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
61
+ }
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
+ <uses-permission android:name="android.permission.CAMERA" />
4
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
5
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" />
6
+
7
+ <uses-feature android:name="android.hardware.camera" android:required="false" />
8
+ <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
9
+ </manifest>