Skip to content

Commit

Permalink
Many classes are no more managed as Listener (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored May 31, 2024
1 parent f45c140 commit a51b2f5
Show file tree
Hide file tree
Showing 42 changed files with 46 additions and 2,878 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ jobs:

- name: Pre compile
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\Netdroid\Netdroid.csproj

env:
GITHUB_SIMPLIFIED_GENERATION: true

- name: Set up Apache Maven Central
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
Expand All @@ -142,10 +144,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Install local file to be used within Javadoc plugin of generated POM
run: mvn install:install-file -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.13 -Dpackaging=jar -Dfile=../../../bin/net8.0/JCOBridge.jar -f ./src/jvm/netdroid/pom.xml
shell: bash

- name: Create Jars for Netdroid
run: mvn --file ./src/jvm/netdroid/pom.xml --no-transfer-progress package
env:
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,9 @@ jobs:
- name: Maven preparation (step 1)
if: matrix.language == 'java'
run: dotnet build --no-incremental --configuration Release --framework net8.0 /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" ./src/net/Netdroid.sln

- name: Maven preparation (step 2)
if: matrix.language == 'java'
run: mvn install:install-file -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.13 -Dpackaging=jar -Dfile=../../../bin/net8.0/JCOBridge.jar -f ./src/jvm/netdroid/pom.xml
shell: bash

env:
GITHUB_SIMPLIFIED_GENERATION: true

- if: matrix.language == 'java'
run: mvn --file ./src/jvm/netdroid/pom.xml --no-transfer-progress package

Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/generateclasses.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Pre compile
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\Netdroid\Netdroid.csproj
env:
GITHUB_CLASS_GENERATION: true
GITHUB_SIMPLIFIED_GENERATION: true

- name: Set up Apache Maven Central
uses: actions/setup-java@v4
Expand All @@ -52,10 +52,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Install local file to be used within Javadoc plugin of generated POM
run: mvn install:install-file -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.13 -Dpackaging=jar -Dfile=../../../bin/net8.0/JCOBridge.jar -f ./src/jvm/netdroid/pom.xml
shell: bash

- name: Create Jars
run: mvn --file ./src/jvm/netdroid/pom.xml --no-transfer-progress package
env:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ jobs:

- name: Pre compile
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\Netdroid\Netdroid.csproj

env:
GITHUB_SIMPLIFIED_GENERATION: true

- name: Set up Apache Maven Central
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
Expand All @@ -131,10 +133,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Install local file to be used within Javadoc plugin of generated POM
run: mvn install:install-file -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.13 -Dpackaging=jar -Dfile=../../../bin/net8.0/JCOBridge.jar -f ./src/jvm/netdroid/pom.xml
shell: bash

- name: Create Jars
run: mvn --file ./src/jvm/netdroid/pom.xml --no-transfer-progress package
env:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ jobs:

- name: Pre compile
run: dotnet build --no-incremental --configuration Release /p:Platform="Any CPU" /p:NoWarn="0108%3B1030%3B0618" src\net\Netdroid\Netdroid.csproj

env:
GITHUB_SIMPLIFIED_GENERATION: true

- name: Set up Apache Maven Central
uses: actions/setup-java@v4
with: # running setup-java again overwrites the settings.xml
Expand All @@ -43,10 +45,6 @@ jobs:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Install local file to be used within Javadoc plugin of generated POM
run: mvn install:install-file -DgroupId=JCOBridge -DartifactId=JCOBridge -Dversion=2.5.13 -Dpackaging=jar -Dfile=../../../bin/net8.0/JCOBridge.jar -f ./src/jvm/netdroid/pom.xml
shell: bash

- name: Create Jars
run: mvn --file ./src/jvm/netdroid/pom.xml --no-transfer-progress package
env:
Expand Down
31 changes: 30 additions & 1 deletion src/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"OriginJavadocJARVersionAndUrls": [
{
"Version": 17,
"Version": 11,
"Url": "https://developer.android.com/reference/"
}
],
Expand All @@ -31,6 +31,35 @@
"javax.swing.Action",
"javax.management.NotificationFilter"
],
"ClassesToAvoidJavaListener": [
"android.bluetooth.BluetoothAdapter",
"android.content.AbstractThreadedSyncAdapter",
"android.hardware.TriggerEventListener",
"android.net.wifi.aware.IdentityChangedListener",
"android.nfc.NfcAdapter",
"android.os.storage.OnObbStateChangeListener",
"android.print.PrintDocumentAdapter",
"android.speech.tts.UtteranceProgressListener",
"android.telephony.OnOpportunisticSubscriptionsChangedListener",
"android.telephony.OnSubscriptionsChangedListener",
"android.telephony.ims.RcsUceAdapter",
"android.telephony.mbms.DownloadProgressListener",
"android.telephony.mbms.DownloadStatusListener",
"android.text.method.DateKeyListener",
"android.text.method.DateTimeKeyListener",
"android.text.method.DialerKeyListener",
"android.text.method.DigitsKeyListener",
"android.text.method.MetaKeyKeyListener",
"android.text.method.QwertyKeyListener",
"android.text.method.TimeKeyListener",
"android.widget.ResourceCursorAdapter",
"android.widget.ResourceCursorTreeAdapter",
"android.widget.SimpleCursorAdapter",
"android.widget.SimpleCursorTreeAdapter",
"android.widget.SimpleExpandableListAdapter",
"android.view.OrientationEventListener",
"android.view.accessibility.CaptioningChangeListener"
],
"ClassesToAvoid": [
"android.R",
"android.widget.ArrayAdapter",
Expand Down
27 changes: 0 additions & 27 deletions src/container/DockerfileKNet.linux

This file was deleted.

27 changes: 0 additions & 27 deletions src/container/DockerfileKNetConnect.linux

This file was deleted.

50 changes: 2 additions & 48 deletions src/jvm/netdroid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
<netdroidVersion>1.0.0.0</netdroidVersion>
<jcobridgeVersion>2.5.13</jcobridgeVersion>
<jcobridgepath>../../../bin/net8.0/JCOBridge.jar</jcobridgepath>
<androidJarPath>${env.ANDROID_HOME}/platforms/android-34-ext8/android.jar</androidJarPath>
</properties>
<distributionManagement>
<snapshotRepository>
Expand Down Expand Up @@ -134,7 +135,7 @@
<configuration>
<compilerArgs>
<arg>-cp</arg>
<arg>${originalClassPath}${path.separator}${basedir}/${jcobridgepath}</arg>
<arg>${originalClassPath}${path.separator}${basedir}/${jcobridgepath}${path.separator}${androidJarPath}</arg>
</compilerArgs>
</configuration>
</plugin>
Expand All @@ -143,53 +144,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
<configuration>
<excludes>
<exclude>**/target/</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/*.zip</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<links>
<link>https://www.jcobridge.com/api-java</link>
</links>
<quiet>true</quiet>
<source>8</source>
<additionalDependencies>
<additionalDependency>
<groupId>JCOBridge</groupId>
<artifactId>JCOBridge</artifactId>
<version>${jcobridgeVersion}</version>
</additionalDependency>
</additionalDependencies>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand Down

This file was deleted.

Loading

0 comments on commit a51b2f5

Please sign in to comment.