diff --git a/NOTICE b/NOTICE index c29f55dca3..4c9c58edb5 100644 --- a/NOTICE +++ b/NOTICE @@ -26,45 +26,13 @@ This project has dependencies to: Aether Transport Wagon under Eclipse Public License, Version 1.0 Aether Utilities under Eclipse Public License, Version 1.0 Android APK Zip Library under The Apache Software License, Version 2.0 - Android AppCompat Library v7 under The Apache Software License, Version 2.0 - Android Arch-Common under The Apache Software License, Version 2.0 - Android Arch-Runtime under The Apache Software License, Version 2.0 Android Builder library under The Apache Software License, Version 2.0 Android Builder Model library under The Apache Software License, Version 2.0 Android Builder Test API library under The Apache Software License, Version 2.0 - Android ConstraintLayout under The Apache Software License, Version 2.0 - Android ConstraintLayout Solver under The Apache Software License, Version 2.0 Android Gradle API under The Apache Software License, Version 2.0 Android Jetifier Core under The Apache Software License, Version 2.0 Android Jetifier Processor under The Apache Software License, Version 2.0 - Android Lifecycle Extensions under The Apache Software License, Version 2.0 - Android Lifecycle LiveData under The Apache Software License, Version 2.0 - Android Lifecycle LiveData Core under The Apache Software License, Version 2.0 - Android Lifecycle Process under The Apache Software License, Version 2.0 - Android Lifecycle Runtime under The Apache Software License, Version 2.0 - Android Lifecycle Service under The Apache Software License, Version 2.0 - Android Lifecycle ViewModel under The Apache Software License, Version 2.0 - Android Lifecycle-Common under The Apache Software License, Version 2.0 - Android Support AnimatedVectorDrawable under The Apache Software License, Version 2.0 Android Support Library Annotations under The Apache Software License, Version 2.0 - Android Support Library Async Layout Inflater under The Apache Software License, Version 2.0 - Android Support Library collections under The Apache Software License, Version 2.0 - Android Support Library compat under The Apache Software License, Version 2.0 - Android Support Library Coordinator Layout under The Apache Software License, Version 2.0 - Android Support Library core UI under The Apache Software License, Version 2.0 - Android Support Library core utils under The Apache Software License, Version 2.0 - Android Support Library Cursor Adapter under The Apache Software License, Version 2.0 - Android Support Library Custom View under The Apache Software License, Version 2.0 - Android Support Library Document File under The Apache Software License, Version 2.0 - Android Support Library Drawer Layout under The Apache Software License, Version 2.0 - Android Support Library fragment under The Apache Software License, Version 2.0 - Android Support Library Interpolators under The Apache Software License, Version 2.0 - Android Support Library loader under The Apache Software License, Version 2.0 - Android Support Library Local Broadcast Manager under The Apache Software License, Version 2.0 - Android Support Library Print under The Apache Software License, Version 2.0 - Android Support Library Sliding Pane Layout under The Apache Software License, Version 2.0 - Android Support Library View Pager under The Apache Software License, Version 2.0 - Android Support VectorDrawable under The Apache Software License, Version 2.0 Android Tools Analytics Crash Library under The Apache Software License, Version 2.0 Android Tools Analytics Protobufs under The Apache Software License, Version 2.0 Android Tools Analytics Shared Library under The Apache Software License, Version 2.0 @@ -235,8 +203,11 @@ This project has dependencies to: io.joynr.examples.radio-jee:radio-jee-provider under The Apache Software License, Version 2.0 io.joynr.examples:android under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-binder under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world-consumer under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-consumer-binder under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world-provider under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-provider-binder under The Apache Software License, Version 2.0 io.joynr.examples:custom-headers under The Apache Software License, Version 2.0 io.joynr.examples:custom-headers-api under The Apache Software License, Version 2.0 io.joynr.examples:custom-headers-jee-consumer under The Apache Software License, Version 2.0 @@ -513,7 +484,6 @@ This project has dependencies to: Text under Eclipse Public License - v 2.0 Transaction 1.1 API under lgpl TXW2 Runtime under CDDL+GPL License - VersionedParcelable and friends under The Apache Software License, Version 2.0 Xalan Java under The Apache Software License, Version 2.0 Xalan Java Serializer under The Apache Software License, Version 2.0 Xbase Runtime Library under Eclipse Public License, Version 1.0 diff --git a/android/joynr-android-binder-runtime/pom.xml b/android/joynr-android-binder-runtime/pom.xml index 38bcefaf50..b3d67b7357 100644 --- a/android/joynr-android-binder-runtime/pom.xml +++ b/android/joynr-android-binder-runtime/pom.xml @@ -50,25 +50,25 @@ - - - org.codehaus.mojo - license-maven-plugin - - false - true - apache_v2 - - ./src/ - + + org.codehaus.mojo + license-maven-plugin + + false + true + apache_v2 + + ./src/ + main/java/javax/transaction/xa/XAException.java main/java/javax/transaction/xa/XAResource.java main/java/javax/transaction/xa/Xid.java - - + + @@ -174,8 +174,8 @@ - + diff --git a/android/joynr-android-binder-runtime/pom.xml b/android/joynr-android-binder-runtime/pom.xml new file mode 100644 index 0000000000..83f9f0fbeb --- /dev/null +++ b/android/joynr-android-binder-runtime/pom.xml @@ -0,0 +1,315 @@ + + + 4.0.0 + io.joynr.android + joynr-android-binder-runtime + jar + ${project.groupId}:${project.artifactId} + + + io.joynr + android + 1.11.0-SNAPSHOT + ../pom.xml + + + + 1.8 + 3.8.1 + 5.4.1 + gradlew + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.plugin.compiler} + + true + true + + + + + + exec-maven-plugin + org.codehaus.mojo + + + + gradle-clean + clean + + exec + + + ${basedir}/${exec.gradle} + + clean + --info + + + + + + + gradle-build + compile + + exec + + + ${basedir}/${exec.gradle} + + build + + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + ${version.plugin.antrun} + + + ant-contrib + ant-contrib + 20020829 + + + + + copy-jar + package + + run + + + + + + + + + + + change-packaging-to-aar + package + + run + + + + + + + + + + + + + + + + change-packaging-backto-jar + install + + run + + + + + + + + + + + + + + + + + + + + + + + change-packaging-backto-aar-indeploy + deploy + + run + + + + + + + + + + + + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.0.0 + + + attach-artifacts + package + + attach-artifact + + + + + target/joynr-android-binder-runtime-release.aar + aar + + + + + + + + + + + + + + com.google.inject + guice + 3.0 + compile + no_aop + + + com.google.inject.extensions + guice-multibindings + 3.0 + compile + + + * + guice + + + + + com.google.inject.extensions + guice-assistedinject + 3.0 + compile + + + * + guice + + + + + io.joynr.java.core + libjoynr + ${project.version} + compile + + + * + guice + + + + + io.joynr.java.core + clustercontroller + ${project.version} + compile + + + * + guice + + + + + io.joynr.java.common + guice-integration + ${project.version} + compile + + + * + guice + + + + + io.joynr.java.messaging.mqtt + joynr-mqtt-client + ${project.version} + compile + + + * + guice + + + + + io.joynr.android + slf4j-android-bindings + ${project.version} + compile + + + com.android.support + support-annotations + 28.0.0 + compile + + + + + diff --git a/examples/NOTICE b/examples/NOTICE index 85d808f396..6fa50d9a57 100644 --- a/examples/NOTICE +++ b/examples/NOTICE @@ -16,39 +16,7 @@ specific language governing permissions and limitations under the License. This project has dependencies to: - Android AppCompat Library v7 under The Apache Software License, Version 2.0 - Android Arch-Common under The Apache Software License, Version 2.0 - Android Arch-Runtime under The Apache Software License, Version 2.0 - Android ConstraintLayout under The Apache Software License, Version 2.0 - Android ConstraintLayout Solver under The Apache Software License, Version 2.0 - Android Lifecycle Extensions under The Apache Software License, Version 2.0 - Android Lifecycle LiveData under The Apache Software License, Version 2.0 - Android Lifecycle LiveData Core under The Apache Software License, Version 2.0 - Android Lifecycle Process under The Apache Software License, Version 2.0 - Android Lifecycle Runtime under The Apache Software License, Version 2.0 - Android Lifecycle Service under The Apache Software License, Version 2.0 - Android Lifecycle ViewModel under The Apache Software License, Version 2.0 - Android Lifecycle-Common under The Apache Software License, Version 2.0 - Android Support AnimatedVectorDrawable under The Apache Software License, Version 2.0 Android Support Library Annotations under The Apache Software License, Version 2.0 - Android Support Library Async Layout Inflater under The Apache Software License, Version 2.0 - Android Support Library collections under The Apache Software License, Version 2.0 - Android Support Library compat under The Apache Software License, Version 2.0 - Android Support Library Coordinator Layout under The Apache Software License, Version 2.0 - Android Support Library core UI under The Apache Software License, Version 2.0 - Android Support Library core utils under The Apache Software License, Version 2.0 - Android Support Library Cursor Adapter under The Apache Software License, Version 2.0 - Android Support Library Custom View under The Apache Software License, Version 2.0 - Android Support Library Document File under The Apache Software License, Version 2.0 - Android Support Library Drawer Layout under The Apache Software License, Version 2.0 - Android Support Library fragment under The Apache Software License, Version 2.0 - Android Support Library Interpolators under The Apache Software License, Version 2.0 - Android Support Library loader under The Apache Software License, Version 2.0 - Android Support Library Local Broadcast Manager under The Apache Software License, Version 2.0 - Android Support Library Print under The Apache Software License, Version 2.0 - Android Support Library Sliding Pane Layout under The Apache Software License, Version 2.0 - Android Support Library View Pager under The Apache Software License, Version 2.0 - Android Support VectorDrawable under The Apache Software License, Version 2.0 AOP alliance under Public Domain Apache Commons CLI under Apache License, Version 2.0 Apache Groovy under The Apache Software License, Version 2.0 @@ -67,6 +35,7 @@ This project has dependencies to: Google Guice - Extensions - AssistedInject under The Apache Software License, Version 2.0 Google Guice - Extensions - MultiBindings under The Apache Software License, Version 2.0 Hamcrest Core under New BSD License + io.joynr.android:joynr-android-binder-runtime under The Apache Software License, Version 2.0 io.joynr.android:libjoynr-android-websocket-runtime under The Apache Software License, Version 2.0 io.joynr.android:slf4j-android-bindings under The Apache Software License, Version 2.0 io.joynr.examples.radio-jee:radio-jee-api under The Apache Software License, Version 2.0 @@ -74,8 +43,11 @@ This project has dependencies to: io.joynr.examples.radio-jee:radio-jee-provider under The Apache Software License, Version 2.0 io.joynr.examples:android under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-binder under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world-consumer under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-consumer-binder under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world-provider under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-provider-binder under The Apache Software License, Version 2.0 io.joynr.examples:custom-headers under The Apache Software License, Version 2.0 io.joynr.examples:custom-headers-api under The Apache Software License, Version 2.0 io.joynr.examples:custom-headers-jee-consumer under The Apache Software License, Version 2.0 @@ -151,5 +123,4 @@ This project has dependencies to: SLF4J LOG4J-12 Binding under MIT License SpotBugs Annotations under GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 stateless-async-backend-services under The Apache Software License, Version 2.0 - VersionedParcelable and friends under The Apache Software License, Version 2.0 diff --git a/examples/android/NOTICE b/examples/android/NOTICE index ec7caececc..061f2dde30 100644 --- a/examples/android/NOTICE +++ b/examples/android/NOTICE @@ -16,61 +16,43 @@ specific language governing permissions and limitations under the License. This project has dependencies to: - Android AppCompat Library v7 under The Apache Software License, Version 2.0 - Android Arch-Common under The Apache Software License, Version 2.0 - Android Arch-Runtime under The Apache Software License, Version 2.0 - Android ConstraintLayout under The Apache Software License, Version 2.0 - Android ConstraintLayout Solver under The Apache Software License, Version 2.0 - Android Lifecycle Extensions under The Apache Software License, Version 2.0 - Android Lifecycle LiveData under The Apache Software License, Version 2.0 - Android Lifecycle LiveData Core under The Apache Software License, Version 2.0 - Android Lifecycle Process under The Apache Software License, Version 2.0 - Android Lifecycle Runtime under The Apache Software License, Version 2.0 - Android Lifecycle Service under The Apache Software License, Version 2.0 - Android Lifecycle ViewModel under The Apache Software License, Version 2.0 - Android Lifecycle-Common under The Apache Software License, Version 2.0 - Android Support AnimatedVectorDrawable under The Apache Software License, Version 2.0 Android Support Library Annotations under The Apache Software License, Version 2.0 - Android Support Library Async Layout Inflater under The Apache Software License, Version 2.0 - Android Support Library collections under The Apache Software License, Version 2.0 - Android Support Library compat under The Apache Software License, Version 2.0 - Android Support Library Coordinator Layout under The Apache Software License, Version 2.0 - Android Support Library core UI under The Apache Software License, Version 2.0 - Android Support Library core utils under The Apache Software License, Version 2.0 - Android Support Library Cursor Adapter under The Apache Software License, Version 2.0 - Android Support Library Custom View under The Apache Software License, Version 2.0 - Android Support Library Document File under The Apache Software License, Version 2.0 - Android Support Library Drawer Layout under The Apache Software License, Version 2.0 - Android Support Library fragment under The Apache Software License, Version 2.0 - Android Support Library Interpolators under The Apache Software License, Version 2.0 - Android Support Library loader under The Apache Software License, Version 2.0 - Android Support Library Local Broadcast Manager under The Apache Software License, Version 2.0 - Android Support Library Print under The Apache Software License, Version 2.0 - Android Support Library Sliding Pane Layout under The Apache Software License, Version 2.0 - Android Support Library View Pager under The Apache Software License, Version 2.0 - Android Support VectorDrawable under The Apache Software License, Version 2.0 AOP alliance under Public Domain + Apache HttpClient under Apache License, Version 2.0 + Apache HttpCore under Apache License, Version 2.0 + Commons Codec under The Apache Software License, Version 2.0 Commons Lang under The Apache Software License, Version 2.0 + Commons Logging under The Apache Software License, Version 2.0 + ehcache under The Apache Software License, Version 2.0 FindBugs-jsr305 under The Apache Software License, Version 2.0 FlatBuffers Java API under Apache License V2.0 Google Guice - Core Library under The Apache Software License, Version 2.0 Google Guice - Extensions - AssistedInject under The Apache Software License, Version 2.0 Google Guice - Extensions - MultiBindings under The Apache Software License, Version 2.0 Hamcrest Core under New BSD License + io.joynr.android:joynr-android-binder-runtime under The Apache Software License, Version 2.0 io.joynr.android:libjoynr-android-websocket-runtime under The Apache Software License, Version 2.0 io.joynr.android:slf4j-android-bindings under The Apache Software License, Version 2.0 io.joynr.examples:android under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-binder under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world-consumer under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-consumer-binder under The Apache Software License, Version 2.0 io.joynr.examples:android-hello-world-provider under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-provider-binder under The Apache Software License, Version 2.0 + io.joynr.java.common:access-control-common under The Apache Software License, Version 2.0 io.joynr.java.common:discovery-common under The Apache Software License, Version 2.0 io.joynr.java.common:guice-integration under The Apache Software License, Version 2.0 + io.joynr.java.common:infrastructure-common under The Apache Software License, Version 2.0 io.joynr.java.common:status-metrics under The Apache Software License, Version 2.0 + io.joynr.java.core:clustercontroller under The Apache Software License, Version 2.0 io.joynr.java.core:libjoynr under The Apache Software License, Version 2.0 + io.joynr.java.messaging.mqtt:joynr-mqtt-client under The Apache Software License, Version 2.0 io.joynr.java.messaging.websocket:joynr-websocket-client under The Apache Software License, Version 2.0 io.joynr.java.messaging.websocket:joynr-websocket-common under The Apache Software License, Version 2.0 io.joynr.java.messaging:messaging-common under The Apache Software License, Version 2.0 io.joynr.java:javaapi under The Apache Software License, Version 2.0 + io.joynr.mqtt:mqtt-client under Eclipse Public License - Version 1.0 io.joynr.smrf.java:smrf under The Apache Software License, Version 2.0 io.joynr.smrf.java:smrf-api under The Apache Software License, Version 2.0 Jackson-annotations under The Apache Software License, Version 2.0 @@ -86,5 +68,4 @@ This project has dependencies to: libjoynr-websocket-runtime under The Apache Software License, Version 2.0 SLF4J API Module under MIT License SpotBugs Annotations under GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 - VersionedParcelable and friends under The Apache Software License, Version 2.0 diff --git a/examples/android/android-hello-world-binder/NOTICE b/examples/android/android-hello-world-binder/NOTICE new file mode 100644 index 0000000000..59fd21e37b --- /dev/null +++ b/examples/android/android-hello-world-binder/NOTICE @@ -0,0 +1,58 @@ +This project includes software developed by +BMW Car IT GmbH (http://www.bmw-carit.de) +and BMW Forschung & Technik GmbH + +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. + +This project has dependencies to: + Android Support Library Annotations under The Apache Software License, Version 2.0 + AOP alliance under Public Domain + Apache HttpClient under Apache License, Version 2.0 + Apache HttpCore under Apache License, Version 2.0 + Commons Codec under The Apache Software License, Version 2.0 + Commons Lang under The Apache Software License, Version 2.0 + Commons Logging under The Apache Software License, Version 2.0 + ehcache under The Apache Software License, Version 2.0 + FindBugs-jsr305 under The Apache Software License, Version 2.0 + FlatBuffers Java API under Apache License V2.0 + Google Guice - Core Library under The Apache Software License, Version 2.0 + Google Guice - Extensions - AssistedInject under The Apache Software License, Version 2.0 + Google Guice - Extensions - MultiBindings under The Apache Software License, Version 2.0 + Hamcrest Core under New BSD License + io.joynr.android:joynr-android-binder-runtime under The Apache Software License, Version 2.0 + io.joynr.android:slf4j-android-bindings under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-binder under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-consumer-binder under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-provider-binder under The Apache Software License, Version 2.0 + io.joynr.java.common:access-control-common under The Apache Software License, Version 2.0 + io.joynr.java.common:discovery-common under The Apache Software License, Version 2.0 + io.joynr.java.common:guice-integration under The Apache Software License, Version 2.0 + io.joynr.java.common:infrastructure-common under The Apache Software License, Version 2.0 + io.joynr.java.common:status-metrics under The Apache Software License, Version 2.0 + io.joynr.java.core:clustercontroller under The Apache Software License, Version 2.0 + io.joynr.java.core:libjoynr under The Apache Software License, Version 2.0 + io.joynr.java.messaging.mqtt:joynr-mqtt-client under The Apache Software License, Version 2.0 + io.joynr.java.messaging:messaging-common under The Apache Software License, Version 2.0 + io.joynr.java:javaapi under The Apache Software License, Version 2.0 + io.joynr.mqtt:mqtt-client under Eclipse Public License - Version 1.0 + io.joynr.smrf.java:smrf under The Apache Software License, Version 2.0 + io.joynr.smrf.java:smrf-api under The Apache Software License, Version 2.0 + Jackson-annotations under The Apache Software License, Version 2.0 + Jackson-core under The Apache Software License, Version 2.0 + jackson-databind under The Apache Software License, Version 2.0 + javax.inject under The Apache Software License, Version 2.0 + JUnit under Eclipse Public License 1.0 + SLF4J API Module under MIT License + SpotBugs Annotations under GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 + diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/NOTICE b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/NOTICE new file mode 100644 index 0000000000..d2a040f42b --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/NOTICE @@ -0,0 +1,56 @@ +This project includes software developed by +BMW Car IT GmbH (http://www.bmw-carit.de) +and BMW Forschung & Technik GmbH + +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. + +This project has dependencies to: + Android Support Library Annotations under The Apache Software License, Version 2.0 + AOP alliance under Public Domain + Apache HttpClient under Apache License, Version 2.0 + Apache HttpCore under Apache License, Version 2.0 + Commons Codec under The Apache Software License, Version 2.0 + Commons Lang under The Apache Software License, Version 2.0 + Commons Logging under The Apache Software License, Version 2.0 + ehcache under The Apache Software License, Version 2.0 + FindBugs-jsr305 under The Apache Software License, Version 2.0 + FlatBuffers Java API under Apache License V2.0 + Google Guice - Core Library under The Apache Software License, Version 2.0 + Google Guice - Extensions - AssistedInject under The Apache Software License, Version 2.0 + Google Guice - Extensions - MultiBindings under The Apache Software License, Version 2.0 + Hamcrest Core under New BSD License + io.joynr.android:joynr-android-binder-runtime under The Apache Software License, Version 2.0 + io.joynr.android:slf4j-android-bindings under The Apache Software License, Version 2.0 + io.joynr.examples:android-hello-world-consumer-binder under The Apache Software License, Version 2.0 + io.joynr.java.common:access-control-common under The Apache Software License, Version 2.0 + io.joynr.java.common:discovery-common under The Apache Software License, Version 2.0 + io.joynr.java.common:guice-integration under The Apache Software License, Version 2.0 + io.joynr.java.common:infrastructure-common under The Apache Software License, Version 2.0 + io.joynr.java.common:status-metrics under The Apache Software License, Version 2.0 + io.joynr.java.core:clustercontroller under The Apache Software License, Version 2.0 + io.joynr.java.core:libjoynr under The Apache Software License, Version 2.0 + io.joynr.java.messaging.mqtt:joynr-mqtt-client under The Apache Software License, Version 2.0 + io.joynr.java.messaging:messaging-common under The Apache Software License, Version 2.0 + io.joynr.java:javaapi under The Apache Software License, Version 2.0 + io.joynr.mqtt:mqtt-client under Eclipse Public License - Version 1.0 + io.joynr.smrf.java:smrf under The Apache Software License, Version 2.0 + io.joynr.smrf.java:smrf-api under The Apache Software License, Version 2.0 + Jackson-annotations under The Apache Software License, Version 2.0 + Jackson-core under The Apache Software License, Version 2.0 + jackson-databind under The Apache Software License, Version 2.0 + javax.inject under The Apache Software License, Version 2.0 + JUnit under Eclipse Public License 1.0 + SLF4J API Module under MIT License + SpotBugs Annotations under GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 + diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/NOTICE-ANDROID b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/NOTICE-ANDROID new file mode 100644 index 0000000000..7e36331ea3 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/NOTICE-ANDROID @@ -0,0 +1,71 @@ +This project has dependencies to: + androidx.activity activity under The Apache Software License, Version 2.0 + androidx.annotation annotation under The Apache Software License, Version 2.0 + androidx.appcompat appcompat under The Apache Software License, Version 2.0 + androidx.appcompat appcompat-resources under The Apache Software License, Version 2.0 + androidx.arch.core core-common under The Apache Software License, Version 2.0 + androidx.arch.core core-runtime under The Apache Software License, Version 2.0 + androidx.collection collection under The Apache Software License, Version 2.0 + androidx.constraintlayout constraintlayout under The Apache Software License, Version 2.0 + androidx.constraintlayout constraintlayout-solver under The Apache Software License, Version 2.0 + androidx.core core under The Apache Software License, Version 2.0 + androidx.core core-ktx under The Apache Software License, Version 2.0 + androidx.cursoradapter cursoradapter under The Apache Software License, Version 2.0 + androidx.customview customview under The Apache Software License, Version 2.0 + androidx.drawerlayout drawerlayout under The Apache Software License, Version 2.0 + androidx.fragment fragment under The Apache Software License, Version 2.0 + androidx.interpolator interpolator under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-common under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-extensions under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-livedata under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-livedata-core under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-process under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-runtime under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-service under The Apache Software License, Version 2.0 + androidx.lifecycle lifecycle-viewmodel under The Apache Software License, Version 2.0 + androidx.loader loader under The Apache Software License, Version 2.0 + androidx.savedstate savedstate under The Apache Software License, Version 2.0 + androidx.vectordrawable vectordrawable under The Apache Software License, Version 2.0 + androidx.vectordrawable vectordrawable-animated under The Apache Software License, Version 2.0 + androidx.versionedparcelable versionedparcelable under The Apache Software License, Version 2.0 + androidx.viewpager viewpager under The Apache Software License, Version 2.0 + aopalliance aopalliance under Public Domain + ASM under BSD + Jackson-annotations under The Apache Software License, Version 2.0 + Jackson-core under The Apache Software License, Version 2.0 + jackson-databind under The Apache Software License, Version 2.0 + spotbugs-annotations under GNU LESSER GENERAL PUBLIC LICENSE, Version 2.1 + FindBugs-jsr305 under The Apache Software License, Version 2.0 + FlatBuffers Java API under Apache License V2.0 + guice under The Apache Software License, Version 2.0 + guice-assistedinject under The Apache Software License, Version 2.0 + guice-multibindings under The Apache Software License, Version 2.0 + Commons Codec under The Apache Software License, Version 2.0 + Commons Lang under The Apache Software License, Version 2.0 + Commons Logging under The Apache Software License, Version 2.0 + io.joynr.android joynr-android-binder-runtime under The Apache Software License, Version 2.0 + io.joynr.android slf4j-android-bindings + io.joynr.java javaapi under The Apache Software License, Version 2.0 + io.joynr.java.common access-control-common under The Apache Software License, Version 2.0 + io.joynr.java.common discovery-common under The Apache Software License, Version 2.0 + io.joynr.java.common guice-integration under The Apache Software License, Version 2.0 + io.joynr.java.common infrastructure-common under The Apache Software License, Version 2.0 + io.joynr.java.common status-metrics under The Apache Software License, Version 2.0 + io.joynr.java.core clustercontroller under The Apache Software License, Version 2.0 + io.joynr.java.core libjoynr under The Apache Software License, Version 2.0 + io.joynr.java.messaging messaging-common under The Apache Software License, Version 2.0 + io.joynr.java.messaging.mqtt joynr-mqtt-client under The Apache Software License, Version 2.0 + io.joynr.mqtt mqtt-client under Eclipse Public License - Version 1.0 + io.joynr.smrf.java smrf under The Apache Software License, Version 2.0 + io.joynr.smrf.java smrf-api under The Apache Software License, Version 2.0 + javax.inject javax.inject under The Apache Software License, Version 2.0 + ehcache under The Apache Software License, Version 2.0 + HttpComponents Apache HttpClient under Apache License, Version 2.0 + HttpComponents Apache HttpCore under Apache License, Version 2.0 + org.jetbrains annotations under The Apache Software License, Version 2.0 + kotlin-android-extensions-runtime under The Apache License, Version 2.0 + kotlin-stdlib under The Apache License, Version 2.0 + kotlin-stdlib-common under The Apache License, Version 2.0 + kotlin-stdlib-jdk7 under The Apache License, Version 2.0 + slf4j-api under MIT License + org.sonatype.sisu.inject cglib under The Apache Software License, Version 2.0 diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/build.gradle b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/build.gradle new file mode 100644 index 0000000000..9fcce5f8a9 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/build.gradle @@ -0,0 +1,139 @@ +apply plugin: 'com.android.application' + +apply plugin: 'kotlin-android' + +apply plugin: 'kotlin-android-extensions' + +apply plugin: 'io.joynr.tools.generator.joynr-generator-gradle-plugin' + +android { + compileSdkVersion 28 + buildToolsVersion "29.0.0" + defaultConfig { + applicationId "io.joynr.androidhelloworldbinderconsumer" + minSdkVersion 28 + targetSdkVersion 28 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + packagingOptions { + exclude 'META-INF/DEPENDENCIES' + } + compileOptions { + sourceCompatibility = 1.8 + targetCompatibility = 1.8 + } + testOptions { + unitTests { + includeAndroidResources = true + } + } +} + +dependencies { + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.core:core-ktx:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + testImplementation 'junit:junit:4.12' + androidTestImplementation 'androidx.test.ext:junit:1.1.1' + testImplementation 'androidx.test.ext:junit:1.1.1' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + testImplementation 'androidx.test.espresso:espresso-intents:3.2.0' + + testImplementation 'org.robolectric:robolectric:4.3.1' + + testImplementation 'androidx.test:core:1.2.0' + testImplementation 'androidx.test:rules:1.2.0' + testImplementation 'androidx.test:runner:1.2.0' + + implementation 'androidx.lifecycle:lifecycle-extensions:2.1.0' + + implementation "io.joynr.android:joynr-android-binder-runtime:${joynr_version}" +} + +apply plugin: 'com.github.jk1.dependency-license-report' +import com.github.jk1.license.render.* +import com.github.jk1.license.LicenseReportExtension +import com.github.jk1.license.ManifestData +import com.github.jk1.license.ModuleData +import com.github.jk1.license.PomData +import com.github.jk1.license.ProjectData + +class JoynrReportRenderer implements ReportRenderer { + private Project project + private LicenseReportExtension config + private File output + private String fileName + + JoynrReportRenderer(String filename = 'NOTICES-ANDROID') { + this.fileName = filename + } + + @Input + private String getFileNameCache() { return this.fileName } + + void render(ProjectData data) { + project = data.project + config = project.licenseReport + output = new File(config.outputDir, fileName) + output.text = "This project has dependencies to:\n" + printDependencies(data) + } + + private void printDependencies(ProjectData data) { + data.allDependencies.unique().sort().each { + printDependency(it) + } + } + + private String printDependency(ModuleData data) { + if (data.poms.isEmpty() && data.manifests.isEmpty()) { + output << "No license information found\n" + return + } + if (!data.manifests.isEmpty()) { + ManifestData manifest = data.manifests.first() + if (manifest.name && !manifest.name.isEmpty() && !(manifest.name.equalsIgnoreCase("%bundle.name"))) { + output << " $manifest.name" + } else { + output << " $data.group $data.name" + } + } else { + output << " $data.group $data.name" + } + + if (!data.poms.isEmpty()) { + PomData pomData = data.poms.first() + if (pomData.licenses) { + output << " under " + pomData.licenses.first().name + } + } + // special edge cases + if (data.manifests && data.manifests.first().name && + data.manifests.first().name.equalsIgnoreCase("asm")) { + output << " under BSD" + } + output << "\n" + } +} + +licenseReport { + configurations = ['debugRuntimeClasspath'] + renderers = [new JoynrReportRenderer("NOTICE-ANDROID")] +} +task copyNoticeToRoot(type: Copy) { + from file("$buildDir/reports/dependency-license/NOTICE-ANDROID") + into file("../") +} +task generateNotices(type: GradleBuild) { + tasks = ['clean', 'generateLicenseReport', 'copyNoticeToRoot'] +} \ No newline at end of file diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/proguard-rules.pro b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/proguard-rules.pro new file mode 100644 index 0000000000..f1b424510d --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/proguard-rules.pro @@ -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 diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/AndroidManifest.xml b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000..129e12976f --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/AndroidManifest.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/fidl/helloworld.fidl b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/fidl/helloworld.fidl new file mode 100644 index 0000000000..890d34c251 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/fidl/helloworld.fidl @@ -0,0 +1,23 @@ +// This example fidl file should be equal to the provider fidl file. + +package helloworld + +<** + @description: Contains the user-defined datatypes used in the interface. +**> +typeCollection { + const String hello = "Hello World!" +} + +<** + @description: This is an example interface to demonstrate features + and usage of the joynr communication framework. +**> +interface HelloWorld { + + <** + @description: Attribute that creates a getter and a setter in + the generated class. It represents the string that was last sent + **> + attribute String hello +} \ No newline at end of file diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/ConsumerViewModel.kt b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/ConsumerViewModel.kt new file mode 100644 index 0000000000..4968950cf0 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/ConsumerViewModel.kt @@ -0,0 +1,45 @@ +package io.joynr.androidhelloworldbinderconsumer + +import android.app.Application +import androidx.lifecycle.MutableLiveData +import androidx.lifecycle.ViewModel +import io.joynr.arbitration.DiscoveryQos +import io.joynr.arbitration.DiscoveryScope +import io.joynr.exceptions.JoynrRuntimeException +import io.joynr.messaging.MessagingQos +import io.joynr.proxy.Callback +import joynr.helloworld.HelloWorldProxy +import org.slf4j.LoggerFactory + +class ConsumerViewModel : ViewModel() { + + private val logger = LoggerFactory.getLogger(ConsumerViewModel::class.java) + + private lateinit var helloWorldProxy: HelloWorldProxy + val providedStr = MutableLiveData() + + fun registerProxy(application: Application) { + val discoveryQos = DiscoveryQos() + discoveryQos.discoveryScope = DiscoveryScope.LOCAL_ONLY + + helloWorldProxy = (application as HelloWorldApplication).joynrRuntime + .getProxyBuilder("domain", HelloWorldProxy::class.java) + .setMessagingQos(MessagingQos()).setDiscoveryQos(discoveryQos).build() + } + + fun getString() { + val callback = object : Callback() { + override fun onSuccess(text: String?) { + logger.debug("Received Message: $text") + providedStr.postValue(text) + } + + override fun onFailure(e: JoynrRuntimeException) { + logger.debug("Failed Message Failed to receive message with the error: $e") + } + } + + helloWorldProxy.getHello(callback) + } + +} \ No newline at end of file diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/HelloWorldApplication.kt b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/HelloWorldApplication.kt new file mode 100644 index 0000000000..9d3ccf55b8 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/HelloWorldApplication.kt @@ -0,0 +1,31 @@ +package io.joynr.androidhelloworldbinderconsumer + +import android.app.Application +import io.joynr.android.AndroidBinderRuntime +import io.joynr.runtime.JoynrRuntime +import org.slf4j.LoggerFactory +import org.slf4j.impl.AndroidLogger +import org.slf4j.impl.StaticLoggerBinder + +class HelloWorldApplication : Application() { + + // Must be included for logs to work + private val logger = LoggerFactory.getLogger(HelloWorldApplication::class.java) + + lateinit var joynrRuntime: JoynrRuntime private set + + override fun onCreate() { + super.onCreate() + + // This is where you can define the debug level + StaticLoggerBinder.setLogLevel(AndroidLogger.LogLevel.DEBUG) + + logger.debug("Starting binder runtime...") + + // Initializing Android Binder Runtime with Application Context + // This needs to be in the Application onCreate in order for the JoynrRuntime to be + // ready once the application is started. + joynrRuntime = AndroidBinderRuntime.init(this) + } + +} \ No newline at end of file diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/MainActivity.kt b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/MainActivity.kt new file mode 100644 index 0000000000..d2dc87d058 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/java/io/joynr/androidhelloworldbinderconsumer/MainActivity.kt @@ -0,0 +1,32 @@ +package io.joynr.androidhelloworldbinderconsumer + +import android.os.Bundle +import androidx.appcompat.app.AppCompatActivity +import androidx.lifecycle.Observer +import androidx.lifecycle.ViewModelProviders +import kotlinx.android.synthetic.main.activity_main.* + +class MainActivity : AppCompatActivity() { + + lateinit var consumerViewModel: ConsumerViewModel + + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + consumerViewModel = + ViewModelProviders.of(this)[ConsumerViewModel::class.java] + consumerViewModel.registerProxy(application) + + + talk_button.setOnClickListener { + consumerViewModel.getString() + } + + consumerViewModel.providedStr.observe(this, Observer { str -> + text_box.text = str + }) + + } + +} \ No newline at end of file diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000000..1f6bb29060 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/drawable/ic_launcher_background.xml b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000000..0d025f9bf6 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/layout/activity_main.xml b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000000..32a73ec056 --- /dev/null +++ b/examples/android/android-hello-world-binder/android-hello-world-binder-consumer/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,29 @@ + + + + + +