diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000000..af34eb1d8f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,58 @@ +#!/usr/bin/env groovy + +pipeline { + agent { + label 'android-worker' + } + + environment { + PIPELINE_JOBS_NAME = 'edx-app-android-pipeline' + ANDROID_HOME = '/opt/android-sdk-linux' + APK_PATH = 'OpenEdXMobile/build/outputs/apk/prod/debuggable' + CONFIG_REPO_NAME = 'edx-mobile-config' + } + + stages { + stage('checkingout configs') { + steps { + sh 'mkdir -p edx-mobile-config' + dir('edx-mobile-config'){ + sshagent(credentials: ['jenkins-worker', 'jenkins-worker-pem'], ignoreMissing: true) { + checkout changelog: false, poll: false, scm: [ + $class: 'GitSCM', + branches: + // Using specific branch to avoid Firebase config limitations + //[[name: '*/master']], + [[name: 'naveed/automation_configs']], + doGenerateSubmoduleConfigurations: false, + extensions: + [[$class: 'CloneOption', honorRefspec: true, + noTags: true, shallow: true]], + submoduleCfg: [], + userRemoteConfigs: + [[credentialsId: 'jenkins-worker', + refspec: '+refs/heads/*:refs/remotes/origin/*', + url: "git@github.com:edx/${CONFIG_REPO_NAME}.git"]] + ] + } + } + } + } + stage('compiling edx-app-android') { + steps { + writeFile file: './OpenEdXMobile/edx.properties', text: 'edx.dir = \'../edx-mobile-config/prod/\'' + sh 'bash ./resources/compile_android.sh' + } + } + stage('valdiate compiled app') { + steps { + sh 'bash ./resources/validate_builds.sh' + } + } + stage('archive the build') { + steps { + archiveArtifacts artifacts: "$APK_PATH/*.apk", onlyIfSuccessful: true + } + } + } +} diff --git a/OpenEdXMobile/AndroidManifest.xml b/OpenEdXMobile/AndroidManifest.xml index 80b17bd9ee..d4a170bbd2 100644 --- a/OpenEdXMobile/AndroidManifest.xml +++ b/OpenEdXMobile/AndroidManifest.xml @@ -150,11 +150,6 @@ android:label="@string/title_download" android:theme="@style/AppTheme.NoActionBar.TranslucentStatusBar" /> - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/OpenEdXMobile/res/layout/activity_discovery_launch.xml b/OpenEdXMobile/res/layout/activity_discovery_launch.xml index 1798a7126e..0e00619d20 100755 --- a/OpenEdXMobile/res/layout/activity_discovery_launch.xml +++ b/OpenEdXMobile/res/layout/activity_discovery_launch.xml @@ -26,7 +26,7 @@ android:layout_height="@dimen/logo_height" android:layout_marginTop="@dimen/logo_top_margin" android:contentDescription="@string/phonetic_app_name" - android:src="@drawable/launch_screen_logo" /> + android:src="@drawable/youngsphere_logo" /> + android:src="@drawable/youngsphere_logo" />