public void ClearApi() { LoadedApiInfos.Clear(); ApiSet.Clear(); ApiSet.Add(new JavaApi()); OnApiSetUpdated(); }
public void LoadApiFromFiles(string [] files) { if (Api.Packages.Any()) { ApiSet.Add(new JavaApi()); } foreach (var file in files) { var identifer = GetFileId(file); switch (Path.GetExtension(file.ToLowerInvariant())) { case ".apk": LoadApk(file, identifer); break; case ".dex": LoadDex(file, identifer); break; case ".aar": LoadAar(file, identifer); break; case ".jar": LoadJar(file, identifer); break; case ".dll": LoadDll(file, identifer); break; default: // load as XML LoadXml(file, identifer); break; } } OnApiSetUpdated(); }