
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
com.azerion.bluestack
Advanced tools
BlueStack SDK has been designed to give developers options for showing Ads from different ad networks.
BlueStack unity plugin provides functionalities to integrate native(Android and iOS) BlueStack SDKs into unity project. Using this plugin Game developer can display ads on their game from BlueStack and other third-party ad networks. This SDK supports four types of Ads:
:::info
Android API level can be set in Project Settings > Player > Android > Other Settings > Other Settings.
:::
Add scoped registries in Edit -> Project Settings -> Package Manager -> Add Scoped Registry
Add npm registry for BlueStack
Name: Azerion
URL: http://registry.npmjs.com
Scope(s): com.azerion.bluestack
BlueStack Unity package has a indirect dependency of EDM4U which need to be resolved using UPM.
Name: package.openupm.com
URL: https://package.openupm.com
Scope(s): com.google.external-dependency-manager
Update Packages/manifest.json
{
"dependencies": {
"com.azerion.bluestack": "3.0.0"
}
}
Before loading ads, you need to initialize the BlueStack SDK by calling BlueStackAds.Initialize()
This needs to be done only once, ideally at app launch.
Here's an example:
...
using Azerion.BlueStack.API;
public class BlueStackAdController : MonoBehaviour
{
public void Start()
{
Settings settings = new Settings(isDebugModeEnabled: true);
// Initialize the BlueStack SDK.
BlueStackAds.Initialize(appId, settings, HandleSDKInitCompleteAction);
}
// HandleSDKInitCompleteAction callback is called once SDK Initialization is complete.
private void HandleSDKInitCompleteAction(SDKInitializationStatus sdkInitializationStatus)
{
bool isSuccess = sdkInitializationStatus.IsSuccess;
string description = sdkInitializationStatus.Description;
if (isSuccess)
{
Debug.Log("BlueStack SDK initialization success: " + description);
}
else
{
Debug.Log("BlueStack SDK initialization failed: " + description);
}
}
}
Here's an example of how to display a banner ad:
using Azerion.BlueStack.API;
using Azerion.BlueStack.API.Banner;
public class BlueStackAdsController : MonoBehaviour
{
...
private BannerAd _bannerAd;
...
// Create a new banner ad
private void CreateBanner()
{
_bannerAd = new BannerAd(placementId, adPosition);
}
private void DisplayBanner()
{
// On banner Load, display the banner ad
_bannerAd.OnBannerDidLoad += (sender, args) =>
{
_bannerAd?.Show();
};
// Load banner ad
_bannerAd?.Load(AdSize.Banner);
}
}
FAQs
BlueStack SDK has been designed to give developers options for showing Ads from different ad networks.
The npm package com.azerion.bluestack receives a total of 14 weekly downloads. As such, com.azerion.bluestack popularity was classified as not popular.
We found that com.azerion.bluestack demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.