-
Notifications
You must be signed in to change notification settings - Fork 19
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 #4 from TheMelody/dev_1.0.1
更新README以及workflow配置
- Loading branch information
Showing
7 changed files
with
167 additions
and
51 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
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,32 @@ | ||
class LibraryInfo { | ||
String groupId | ||
String gd_artifactId | ||
String tx_artifactId | ||
|
||
String lib_versionName | ||
} | ||
|
||
def readLibraryProps() { | ||
def versionProps = new Properties() | ||
def file = new File("$projectDir/gradle_map.properties") | ||
versionProps.load(file.newInputStream()) | ||
|
||
return versionProps | ||
} | ||
|
||
def getLibraryInfo() { | ||
def props = readLibraryProps() | ||
LibraryInfo info = new LibraryInfo() | ||
|
||
info.gd_artifactId = props.get('GD_ARTIFACT_ID') as String | ||
info.tx_artifactId = props.get('TX_ARTIFACT_ID') as String | ||
info.groupId = props.get('GROUP_ID') as String | ||
|
||
info.lib_versionName = props.get('LIB_VERSION_NAME') as String | ||
|
||
return info | ||
} | ||
|
||
ext { | ||
getLibraryInfo = this.&getLibraryInfo | ||
} |
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,5 @@ | ||
GROUP_ID = io.github.TheMelody | ||
GD_ARTIFACT_ID = gd_compose | ||
TX_ARTIFACT_ID = tencent_compose | ||
|
||
LIB_VERSION_NAME = 1.0.1 |