@capacitor/contacts 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.
- package/CapacitorContacts.podspec +18 -0
- package/LICENSE +202 -0
- package/NOTICE +7 -0
- package/Package.swift +28 -0
- package/README.md +357 -0
- package/android/build.gradle +88 -0
- package/android/src/main/AndroidManifest.xml +7 -0
- package/android/src/main/kotlin/com/capacitorjs/plugins/contacts/Contacts.kt +924 -0
- package/android/src/main/kotlin/com/capacitorjs/plugins/contacts/ContactsError.kt +27 -0
- package/android/src/main/kotlin/com/capacitorjs/plugins/contacts/ContactsPlugin.kt +278 -0
- package/android/src/main/res/.gitkeep +0 -0
- package/dist/docs.json +948 -0
- package/dist/esm/definitions.d.ts +440 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +14 -0
- package/dist/esm/web.js +22 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +36 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +39 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/ContactsPlugin/Contacts.swift +257 -0
- package/ios/Sources/ContactsPlugin/ContactsError.swift +43 -0
- package/ios/Sources/ContactsPlugin/ContactsMapping.swift +310 -0
- package/ios/Sources/ContactsPlugin/ContactsPlugin.swift +166 -0
- package/ios/Tests/ContactsPluginTests/ContactsTests.swift +69 -0
- package/package.json +92 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
ext {
|
|
2
|
+
capacitorVersion = System.getenv('CAPACITOR_VERSION')
|
|
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
|
+
androidxCoreKTXVersion = project.hasProperty('androidxCoreKTXVersion') ? rootProject.ext.androidxCoreKTXVersion : '1.17.0'
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
buildscript {
|
|
11
|
+
ext.kotlin_version = project.hasProperty("kotlin_version") ? rootProject.ext.kotlin_version : '2.2.20'
|
|
12
|
+
repositories {
|
|
13
|
+
google()
|
|
14
|
+
mavenCentral()
|
|
15
|
+
maven {
|
|
16
|
+
url = "https://plugins.gradle.org/m2/"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
dependencies {
|
|
20
|
+
classpath 'com.android.tools.build:gradle:8.13.0'
|
|
21
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
22
|
+
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
23
|
+
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
apply plugin: 'com.android.library'
|
|
30
|
+
apply plugin: 'kotlin-android'
|
|
31
|
+
|
|
32
|
+
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
33
|
+
apply plugin: 'io.github.gradle-nexus.publish-plugin'
|
|
34
|
+
apply from: file('../scripts/android/publish-root.gradle')
|
|
35
|
+
apply from: file('../scripts/android/publish-module.gradle')
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
android {
|
|
39
|
+
namespace = "com.capacitorjs.plugins.contacts"
|
|
40
|
+
compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
|
|
41
|
+
defaultConfig {
|
|
42
|
+
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
|
|
43
|
+
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
|
|
44
|
+
versionCode 1
|
|
45
|
+
versionName "1.0"
|
|
46
|
+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
47
|
+
}
|
|
48
|
+
buildTypes {
|
|
49
|
+
release {
|
|
50
|
+
minifyEnabled false
|
|
51
|
+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
lintOptions {
|
|
55
|
+
abortOnError = false
|
|
56
|
+
}
|
|
57
|
+
compileOptions {
|
|
58
|
+
sourceCompatibility JavaVersion.VERSION_21
|
|
59
|
+
targetCompatibility JavaVersion.VERSION_21
|
|
60
|
+
}
|
|
61
|
+
publishing {
|
|
62
|
+
singleVariant("release")
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
kotlin {
|
|
67
|
+
jvmToolchain(21)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
repositories {
|
|
71
|
+
google()
|
|
72
|
+
mavenCentral()
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
dependencies {
|
|
77
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
78
|
+
if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
|
|
79
|
+
implementation "com.capacitorjs:core:$capacitorVersion"
|
|
80
|
+
} else {
|
|
81
|
+
implementation project(':capacitor-android')
|
|
82
|
+
}
|
|
83
|
+
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
|
|
84
|
+
implementation "androidx.core:core-ktx:$androidxCoreKTXVersion"
|
|
85
|
+
testImplementation "junit:junit:$junitVersion"
|
|
86
|
+
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
|
|
87
|
+
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
|
|
88
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
|
2
|
+
|
|
3
|
+
<!-- Propagated to the host app via Gradle manifest merging. -->
|
|
4
|
+
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
5
|
+
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
|
|
6
|
+
|
|
7
|
+
</manifest>
|