-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from AlanCheen/feature/1.6.1
Feature/1.6.1
- Loading branch information
Showing
35 changed files
with
690 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package me.yifeiyuan.flapdev; | ||
|
||
import me.yifeiyuan.flap.Flap; | ||
import me.yifeiyuan.flap.apt.proxies.SimpleImageComponentProxy; | ||
import me.yifeiyuan.flap.apt.proxies.SimpleTextComponentProxy; | ||
|
||
/** | ||
* Created by 程序亦非猿 on 2020/9/8. | ||
* | ||
* todo proxy 类的名字是 me/xxx/xxxProxy | ||
* | ||
* L1 | ||
* LINENUMBER 16 L1 | ||
* ALOAD 2 | ||
* NEW me/yifeiyuan/flap/apt/proxies/SimpleTextComponentProxy | ||
* DUP | ||
* INVOKESPECIAL me/yifeiyuan/flap/apt/proxies/SimpleTextComponentProxy.<init> ()V | ||
* INVOKEVIRTUAL me/yifeiyuan/flap/Flap.register (Lme/yifeiyuan/flap/internal/ComponentProxy;)Lme/yifeiyuan/flap/ComponentRegistry; | ||
* POP | ||
* L2 | ||
* LINENUMBER 18 L2 | ||
* ALOAD 2 | ||
* NEW me/yifeiyuan/flap/apt/proxies/SimpleImageComponentProxy | ||
* DUP | ||
* INVOKESPECIAL me/yifeiyuan/flap/apt/proxies/SimpleImageComponentProxy.<init> ()V | ||
* INVOKEVIRTUAL me/yifeiyuan/flap/Flap.register (Lme/yifeiyuan/flap/internal/ComponentProxy;)Lme/yifeiyuan/flap/ComponentRegistry; | ||
* POP | ||
* | ||
*/ | ||
class AsmTest { | ||
|
||
private void foo(Flap flap){ | ||
flap.register(new SimpleTextComponentProxy()); | ||
flap.register(new SimpleImageComponentProxy()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apply plugin: 'java-library' | ||
apply plugin: 'maven-publish' | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
implementation gradleApi() | ||
implementation localGroovy() | ||
implementation 'com.android.tools.build:gradle:3.2.1' //transform api 需要 | ||
|
||
implementation 'org.ow2.asm:asm-all:5.2' | ||
} | ||
|
||
sourceCompatibility = "1.8" | ||
targetCompatibility = "1.8" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
publishing { | ||
|
||
publications { | ||
|
||
mavenJava(MavenPublication) { | ||
artifactId = 'plugin' | ||
groupId = 'me.yifeiyuan.flap' | ||
from components.java | ||
version = '1.0.0.1' | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
url = "$rootProject.projectDir/repos" | ||
} | ||
} | ||
} | ||
|
||
apply plugin: 'com.novoda.bintray-release' | ||
|
||
publish { | ||
userOrg = 'alancheen' | ||
groupId = 'me.yifeiyuan.flap' | ||
artifactId = 'flap-plugin' | ||
publishVersion = '1.0.0' | ||
desc = 'flap plugin' | ||
website = 'https://github.com/AlanCheen/Flap' | ||
} |
Oops, something went wrong.