This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @echo off | |
| echo. | |
| echo ----------------------------------------- | |
| echo *** APK Installer for Windows 11 *** | |
| echo ----------------------------------------- | |
| echo. | |
| echo APK File Path is %1 | |
| echo. | |
| adb connect 127.0.0.1:<PORT> | |
| echo. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public static class Extensions | |
| { | |
| public static IMappingExpression<TSource, TDestination> ReverseAttributes<TSource, TDestination>(this IMappingExpression<TSource, TDestination> config) | |
| { | |
| foreach (var property in typeof(TDestination).GetProperties().Where(prop => prop.IsDefined(typeof(MapToAttribute), false))) | |
| { | |
| var matchingName = ((MapToAttribute)property.GetCustomAttributes(typeof(MapToAttribute), false) | |
| .FirstOrDefault())?.MatchingName; | |
| config.ForMember(property.Name, val => val.MapFrom(matchingName)); | |
| } |