Skip to content

Commit 2c4c6fc

Browse files
committed
initialize remote sample app
0 parents  commit 2c4c6fc

33 files changed

+1270
-0
lines changed

.gitignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/app/build
13+
/app/release
14+
/captures
15+
.externalNativeBuild
16+
.cxx

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
4+
android {
5+
compileSdkVersion 33
6+
buildToolsVersion "29.0.3"
7+
defaultConfig {
8+
applicationId "com.example.screencontrol"
9+
minSdkVersion 24
10+
targetSdkVersion 33
11+
versionCode 1
12+
versionName "1.0.0"
13+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
}
15+
16+
buildTypes {
17+
release {
18+
minifyEnabled false
19+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
20+
}
21+
debug{
22+
minifyEnabled false
23+
24+
}
25+
}
26+
compileOptions {
27+
sourceCompatibility JavaVersion.VERSION_1_8
28+
targetCompatibility JavaVersion.VERSION_1_8
29+
30+
}
31+
kotlinOptions {
32+
jvmTarget = "1.8"
33+
}
34+
buildFeatures {
35+
viewBinding true
36+
}
37+
}
38+
dependencies {
39+
implementation fileTree(dir: 'libs', include: ['*.jar'])
40+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
41+
implementation 'androidx.appcompat:appcompat:1.6.1'
42+
implementation 'androidx.core:core-ktx:1.10.1'
43+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
44+
testImplementation 'junit:junit:4.13.2'
45+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
46+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
47+
implementation "com.orhanobut:hawk:2.0.1"
48+
implementation("com.squareup.okhttp3:okhttp:4.8.0")
49+
implementation 'com.google.android.material:material:1.2.1'
50+
implementation "androidx.preference:preference-ktx:1.1.1"
51+
52+
53+
implementation "com.google.firebase:firebase-core:18.0.0"
54+
implementation 'com.google.firebase:firebase-firestore:22.0.0'
55+
56+
implementation platform('com.google.firebase:firebase-bom:26.0.0')
57+
58+
implementation 'com.remote.remote:remotedispatch:1.0.3'
59+
implementation 'org.webrtc:google-webrtc:1.0.32006'
60+
61+
62+
}
63+
apply plugin: 'com.google.gms.google-services'

app/google-services.json

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"project_info": {
3+
"project_number": "254690050892",
4+
"project_id": "webrtc-398a5",
5+
"storage_bucket": "webrtc-398a5.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:254690050892:android:615ddfa58ac77f670585e9",
11+
"android_client_info": {
12+
"package_name": "com.example.screencontrol"
13+
}
14+
},
15+
"oauth_client": [
16+
{
17+
"client_id": "254690050892-k6jkqplmaegr8ksgutmo3s8ocsmn7igb.apps.googleusercontent.com",
18+
"client_type": 3
19+
}
20+
],
21+
"api_key": [
22+
{
23+
"current_key": "AIzaSyCoPPO_FfaHkdCdU-lZ1FwSBkFbO2CKOlg"
24+
}
25+
],
26+
"services": {
27+
"appinvite_service": {
28+
"other_platform_oauth_client": [
29+
{
30+
"client_id": "254690050892-k6jkqplmaegr8ksgutmo3s8ocsmn7igb.apps.googleusercontent.com",
31+
"client_type": 3
32+
}
33+
]
34+
}
35+
}
36+
},
37+
{
38+
"client_info": {
39+
"mobilesdk_app_id": "1:254690050892:android:dbedb62d54f1d4010585e9",
40+
"android_client_info": {
41+
"package_name": "com.remote.control"
42+
}
43+
},
44+
"oauth_client": [
45+
{
46+
"client_id": "254690050892-k6jkqplmaegr8ksgutmo3s8ocsmn7igb.apps.googleusercontent.com",
47+
"client_type": 3
48+
}
49+
],
50+
"api_key": [
51+
{
52+
"current_key": "AIzaSyCoPPO_FfaHkdCdU-lZ1FwSBkFbO2CKOlg"
53+
}
54+
],
55+
"services": {
56+
"appinvite_service": {
57+
"other_platform_oauth_client": [
58+
{
59+
"client_id": "254690050892-k6jkqplmaegr8ksgutmo3s8ocsmn7igb.apps.googleusercontent.com",
60+
"client_type": 3
61+
}
62+
]
63+
}
64+
}
65+
}
66+
],
67+
"configuration_version": "1"
68+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

app/src/main/AndroidManifest.xml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.remote.control">
4+
5+
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
6+
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
7+
<uses-permission android:name="android.permission.INTERNET" />
8+
9+
<uses-feature
10+
android:name="android.hardware.touchscreen"
11+
android:required="false" />
12+
13+
<uses-permission android:name="android.permission.INJECT_EVENTS" />
14+
<uses-permission android:name="com.samsung.android.knox.permission.KNOX_HW_CONTROL" />
15+
<uses-permission android:name="com.samsung.android.knox.permission.KNOX_REMOTE_CONTROL" />
16+
17+
<application
18+
android:name="com.remote.control.MainApplication"
19+
android:allowBackup="true"
20+
android:icon="@mipmap/ic_launcher"
21+
android:label="@string/app_name"
22+
android:supportsRtl="true"
23+
android:theme="@style/AppTheme"
24+
android:usesCleartextTraffic="true">
25+
<meta-data android:name="com.samsung.knoxlicense.permissions" android:value="true"/>
26+
27+
<activity
28+
android:name="com.remote.control.MainActivity"
29+
android:exported="true"
30+
android:label="@string/app_name">
31+
<intent-filter>
32+
<action android:name="android.intent.action.MAIN" />
33+
34+
<category android:name="android.intent.category.LAUNCHER" />
35+
</intent-filter>
36+
</activity>
37+
38+
<service
39+
android:name="com.remote.control.ControlService"
40+
android:enabled="true"
41+
android:exported="true">
42+
<intent-filter>
43+
<action android:name="com.android.management.services" />
44+
</intent-filter>
45+
</service>
46+
47+
48+
49+
</application>
50+
51+
</manifest>

0 commit comments

Comments
 (0)