Coder Social home page Coder Social logo

androlualazyimport's Introduction

AndroLua+ 懒导入

license Gitee 发行版

Gitee 仓库 Github 仓库

介绍

懒导入,防止加载多余的模块/类

通过 metatable 和 import 函数实现懒加载

软件架构

  • lua/lazyimport.lua: 模块

安装教程

  1. 复制 lazyimport.lua你的工程/lua
  2. main.lua 内导入 import 模块: require "import"
  3. 导入 lazyimport 模块: import "lazyimport"

使用说明

import "lazyimport"
+ lazyimport "java.io.File"
File("/sdcard/myfile.txt")

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

androlualazyimport's People

Contributors

jesse205 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.