Skip to content

Commit

Permalink
Fix travis-ci with the latest changes (#37)
Browse files Browse the repository at this point in the history
* Update build-tools and platform version in travis.yml

* Use java11 in travis config file

* Export MainActivity to make it Android 12 friendly

* Ignore Instantiatable lint error
  • Loading branch information
PHELAT committed Feb 9, 2022
1 parent fbb4dcc commit eecbabd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 11 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
os: linux
language: android
dist: trusty
sudo: required
jdk: openjdk11

android:
components:
Expand All @@ -11,11 +11,18 @@ android:
- 'android-sdk-preview-license-52d11cd2'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
env:
global:
- TARGET_VERSION=30
- ANDROID_BUILD_TOOLS_VERSION=31.0.0
- ANDROID_HOME=~/android-sdk

before_install:
- touch $HOME/.android/repositories.cfg
- yes | sdkmanager "platforms;android-30"
- yes | sdkmanager "build-tools;30.0.3"
- wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip" -O commandlinetools.zip
- unzip commandlinetools.zip -d $ANDROID_HOME/
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${TARGET_VERSION}" --sdk_root=$ANDROID_HOME
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" --sdk_root=$ANDROID_HOME

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
Expand Down
5 changes: 3 additions & 2 deletions platform/mobile/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="false"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
tools:ignore="GoogleAppIndexingWarning, Instantiatable">

<activity
android:name=".MainActivity"
android:windowSoftInputMode="adjustPan">
android:windowSoftInputMode="adjustPan"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down

0 comments on commit eecbabd

Please sign in to comment.