
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
com.github.johann673:easyar
Advanced tools
Library to implements Augmented Reality in an Android Application.
EasyAR est une bibliothèque Android qui permet de faciliter l'intégration de composants en réalité augmentée dans une application. Actuellement il est possible de faire :
Un projet de test est disponible sur le dépot pour tester les fonctionnalités de base. Screenshots en cours...
Télécharger la bibliothèque au format aar sur le dépot maven et importée la dans Eclipse.
Ajouter ces lignes dans le fichier de configuration build.gradle
:
dependencies {
repositories {
mavenCentral()
}
compile 'com.github.johann673:easyar:1.0.0'
}
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.CAMERA" />
public class MainActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}
public class SampleFragment extends ARFragment {
///...
}
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment
android:id="@+id/arFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="fr.johann_web.ARSample.SampleFragment" />
</FrameLayout>
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"
android:adjustViewBounds="false">
</ImageView>
//Marqueurs un par un
addMarker(new ARMarker("marker1", 48.557856, 7.683909, R.layout.sample_overlay));
addMarker(new ARMarker("marker2", 48.487694, 7.719058, R.layout.sample_overlay));
//Ou directement avec une liste :
List<ARMarker> markers = new ArrayList<>();
markers.add(new ARMarker("marker3", 48.557856, 7.683909, R.layout.sample_overlay)):
markers.add(new ARMarker("marker4", 48.557856, 7.719058, R.layout.sample_overlay)):
addMarkers(markers);
L'objet ARMarker prend comme paramètres : Le nom du marqueur, la latitude, la longitude et le template associé. Il peut également prendre comme paramètre optionnel, un objet, qui permet de passer n'importe quelle données et de le récupérer lors du clic sur celui ci.
@Override
protected void onTapMarker(ARMarker marker) {
marker.getName(); //récupère le nom
marker.getLocation(); //récupère les coordonnées du marqueur
marker.getDistance(); //récupère la distance par rapport à notre position
marker.getData(); //récupère l'objet personnel si il a été ajouté
}
public class SampleFragment extends ARFragment implements ARView.OnChangeListener {
//...
}
Et ajouter le fragment en tant que listener dans le onCreateView
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle saved) {
View view = super.onCreateView(inflater, container, saved);
setOnChangeListener(this);
//...
}
[0.1.0] : Version initiale
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
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.
FAQs
Library to implements Augmented Reality in an Android Application.
We found that com.github.johann673:easyar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.