Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
liveldy authored Jun 23, 2024
1 parent 9ed2552 commit 89e5363
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions header/extractor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef EXTRACTOR_H
#define EXTRACTOR_H

#include <iostream>
#include <filesystem>
#include <vector>
#include <fstream>
#include <cstdlib>
#include <string>

class ApkExtractor {
public:
static void extractResourcesFromApk(const std::string& apkPath);

private:
static bool isImageFile(const std::string& extension);
static bool isVideoFile(const std::string& extension);
static bool isAudioFile(const std::string& extension);
static void createDirectories(const std::filesystem::path& baseOutputDir, const std::filesystem::path& relativePath);
static void copyFile(const std::filesystem::path& filePath, const std::filesystem::path& outputDir, const std::filesystem::path& relativePath);
static void extractMediaFiles(const std::filesystem::path& extractedDir, const std::filesystem::path& outputDir);
};

void extractor(int argc,char**argv);
#endif // EXTRACTOR_H

0 comments on commit 89e5363

Please sign in to comment.