Skip to content

Instantly share code, notes, and snippets.

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
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);
}
<Target Name="ProductionBuild" BeforeTargets="BeforeBuild" Condition=" '$(Configuration)' == 'Release'">
<Exec Command="yarn install" />
<Exec Command="yarn run prod" />
</Target>
@tonnguyen
tonnguyen / SamplePanel.ascx
Created February 4, 2020 13:38
WebForms panel in L7.4
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SamplePanel.ascx.cs" Inherits="Litium.Accelerator.Mvc.Site.ECommerce.Panels.SamplePanel" %>
<h1 runat="server" id="Heading"></h1>
@tonnguyen
tonnguyen / GenerateVariants.cs
Created January 30, 2020 10:20
Generate variants
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);
@tonnguyen
tonnguyen / GenerateTextOptionsItems.cs
Created January 28, 2020 12:11
Generate TextOption items
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();
@tonnguyen
tonnguyen / cache.middleware.js
Created February 13, 2018 21:44
A cache middleware for redux
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