File tree Expand file tree Collapse file tree
modules/deviceconnect-codegen/src/main/resources/deviceConnectAndroidPlugin/gradleFiles/3_x_x
samples/templates/deviceConnectAndroidPlugin/gradleFiles/3_x_x Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,9 @@ apply plugin: 'com.android.application'
55// gpr.key=PERSONAL_ACCESS_TOKEN
66def githubPropertiesFile = rootProject.file("github.properties")
77def githubProperties = new Properties()
8- githubProperties.load(new FileInputStream(githubPropertiesFile))
8+ if (githubPropertiesFile.exists()) {
9+ githubProperties.load(new FileInputStream(githubPropertiesFile))
10+ }
911
1012dependencies {
1113 implementation fileTree(include : ' *.jar' , dir: ' libs' )
@@ -23,7 +25,7 @@ android {
2325 versionCode 1
2426 versionName '1.0.0'
2527 }
26-
28+
2729 compileOptions {
2830 sourceCompatibility 1.8
2931 targetCompatibility 1.8
@@ -52,19 +54,19 @@ android {
5254 exclude ' META-INF/LICENSE'
5355 exclude ' META-INF/NOTICE'
5456 }
55-
57+
5658 tasks.withType(JavaCompile) {
5759 options.encoding = ' UTF-8'
5860 }
5961 repositories {
6062 maven {
6163 name = " DeviceConnect-Android"
62- url = uri(" https://maven.pkg.github.com/TakayukiHoshi1984 /DeviceConnect-Android" )
64+ url = uri(" https://maven.pkg.github.com/DeviceConnect /DeviceConnect-Android" )
6365
6466 credentials {
6567 username = System.getenv(" GPR_USER" ) ?: githubProperties[' gpr.usr' ]
6668 password = System.getenv(" GPR_API_KEY" ) ?: githubProperties[' gpr.key' ]
6769 }
6870 }
6971 }
70- }
72+ }
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ apply plugin: 'com.android.application'
55// gpr.key=PERSONAL_ACCESS_TOKEN
66def githubPropertiesFile = rootProject.file("github.properties")
77def githubProperties = new Properties()
8- githubProperties.load(new FileInputStream(githubPropertiesFile))
9-
8+ if (githubPropertiesFile.exists()) {
9+ githubProperties.load(new FileInputStream(githubPropertiesFile))
10+ }
1011dependencies {
1112 implementation fileTree(include : ' *.jar' , dir: ' libs' )
1213 implementation ' org.deviceconnect:dconnect-device-plugin-sdk:{{{deviceConnectPluginSdkVersion}}}'
You can’t perform that action at this time.
0 commit comments