Skip to content

Instantly share code, notes, and snippets.

View Ads log
This file has been truncated, but you can view the full file.
asset path = ApkAssets{path=/preas/oversea/overlay/GoogleModuleMetadataConfigOverlay.apk}
2020-11-18 15:34:24.784 4777-4777/? I/ResourcesImplEx: The apk asset path = ApkAssets{path=/preas/oversea/overlay/GooglePermissionControllerConfigOverlay.apk}
2020-11-18 15:34:24.784 4777-4777/? I/ResourcesImplEx: The apk asset path = ApkAssets{path=/hw_product/overlay/frameworkResOverlay.apk}
2020-11-18 15:34:24.784 4777-5019/? V/AudioManager: getStreamVolume streamType: 3 volume: 0
2020-11-18 15:34:24.784 4777-4777/? I/ResourcesImplEx: The apk asset path = ApkAssets{path=/data/app/com.tonnguyen.livelotte-WF9L59c2rGXLhk86k4em7w==/base.apk}
2020-11-18 15:34:24.784 4777-4777/? I/ResourcesImplEx: The apk asset path = ApkAssets{path=/data/app/com.google.android.webview-GYNLgSzOpFW8AtHZ11nTDw==/base.apk}
2020-11-18 15:34:24.784 4777-4777/? I/ResourcesImplEx: The apk asset path = ApkAssets{path=/data/app/com.google.android.webview-GYNLgSzOpFW8AtHZ11nTDw==/split_config.en.apk}
2020-11-18 15:34:24.784 4777-4777/? I/ResourcesIm
View AdChoice
NativeAdChoicesView adChoiceView = (NativeAdChoicesView) nativeViewHierarchyManager.resolveView(adChoiceViewTag);
adChoiceView.removeAllViews();
View providerView = nativeAdView.mNativeAd.getProviderView(nativeAdView.getContext());
if (providerView != null) {
if (providerView.getParent() != null && providerView.getParent() instanceof ViewGroup) {
((ViewGroup) providerView.getParent()).removeView(providerView);
}
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
adChoiceView.addView(providerView, layoutParams);
}
View Litium.Accelerator.FieldTypes.csproj
<Target Name="ProductionBuild" BeforeTargets="BeforeBuild" Condition=" '$(Configuration)' == 'Release'">
<Exec Command="yarn install" />
<Exec Command="yarn run prod" />
</Target>
@tonnguyen
tonnguyen / SamplePanel.ascx
Created Feb 4, 2020
WebForms panel in L7.4
View SamplePanel.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SamplePanel.ascx.cs" Inherits="Litium.Accelerator.Mvc.Site.ECommerce.Panels.SamplePanel" %>
<h1 runat="server" id="Heading"></h1>
View GenerateVariants.cs
for (int i = 0; i < 200; i++)
{
var variant = new AddVariantToBaseProductModel()
{
Id = "RandomVariant" + i,
SystemId = Guid.NewGuid(),
BaseProductSystemId = baseProduct.SystemId,
Name = "RandomVariant" + i,
}.MapTo<Variant>();
_variantService.Create(variant);
View GenerateTextOptionsItems.cs
var field = _fieldDefinitionService.Get(areaType, id).MakeWritableClone();
var options = field.Option as TextOption;
var ran = new Random();
options.Items = Enumerable.Repeat(0, 20000).Select(i =>
new TextOption.Item()
{
Name = new Dictionary<string, string> { { "*", ran.Next().ToString() } },
Value = ran.Next().ToString()
})
.ToList();
View BSoD-related-content.js
@tonnguyen
tonnguyen / cache.middleware.js
Created Feb 13, 2018
A cache middleware for redux
View cache.middleware.js
const cache = store => next => action => {
// handle FETCH action only
if (action.type !== 'FETCH') {
return next(action);
}
// check if cache is available
const data = window['__data'];
if (!data) {
// forward the call to live middleware