Giter Club home page Giter Club logo

swiftprojectaddrubisshcode's Introduction

SwiftProjectAddRubisshCode

本项目针对Swift项目,在项目中添加垃圾代码,添加垃圾类,修改项目指定文件夹下的图片加前缀并且在Conten.json中的filename添加前缀。

  • CreateRandomSwiftFunc

​ 本文件生成垃圾方法

  • CreateRubbishClass

    本文件创建垃圾类。

    修改createFileDir方法中的projectDir(主目录)、subDirs(子目录集合),随机向目录中的子目录创建垃圾类,创建完成后需要收到把文件添加到工程中。

  • AddRubishCodeInFile

    本文件是像现有类(BaseViewController 自定义的类)中添加垃圾代码。

    修改addRubbish方法中的projectDir(主目录)、subDirs(子目录集合),keyStr是关键字符串,即在搜索主目录下的子目录中集成自BaseViewController的类,并且包含关键字符串,在关键字符串前添加垃圾代码。

  • ConvertImageInDir

    本文件是修改Xcode中的图片资源脚本。

    projectDir是图片文件夹位置,ignoreDirs忽略的子文件夹名称。

    prefix是添加的前缀,quality是图片压缩比例

swiftprojectaddrubisshcode's People

Contributors

yulong270 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.