openvidu-ionic-capacitor: update Android setup
This commit is contained in:
parent
7969cff66d
commit
6da5497ed2
@ -3,11 +3,11 @@ apply plugin: 'com.android.application'
|
||||
android {
|
||||
compileSdkVersion rootProject.ext.compileSdkVersion
|
||||
defaultConfig {
|
||||
applicationId "io.ionic.starter"
|
||||
applicationId "io.openvidu.ionic"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
versionName "1.0.0"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
|
||||
@ -9,10 +9,7 @@ android {
|
||||
|
||||
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
|
||||
dependencies {
|
||||
implementation project(':capacitor-app')
|
||||
implementation project(':capacitor-haptics')
|
||||
implementation project(':capacitor-keyboard')
|
||||
implementation project(':capacitor-status-bar')
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1,45 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="io.ionic.starter">
|
||||
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="io.openvidu.ionic">
|
||||
<application
|
||||
android:networkSecurityConfig="@xml/network_security_config"
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
android:usesCleartextTraffic="true">
|
||||
|
||||
android:theme="@style/AppTheme">
|
||||
<activity
|
||||
android:exported="true"
|
||||
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
|
||||
android:name="io.ionic.starter.MainActivity"
|
||||
android:name="io.openvidu.ionic.MainActivity"
|
||||
android:label="@string/title_activity_main"
|
||||
android:theme="@style/AppTheme.NoActionBarLaunch"
|
||||
android:launchMode="singleTask">
|
||||
|
||||
android:launchMode="singleTask"
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
</activity>
|
||||
|
||||
<provider
|
||||
android:name="androidx.core.content.FileProvider"
|
||||
android:authorities="${applicationId}.fileprovider"
|
||||
android:exported="false"
|
||||
android:grantUriPermissions="true">
|
||||
<meta-data
|
||||
android:name="android.support.FILE_PROVIDER_PATHS"
|
||||
android:resource="@xml/file_paths"></meta-data>
|
||||
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
|
||||
</provider>
|
||||
</application>
|
||||
|
||||
<!-- Permissions -->
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
</manifest>
|
||||
|
||||
@ -2,5 +2,13 @@
|
||||
"appId": "io.openvidu.ionic",
|
||||
"appName": "openvidu-ionic-capacitor",
|
||||
"webDir": "www",
|
||||
"bundledWebRuntime": false
|
||||
"bundledWebRuntime": false,
|
||||
"android": {
|
||||
"includePlugins": [
|
||||
"cordova-plugin-android-permissions"
|
||||
]
|
||||
},
|
||||
"ios": {
|
||||
"includePlugins": []
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,18 +1 @@
|
||||
[
|
||||
{
|
||||
"pkg": "@capacitor/app",
|
||||
"classpath": "com.capacitorjs.plugins.app.AppPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/haptics",
|
||||
"classpath": "com.capacitorjs.plugins.haptics.HapticsPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/keyboard",
|
||||
"classpath": "com.capacitorjs.plugins.keyboard.KeyboardPlugin"
|
||||
},
|
||||
{
|
||||
"pkg": "@capacitor/status-bar",
|
||||
"classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
|
||||
}
|
||||
]
|
||||
[]
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package io.ionic.starter;
|
||||
package io.openvidu.ionic;
|
||||
|
||||
import com.getcapacitor.BridgeActivity;
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
<resources>
|
||||
<string name="app_name">openvidu-ionic-capacitor</string>
|
||||
<string name="title_activity_main">openvidu-ionic-capacitor</string>
|
||||
<string name="package_name">io.ionic.starter</string>
|
||||
<string name="custom_url_scheme">io.ionic.starter</string>
|
||||
<string name="package_name">io.openvidu.ionic</string>
|
||||
<string name="custom_url_scheme">io.openvidu.ionic</string>
|
||||
</resources>
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<network-security-config>
|
||||
<base-config>
|
||||
<trust-anchors>
|
||||
<certificates src="system"/>
|
||||
<certificates src="user"/>
|
||||
</trust-anchors>
|
||||
</base-config>
|
||||
</network-security-config>
|
||||
@ -7,7 +7,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:7.2.1'
|
||||
classpath 'com.android.tools.build:gradle:7.2.2'
|
||||
classpath 'com.google.gms:google-services:4.3.10'
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
|
||||
@ -1,15 +1,3 @@
|
||||
// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
|
||||
include ':capacitor-android'
|
||||
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')
|
||||
|
||||
include ':capacitor-app'
|
||||
project(':capacitor-app').projectDir = new File('../node_modules/@capacitor/app/android')
|
||||
|
||||
include ':capacitor-haptics'
|
||||
project(':capacitor-haptics').projectDir = new File('../node_modules/@capacitor/haptics/android')
|
||||
|
||||
include ':capacitor-keyboard'
|
||||
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
|
||||
|
||||
include ':capacitor-status-bar'
|
||||
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
ext {
|
||||
minSdkVersion = 21
|
||||
minSdkVersion = 22
|
||||
compileSdkVersion = 31
|
||||
targetSdkVersion = 31
|
||||
androidxActivityVersion = '1.2.0'
|
||||
@ -10,5 +10,5 @@ ext {
|
||||
junitVersion = '4.13.1'
|
||||
androidxJunitVersion = '1.1.2'
|
||||
androidxEspressoCoreVersion = '3.3.0'
|
||||
cordovaAndroidVersion = '7.0.0'
|
||||
cordovaAndroidVersion = '10.1.2'
|
||||
}
|
||||
|
||||
@ -4,7 +4,13 @@ const config: CapacitorConfig = {
|
||||
appId: 'io.openvidu.ionic',
|
||||
appName: 'openvidu-ionic-capacitor',
|
||||
webDir: 'www',
|
||||
bundledWebRuntime: false
|
||||
bundledWebRuntime: false,
|
||||
android: {
|
||||
includePlugins: ['cordova-plugin-android-permissions']
|
||||
},
|
||||
ios: {
|
||||
includePlugins: []
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
25
openvidu-ionic-capacitor/config.yml
Normal file
25
openvidu-ionic-capacitor/config.yml
Normal file
@ -0,0 +1,25 @@
|
||||
platforms:
|
||||
android:
|
||||
versionName: 1.0.0
|
||||
manifest:
|
||||
- file: AndroidManifest.xml
|
||||
target: manifest
|
||||
merge: |
|
||||
<manifest>
|
||||
<uses-permission android:name="android.permission.CAMERA" />
|
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" />
|
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
|
||||
</manifest>
|
||||
- file: AndroidManifest.xml
|
||||
target: manifest/application/activity
|
||||
attrs:
|
||||
android:exported: true
|
||||
# gradle:
|
||||
# - file: variables.gradle
|
||||
# target:
|
||||
# ext:
|
||||
# minSdkVersion:
|
||||
# replace:
|
||||
# minSdkVersion: 22
|
||||
ios:
|
||||
version: 1.0.0
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "openvidu-ionic-capacitor",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"author": "Ionic Framework",
|
||||
"homepage": "https://ionicframework.com/",
|
||||
"scripts": {
|
||||
@ -10,9 +10,11 @@
|
||||
"android": "ionic capacitor run android",
|
||||
"ios": "ionic capacitor run ios",
|
||||
"sync": "ionic capacitor sync android",
|
||||
"trapeze": "npx trapeze run config.yml --android-project android --ios-project ios/App -y",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
"e2e": "ng e2e"
|
||||
"e2e": "ng e2e",
|
||||
"build:full": "npm run trapeze && ionic cap sync"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
@ -22,8 +24,8 @@
|
||||
"@angular/platform-browser": "^14.0.0",
|
||||
"@angular/platform-browser-dynamic": "^14.0.0",
|
||||
"@angular/router": "^14.0.0",
|
||||
"@awesome-cordova-plugins/android-permissions": "^5.43.0",
|
||||
"@capacitor/android": "3.5.1",
|
||||
"@awesome-cordova-plugins/android-permissions": "^5.44.0",
|
||||
"@capacitor/android": "3.6.0",
|
||||
"@capacitor/app": "1.1.1",
|
||||
"@capacitor/core": "3.6.0",
|
||||
"@capacitor/haptics": "1.1.4",
|
||||
@ -31,9 +33,10 @@
|
||||
"@capacitor/keyboard": "1.2.2",
|
||||
"@capacitor/status-bar": "1.0.8",
|
||||
"@ionic/angular": "6.1.11",
|
||||
"@trapezedev/configure": "^5.0.0",
|
||||
"cordova-plugin-android-permissions": "^1.1.3",
|
||||
"openvidu-browser": "2.22.0",
|
||||
"rxjs": "~6.6.0",
|
||||
"rxjs": "7.5.6",
|
||||
"tslib": "^2.2.0",
|
||||
"zone.js": "~0.11.4"
|
||||
},
|
||||
@ -47,7 +50,7 @@
|
||||
"@angular/compiler": "^14.0.0",
|
||||
"@angular/compiler-cli": "^14.0.0",
|
||||
"@angular/language-service": "^14.0.0",
|
||||
"@capacitor/cli": "3.5.1",
|
||||
"@capacitor/cli": "3.6.0",
|
||||
"@ionic/angular-toolkit": "^6.0.0",
|
||||
"@types/jasmine": "~3.6.0",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user