Get Started
As I mentioned in this entry (What is SDK development), I developed disclose source SDK.
Project Structure
How to create project structure?
- Create Android Project with General Application (Select Empty Activity)
- Create new module from Application Project View
- Set dependency for Application (Application uses library project codes)
That’s all. There are 2 modules named “app” and “sdk”. app is test environment.
We call it Sandbox. Sandbox is to test sdk(library) module. We can simulate actual use for Android
1 Create new project (General Application with Empty Activity)

2. Create new module from Application Project View



4. Set dependency (build.gradle)
dependencies { implementation project(":sdk-core") }
“:sdk-core” … sdk-core is library module name.
To test actual aar
One of big problem to finalize library is proguard. If you provide this library as aar, we should do proguard.
Unfortunately, project dependencies ignore proguard, so if you want to test after proguard, you should import different project and test it.
コメント