Comments (6)
你可以参考sample中maven依赖的方式,将你的自定义算法作为maven依赖进去,这样代码就是一份。
如果想在原项目中集成源码,比较难,因为涉及到编译和运行两个环节,我没有找到gradle编译环节引用到app中的源码的方式。
from stringfog.
@MegatronKing buildSrc(即 Groovy 类型插件)应该是只能使用 java/ java-library 类型的 lib,而我的加密库是 android-library 类型,依赖之后无法使用里面的任何类。
如果将其转成 java/ java-library 类型,则 so 库会因为存放位置不对,编译时会出现错误 no in xxx java.library.path ,要想使用,只能将 so 存放在对应的环境位置,而其他人想使用的话也必须拷贝到对应的环境位置,这样操作起来太麻烦了;我应该怎么做?有什么好的思路吗?求指点~
from stringfog.
换句话说如何才能在 buildSrc module 中使用 so 库呢,困惑了 2 天,没有解决这个问题,期望得到回复!!!
from stringfog.
已解决,问题关闭
from stringfog.
@oneLZH 同样的疑问,请问是怎么解决的?
from stringfog.
@oneLZH 同样的疑问,请问是怎么解决的?
将 JNI 生成 So,buildSrc 一份,app 一份,需要注意的是 buildSrc 是以编译环境为主的,环境不一格式也不一样
from stringfog.
Related Issues (20)
- gradle8.0提示Namespace not specified
- 请求扩展提供对已经编译好的Dex或者jar 文件进行字符串加密。 HOT 1
- 领袖 我用的5.0版本的,Gradle8.0, AGP 7.4 , 构建的时候提示Missing file HOT 1
- com.github.megatronking.stringfog.plugin.kg.RandomKeyGenerator 为啥导入不了 HOT 1
- 这是什么原因
- 5.0是对android studio 版本有什么要求吗
- 部分字段无法加密 HOT 1
- debug包正常,release包static String的变量初始值丢失问题 HOT 4
- JDK11 ArrayIndexOutOfBoundsException HOT 3
- gradle8.0以下问题 HOT 2
- How to decrypt?
- java 17 compileSdk 34 报错 HOT 2
- AGP7.1.3,按照主页的文档配置好,sync后报错如下
- 注解的字符串不会被加密
- build.gradle.kts DSL 怎么接入 HOT 1
- 5.1.0不能同时对app module和lib module同时加密
- 空字符加密
- 4.0.1+Gradle7.2.2 无法生成加密后的APK
- (PermittedSubclasses requires ASM9) - java 17 compileSdk 34 kotlin 1.9.20 agp 8.2.0, gradle-8.5
- 能否添加一个package的黑名单的功能
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stringfog.