Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么下载 #222

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d26e3c5
Change namespace to devicefarmer
koral-- May 16, 2020
8e981be
Update version number to 2.4.0
koral-- May 16, 2020
0106cb9
Set up semaphore (#1)
koral-- Jun 14, 2020
e36cb96
bootstrap android 11 support
pcrepieux Sep 10, 2020
2f90074
Android 11 comes with a redesigned API to query display info
pcrepieux Sep 10, 2020
ba0fbed
prepare 2.5.0 release
pcrepieux Sep 11, 2020
538b2a5
Merge pull request #7 from DeviceFarmer/android-11-support
koral-- Sep 20, 2020
ddc0ed9
Add publish configuration
koral-- Sep 22, 2020
0aa1823
Merge pull request #8 from DeviceFarmer/semaphore-pubish
koral-- Sep 22, 2020
09b82eb
Kotlin implemtentation of minicap
pcrepieux Nov 5, 2020
737733a
update semaphore config now that the project also builds an apk
pcrepieux Apr 8, 2021
08cbdef
Cleaning as per review:
pcrepieux Apr 14, 2021
e5e6153
Merge pull request #12 from DeviceFarmer/minicap-kotlin
pcrepieux Apr 16, 2021
bd39f86
Upgrade to GitHub-native Dependabot
dependabot-preview[bot] Apr 29, 2021
5d0537d
Merge pull request #13 from DeviceFarmer/dependabot/add-v2-config-file
koral-- Apr 30, 2021
52337a0
Fix image size of kotlin minicap
pcrepieux May 27, 2021
1624389
update apk version code / version name and npm package
pcrepieux May 27, 2021
391f6ad
Merge pull request #15 from DeviceFarmer/fix-screen-size
koral-- May 31, 2021
a0f3982
Fix rotation issue
pcrepieux Jul 15, 2021
8cbf4ed
Merge pull request #19 from DeviceFarmer/issue-17
koral-- Jul 16, 2021
b6475c6
Support Android 12 (preview),and resolve black screen problem
Sep 14, 2021
336f5aa
Merge pull request #26 from yusunan/master
koral-- Sep 15, 2021
eba5a1f
support Android 12 for the minicap.so building.
JesseCodeBones Oct 12, 2021
0236e53
update main Make file for Android 12 building.
JesseCodeBones Oct 13, 2021
accda99
Merge pull request #30 from JesseCodeBones/Android_12_so_support
koral-- Oct 13, 2021
8897d35
Support Android 12 (preview),and resolve black screen problem
Sep 14, 2021
6c6bef5
PreCompiled shared libraries for Android 12 for arm64-v8a and armeabi…
varundtsfi Oct 14, 2021
94f92ff
pre compiled x86 and x86_64 arch shared libraries for minicap
varundtsfi Oct 14, 2021
48cbb97
Merge pull request #31 from varundtsfi/master
koral-- Oct 16, 2021
5d1ce2b
add multiple display support with the apk
pcrepieux Dec 14, 2021
5be2c02
Merge pull request #33 from DeviceFarmer/support_display_id
koral-- Jan 5, 2022
0276fbe
Missing ANDROID_SDK_ROOT
pcrepieux Jan 7, 2022
690100b
Update os image in semaphore.yml to ubuntu2004
koral-- May 15, 2024
16eebef
Update publish.yml
koral-- May 15, 2024
6d83cf8
Merge pull request #57 from DeviceFarmer/ubuntu2004
koral-- May 15, 2024
2aa036b
vnc support for sdk 32, 33, 34 devicefarmer/minicap
varundtsfi May 15, 2024
3a373a5
Merge pull request #58 from varundtsfi/minicap_vncsupport_Sdk_32_33_34
koral-- May 15, 2024
ba88f78
Signed-off-by: varundtsfi <[email protected]>
varundtsfi May 22, 2024
7d78f90
Signed-off-by: varundtsfi <[email protected]>
varundtsfi May 22, 2024
e912170
Unwanted file removed from the code
varundtsfi May 22, 2024
4b04109
All gdb.setup file deleted from each architecture
varundtsfi May 23, 2024
44a77ed
Merge pull request #60 from varundtsfi/minicap_issue#_54_android15_su…
koral-- May 23, 2024
5dd509b
Update version number to 2.7.2
koral-- Jun 4, 2024
76d6472
Merge pull request #61 from DeviceFarmer/release-272
koral-- Jun 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gradle
/*.tgz
/.env
/gdb.setup
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "libjpeg-turbo"]
path = jni/vendor/libjpeg-turbo
url = https://github.com/openstf/android-libjpeg-turbo.git
url = https://github.com/devicefarmer/android-libjpeg-turbo.git
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.env
/.gitmodules
/.npmignore
/.semaphore
/*.tgz
/build-remote.sh
/CONTRIBUTING.md
Expand All @@ -14,3 +15,4 @@
/run.sh
/temp/
/yarn-error.log
/experimental
30 changes: 30 additions & 0 deletions .semaphore/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: v1.0
name: Publish
blocks:
- name: Publish
task:
jobs:
- name: NPM publish
commands:
- checkout
- git submodule init
- git submodule update
- 'wget https://dl.google.com/android/repository/commandlinetools-linux-6514223_latest.zip -O ~/android-commandline-tools.zip '
- mkdir -p ~/android-sdk/cmdline-tools/
- unzip ~/android-commandline-tools.zip -d ~/android-sdk/cmdline-tools
- 'export PATH=$PATH:~/android-sdk/cmdline-tools/tools/bin'
- yes | sdkmanager "ndk;21.3.6528147"
- 'export PATH=$PATH:~/android-sdk/ndk/21.3.6528147/'
- 'export ANDROID_SDK_ROOT=~/android-sdk'
- sem-version node 12
- cache restore
- npm install
- cache store
- npm install
- npm publish --access public
secrets:
- name: npmjs
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
33 changes: 33 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: v1.0
name: NPM test
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: Test
task:
jobs:
- name: Test
commands:
- checkout
- git submodule init
- git submodule update
- 'wget https://dl.google.com/android/repository/commandlinetools-linux-6514223_latest.zip -O ~/android-commandline-tools.zip '
- mkdir -p ~/android-sdk/cmdline-tools/
- unzip ~/android-commandline-tools.zip -d ~/android-sdk/cmdline-tools
- 'export PATH=$PATH:~/android-sdk/cmdline-tools/tools/bin'
- yes | sdkmanager "ndk;21.3.6528147"
- 'export PATH=$PATH:~/android-sdk/ndk/21.3.6528147/'
- export ANDROID_SDK_ROOT=~/android-sdk
- sem-version node 12
- cache restore
- npm install
- cache store
- npm run build --if-present
- npm test
promotions:
- name: NPM publish
pipeline_file: publish.yml
auto_promote:
when: (branch = 'master' OR tag =~ '.*') AND result = 'passed'
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,22 @@ NDKBUILT := \
libs/x86_64/minicap \
libs/x86_64/minicap-nopie \

GRADLEBUILT := \
experimental/app/build/outputs/apk/debug/minicap-debug.apk

default: prebuilt

clean:
ndk-build clean
rm -rf prebuilt
experimental/gradlew -p experimental clean

$(NDKBUILT):
ndk-build

$(GRADLEBUILT):
experimental/gradlew -p experimental assembleDebug

# It may feel a bit redundant to list everything here. However it also
# acts as a safeguard to make sure that we really are including everything
# that is supposed to be there.
Expand All @@ -42,6 +49,7 @@ prebuilt: \
prebuilt/armeabi-v7a/lib/android-27/minicap.so \
prebuilt/armeabi-v7a/lib/android-28/minicap.so \
prebuilt/armeabi-v7a/lib/android-29/minicap.so \
prebuilt/armeabi-v7a/lib/android-30/minicap.so \
prebuilt/arm64-v8a/bin/minicap \
prebuilt/arm64-v8a/bin/minicap-nopie \
prebuilt/arm64-v8a/lib/android-21/minicap.so \
Expand All @@ -53,6 +61,7 @@ prebuilt: \
prebuilt/arm64-v8a/lib/android-27/minicap.so \
prebuilt/arm64-v8a/lib/android-28/minicap.so \
prebuilt/arm64-v8a/lib/android-29/minicap.so \
prebuilt/arm64-v8a/lib/android-30/minicap.so \
prebuilt/x86/bin/minicap \
prebuilt/x86/bin/minicap-nopie \
prebuilt/x86/lib/android-14/minicap.so \
Expand All @@ -70,6 +79,7 @@ prebuilt: \
prebuilt/x86/lib/android-27/minicap.so \
prebuilt/x86/lib/android-28/minicap.so \
prebuilt/x86/lib/android-29/minicap.so \
prebuilt/x86/lib/android-30/minicap.so \
prebuilt/x86_64/bin/minicap \
prebuilt/x86_64/bin/minicap-nopie \
prebuilt/x86_64/lib/android-21/minicap.so \
Expand All @@ -81,6 +91,8 @@ prebuilt: \
prebuilt/x86_64/lib/android-27/minicap.so \
prebuilt/x86_64/lib/android-28/minicap.so \
prebuilt/x86_64/lib/android-29/minicap.so \
prebuilt/x86_64/lib/android-30/minicap.so \
prebuilt/noarch/minicap.apk \

prebuilt/%/bin/minicap: libs/%/minicap
mkdir -p $(@D)
Expand All @@ -105,3 +117,8 @@ prebuilt/x86/lib/%/minicap.so: jni/minicap-shared/aosp/libs/%/x86/minicap.so
prebuilt/x86_64/lib/%/minicap.so: jni/minicap-shared/aosp/libs/%/x86_64/minicap.so
mkdir -p $(@D)
cp $^ $@

prebuilt/noarch/minicap.apk: experimental/app/build/outputs/apk/debug/minicap-debug.apk
mkdir -p $(@D)
cp $^ $@

16 changes: 16 additions & 0 deletions experimental/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
/.idea
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
1 change: 1 addition & 0 deletions experimental/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
59 changes: 59 additions & 0 deletions experimental/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* Copyright (C) 2020 Orange
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id 'com.android.application'
id 'kotlin-android'
id 'org.jetbrains.dokka'
}

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
applicationId "io.devicefarmer.minicap"
minSdkVersion 21
targetSdkVersion 30
versionCode 2
versionName "0.7"
archivesBaseName = "minicap"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
implementation 'org.slf4j:slf4j-api:1.7.30'
implementation 'com.github.tony19:logback-android:2.0.0'
}
21 changes: 21 additions & 0 deletions experimental/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
26 changes: 26 additions & 0 deletions experimental/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2020 Orange
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.devicefarmer.minicap">
<application
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/Theme.Minicap" />
</manifest>
42 changes: 42 additions & 0 deletions experimental/app/src/main/assets/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
~ Copyright (C) 2020 Orange
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<configuration>
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
<target>System.err</target>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>/data/local/tmp/minicap.log</file>
<append>true</append>
<encoder>
<pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>

<appender name="LOGCAT" class="ch.qos.logback.classic.android.LogcatAppender">
<encoder>
<pattern>%msg%n</pattern>
</encoder>
</appender>
<root level="DEBUG">
<!--appender-ref ref="FILE" /-->
<appender-ref ref="LOGCAT" />
<appender-ref ref="STDERR" />
</root>
</configuration>
Loading