Skip to content

Commit c2e3833

Browse files
committed
Fix JitPack not working due to methodcount project
1 parent 1113485 commit c2e3833

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

gen_methodscount_badge.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
./gradlew :library:assembleRelease > /dev/null
55

66
# assemble fat-aar and copy dependencies
7-
./gradlew :methodscount:assembleRelease > /dev/null
7+
USE_METHOD_COUNT=1 ./gradlew :methodscount:assembleRelease > /dev/null
88

99
BUILD_TOOOLS_VERSION=$(ls $ANDROID_HOME/build-tools/ | sort -n -r | head -n 1)
1010
BUILD_TOOOLS_DIR="$ANDROID_HOME/build-tools/$BUILD_TOOOLS_VERSION"

settings.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
include ':library', ':example', ':methodscount'
1+
include ':library', ':example'
2+
3+
if (System.env.USE_METHOD_COUNT == "1") {
4+
include ':methodscount'
5+
}

0 commit comments

Comments
 (0)