-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding gradle support and CI for android sample project #143
Merged
Merged
Changes from all commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
3cc0227
adding ci for android
ce15d9b
removed extra files added to the HelloWorld sample project
6cd3d62
added configuration for android
d552583
modified android solution path
0ac4411
modified start up project for android solution
d10e76e
modified start build configurations in sharpmake for android solution
530b674
removed noblob build configurations in sharpmake for android solution
4fcdd04
added back noblob build configurations in sharpmake for android solution
644b4af
modified build configurations in sharpmake for android solution
867bc66
modified build configurations in sharpmake for android solutionagain
5fa9afe
try to print environment variable for ANT
5a18225
make import build.xml optional for ANT
d2801f1
(fixed typo)make import build.xml optional for ANT
6c60ea6
added build.xml for ANT
dee2e02
deleted optional for build.xml for ANT
2b1a0f9
absolute path for build.xml for ANT
8d506f7
try to print android sdk dir
817cdaf
try to print all the folders under android sdk dir
bd20a67
try to print all the folders under android sdk tools dir
ffd114c
delete the added build.xml for ant
1a04e00
Merge branch 'ubisoft:dev' into android-sample
dzchen940516 1816552
Merge branch 'ubisoft:dev' into android-sample
dzchen940516 ad4337e
adding gradle support for android sample project
b04173a
fixing helloandroid project in sharpmake compilation error
1831cc8
android sample project ci changes
b85f498
update gradle version from 2.8 to 6.5
9983f5d
try to print exepackaging folder
f1f2352
try to ls files in exepackaging
997f297
testing ls on CI
482a6f9
continue ls exepackaging folder
0276f4e
testing ci
a4d4254
check ndk version
66fd6d3
testing hello android ci
de39d84
testing hello android ci
f47eb59
testing hello android ci
fa41e4d
testing hello android ci
a6581bb
testing hello android ci
565d2ef
testing android sample ci
94001f9
testing android sample ci
9a47923
testing hello android ci
0404f3d
testind hello android ci
abc9423
testing android sample ci
31ef893
testin android sample ci
37aa5a8
testing android sample ci
5af0618
testing android sample ci
246cee8
testing hello android ci
e055c3f
testing hello android ci
9e0f113
testing hello android ci
27ad57b
testing hello android ci
8195aa8
Merge branch 'ubisoft:dev' into android-sample
dzchen940516 048663c
small fixes base on the merge request comments
3a630b9
testing .yml variables
8171622
Added some comments to clarify things, and testing defining variables…
0c51314
testing android sample project ci
b9bf1b5
testing env variables on the ci
efb9d35
Testing: move "remove android build tools version" env variable defin…
72af93d
Testing: moved the definition of the android builld tool version und…
c3014fa
Testing: moved android build tool versions' definition location in ac…
c29e055
Added support for IsPublishable C# project config item (#144)
Trithek f36d27e
Fix xmldoc comment placed on the wrong line
belkiss a5ff10a
Rename internal method to better match what it does
belkiss 6f80122
Add NMakeForcedIncludes support to MakeFile/FastBuild projects for be…
751fb49
Add CLanguageStandard/CppLanguageStandard to Linux MakeFile vcxproj f…
115d28a
Add system includes from ILinuxSystemPathProvider to NMakeIncludeSear…
645f3ed
Fix concurrency issue in ReportGenerated that could lead to a "key al…
belkiss 7ca150a
Bump version number to 0.17.3
belkiss b5c1f2b
Make the version unofficial.
belkiss b607ef0
Prevent the same generation report from being merged from different t…
belkiss 209b66d
[Bff] Move the build only dependencies to the target alias instead of…
belkiss 3e9f721
Bump version number to 0.17.4
belkiss 09ccbd5
Make the version unofficial.
belkiss 48ab0cd
Revert "[Bff] Move the build only dependencies to the target alias in…
belkiss 5e810d2
[Bff] Fix unit-tests step when the target it depends on changes (DLLs…
belkiss d28015e
Bump version number to 0.17.5
belkiss 9604c6e
Make the version unofficial.
belkiss 355af3d
resolving merge conflicts from dev branch
ceadea5
resolving merge conflicts from dev
173afa2
Add support for WinSDK 11 (10.0.22000)
belkiss af75b98
feat(dotnet): add support for DotNetOSVersion on Configuration to twe…
2a2d4b6
Fix document format errors
802045b
resolving merge conflicts from dev branch
341503c
resolving merge conflicts from dev branch
c27e97e
Merge branch 'dev' into android-sample
dzchen940516 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,80 @@ | ||
apply plugin: 'com.android.$(ConfigurationType)' | ||
|
||
android { | ||
compileSdkVersion = $(AndroidAPILevelNumber) | ||
buildToolsVersion = "$(AndroidBuildToolsVersion)" | ||
|
||
defaultConfig.with { | ||
$(ApplicationId) | ||
minSdkVersion = 21 | ||
targetSdkVersion = 30 | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
flavorDimensions "version" | ||
productFlavors { | ||
create("arm8Debug_NoBlob_arm64_v8a") { | ||
ndk.abiFilters.add("arm64-v8a") | ||
} | ||
create("arm8Release_NoBlob_arm64_v8a") { | ||
ndk.abiFilters.add("arm64-v8a") | ||
} | ||
create("x86-64Debug_NoBlob_x86_64") { | ||
ndk.abiFilters.add("x86_64") | ||
} | ||
create("x86-64Release_NoBlob_x86_64") { | ||
ndk.abiFilters.add("x86_64") | ||
} | ||
create("all") | ||
} | ||
|
||
applicationVariants.all { variant -> | ||
variant.outputs.each { output -> | ||
def folder = "${variant.name}" | ||
|
||
if(folder.length() > 26) { | ||
def arm8NewName = "app-" + folder.substring(0,4) + "-" + variant.buildType.name + ".apk" | ||
def x86NewName = "app-" + folder.substring(0,6) + "-" + variant.buildType.name + ".apk" | ||
if(folder.substring(0, 9) == "arm8Debug") | ||
{ | ||
output.outputFileName = "../../ARM8/Debug_NoBlob_arm64_v8a/" + arm8NewName | ||
} | ||
else if (folder.substring(0, 11) == "arm8Release") | ||
{ | ||
output.outputFileName = "../../ARM8/Release_NoBlob_arm64_v8a/" + arm8NewName | ||
} | ||
else if (folder.substring(0, 11) == "x86-64Debug") | ||
{ | ||
output.outputFileName = "../../x86-64/Debug_NoBlob_x86_64/" + x86NewName | ||
} | ||
else if (folder.substring(0, 13) == "x86-64Release") | ||
{ | ||
output.outputFileName = "../../x86-64/Release_NoBlob_x86_64/" + x86NewName | ||
} | ||
println output.outputFileName | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
flatDir { | ||
dirs 'libs' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
$(AarDependencies) | ||
} |
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,24 @@ | ||
apply plugin: 'base' | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:gradle:4.2.0' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
} |
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,24 @@ | ||
apply plugin: 'base' | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath 'com.android.tools.build:$(GradlePlugin)' | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
} |
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
samples/HelloAndroid/gradle/root/gradle/wrapper/gradle-wrapper.properties
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 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip |
5 changes: 5 additions & 0 deletions
5
samples/HelloAndroid/gradle/root/gradle/wrapper/gradle-wrapper.properties.template
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 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-$(GradleVersion)-all.zip |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put the env var here!