Skip to content
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

Add in the Japanese translations to the release branch. #457

Open
wants to merge 72 commits into
base: R1_10_1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
e410b46
Images showing the new "optical tube" or "pointer mode"
jaydeetay Dec 31, 2021
3be0649
Rneame the added image files.
jaydeetay Dec 31, 2021
d38f367
...whoops. These are the missing files.
jaydeetay Dec 31, 2021
6d7bc47
Updated Polish translation (#454)
Aga-C Jan 1, 2022
7b322a0
update Japanese translation (#456)
argrath Jan 2, 2022
89b8c26
Clean up a couple of classes with some lateinits. Would do more if i…
jaydeetay Jan 2, 2022
f12165d
Just reformat the Skyrenderer layout.
jaydeetay Jan 3, 2022
e381781
Half done attempt to modernize the activities.
jaydeetay Jan 3, 2022
2bce65e
Didn't intend to commit to master.
jaydeetay Jan 3, 2022
b19e123
Added the upcoming north american eclipse and removed a few events from
jaydeetay Feb 11, 2024
fbc51ad
Updated Turkish translation (#484)
srcemre Feb 11, 2024
a9ceb00
Addeclipsemap (#488)
jaydeetay Feb 11, 2024
d49620d
Edited the Turkish translations to reflect the new Eclipse entry.
jaydeetay Feb 11, 2024
b4f0314
Updated Polish translation (#489)
Aga-C Feb 17, 2024
7c88c49
Spanish updates (#492)
VegaDark Feb 28, 2024
731b200
1.10.2 rc1 (#496)
jaydeetay May 1, 2024
7a51e89
1.10.3 rc1 (#497)
jaydeetay May 3, 2024
8821f6b
Update android.yml
jaydeetay May 3, 2024
5bc1a54
Update android.yml
jaydeetay May 3, 2024
2e7c9ab
Update android.yml
jaydeetay May 3, 2024
8669841
Update android.yml
jaydeetay May 3, 2024
378b11e
Update android.yml
jaydeetay May 3, 2024
e97e9fe
Update android.yml
jaydeetay May 3, 2024
41f58e9
Update android.yml
jaydeetay May 3, 2024
b7115f5
Update android.yml
jaydeetay May 3, 2024
f8d455d
Attempt to fix some sync issues and an NPE that are showing up in the
jaydeetay May 5, 2024
c80c67a
Norwegian translation update (#502)
FTno Nov 6, 2024
99913c2
Norwegian translation update - arrays (#504)
FTno Nov 6, 2024
a4bb943
Norwegian translation update (#505)
FTno Nov 6, 2024
02c7879
Update android.yml
jaydeetay Nov 6, 2024
4161ed8
Update version number
jaydeetay Nov 6, 2024
213ac22
Replace http by https in the help text so that links work again. (#516)
jaydeetay Nov 30, 2024
8b7488b
Fixlocation (#517)
jaydeetay Nov 30, 2024
5867093
update version code prior to release
jaydeetay Nov 30, 2024
3292539
Update README.md
jaydeetay Nov 30, 2024
dadc41f
Update android.yml
jaydeetay Dec 1, 2024
d4f31fa
Upgrade just about everything, including rewriting the gradle files. …
jaydeetay Dec 4, 2024
7151c4e
Try disabling dimming as an experiment.
jaydeetay Dec 4, 2024
5c342c9
This time just disable the dimming, not the red mode.
jaydeetay Dec 4, 2024
92938bd
Adding menu options.
jaydeetay Dec 5, 2024
feabaf1
trytofixborkedui (#520)
jaydeetay Dec 10, 2024
a45b7c3
Update build.gradle
jaydeetay Dec 10, 2024
4e93bd1
Check this.
jaydeetay Dec 13, 2024
ac8cd4f
Working on getting options for the dimness level.
jaydeetay Dec 15, 2024
b2a176a
So much boilerplate to inject some activities.
jaydeetay Dec 23, 2024
748afc6
Made other activities dim too.
jaydeetay Dec 23, 2024
2798fce
Removed dead comments
jaydeetay Dec 23, 2024
f99dac9
Add options for dimming. (#519)
jaydeetay Dec 23, 2024
5616527
Merge remote-tracking branch 'origin/master'
jaydeetay Dec 23, 2024
a81999a
Merge branch 'redmodeblindness'
jaydeetay Dec 23, 2024
d588b89
Update build.gradle
jaydeetay Dec 23, 2024
126fb46
Merge branch 'master' into redmodeblindness (#521)
jaydeetay Dec 24, 2024
9e5797a
Update strings.xml (#523)
VasilisKos Dec 26, 2024
8171ea4
Update arrays.xml (#522)
VasilisKos Dec 26, 2024
da09f46
Plumb through preferences into the layers so that font size can be se…
jaydeetay Dec 26, 2024
1cb9438
Update build.gradle
jaydeetay Dec 26, 2024
9dfa294
Create troubleshooting.md
jaydeetay Dec 28, 2024
10cfbdf
Added a little documentation to LabelMaker.
Jan 1, 2025
a920130
Merge remote-tracking branch 'origin/master'
Jan 1, 2025
a75f7b9
Fixed rendering problem or long labels (#528)
Aulddays Jan 1, 2025
76f4343
Merge remote-tracking branch 'origin/master'
Jan 1, 2025
3eb6784
Add extra font sizes. (#526)
jaydeetay Jan 1, 2025
135259a
Bump the version number.
Jan 2, 2025
5d7e7c7
Update arrays.xml (#529)
VasilisKos Jan 5, 2025
dc2297b
Update strings.xml (#530)
VasilisKos Jan 5, 2025
f34d851
Make the location controller do slower work on a background thread. (…
jaydeetay Jan 5, 2025
ce2800d
Update build.gradle
jaydeetay Jan 5, 2025
6629541
Remembered to update the whats new text and bumped version again.
Jan 6, 2025
0259b63
Upgrade Gradle.
Jan 7, 2025
8720a10
remove trailing line
Jan 7, 2025
5c601c1
Fix the build I broke with a badly formatted file because I don't fol…
Jan 7, 2025
a33bf84
Locationbugfix (#531)
jaydeetay Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
container:
image: cirrusci/android-sdk:30
image: ghcr.io/cirruslabs/android-sdk:33
cpu: 8
memory: 24G
kvm: true

env:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
check_android_task:
# execution_lock: OneEmulatorAtATime
list_versions_script:
Expand Down Expand Up @@ -34,11 +35,10 @@ check_android_task:
build_artifacts:
path: "app/build/reports/**"

task:
name: Android Lint
lint_task:
lint_script: ./gradlew lintGmsDebug
# always:
# android-lint_artifacts:
# path: "**/reports/lint-results-gmsDebug.xml"
# type: text/xml
# format: android-lint
# format: android-lint
24 changes: 15 additions & 9 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
Expand All @@ -25,20 +26,25 @@ jobs:
uses: asadmansr/[email protected]
if: ${{ always() }} # IMPORTANT: run Android Test Report regardless
connected_test:
runs-on: macos-latest
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [ 29 ]
target: [ playstore ]
target: [ default ]
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm

- name: Setup Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: 11
distribution: 'adopt'
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '17'

- name: run tests
uses: reactivecircus/android-emulator-runner@v2
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Sky Map [![Build Status](https://travis-ci.org/sky-map-team/stardroid.svg?branch=master)](https://travis-ci.org/sky-map-team/stardroid)
[![Code Quality: Java](https://img.shields.io/lgtm/grade/java/g/sky-map-team/stardroid.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sky-map-team/stardroid/context:java)
[![Total Alerts](https://img.shields.io/lgtm/alerts/g/sky-map-team/stardroid.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sky-map-team/stardroid/alerts)

This is the source repository for Sky Map. You can find it in the [Google Play Store](https://play.google.com/store/apps/details?id=com.google.android.stardroid) and on [F-Droid](https://f-droid.org/en/packages/com.google.android.stardroid/).

Expand Down
133 changes: 85 additions & 48 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,61 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'kotlin-android-extensions'
id 'kotlin-kapt'
id 'com.android.application' version '8.7.3'
id 'org.jetbrains.kotlin.android' version '2.0.20'
id 'org.jetbrains.kotlin.kapt' version '2.0.20'
}


/**
* Locate (and possibly download) a JDK used to build your kotlin
* source code. This also acts as a default for sourceCompatibility,
* targetCompatibility and jvmTarget. Note that this does not affect which JDK
* is used to run the Gradle build itself, and does not need to take into
* account the JDK version required by Gradle plugins (such as the
* Android Gradle Plugin)
*/
kotlin {
jvmToolchain(17)
}

/**
* The android block is where you configure all your Android-specific
* build options.
*/

android {
compileSdkVersion 31

/**
* The app's namespace. Used primarily to access app resources.
*/

namespace 'com.google.android.stardroid'

/**
* compileSdk specifies the Android API level Gradle should use to
* compile your app. This means your app can use the API features included in
* this API level and lower.
*/

compileSdk 35

/**
* The defaultConfig block encapsulates default settings and entries for all
* build variants and can override some attributes in main/AndroidManifest.xml
* dynamically from the build system. You can configure product flavors to override
* these values for different versions of your app.
*/

defaultConfig {
applicationId "com.google.android.stardroid"
minSdkVersion 26
targetSdkVersion 31
versionCode 1541
versionName "1.10.1 - RC1"
// Uniquely identifies the package for publishing.
applicationId 'com.google.android.stardroid'
minSdk 26
targetSdk 34 // 35 breaks the UI
versionCode 1560
versionName "1.10.9"
buildConfigField 'String', 'GOOGLE_ANALYTICS_CODE', '""'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

signingConfigs {
release {
if (project.file('no-checkin.properties').exists()) {
Expand Down Expand Up @@ -52,49 +85,51 @@ android {
}
}

lintOptions {
// Lint complains because of missing translations.
// (Missing translations now removed)
abortOnError false
}

// This enables long timeouts required on slow environments, e.g. Travis
adbOptions {
timeOutInMs 10 * 60 * 1000 // 10 minutes
installOptions "-d", "-t"
}

testOptions {
animationsDisabled = true
}

flavorDimensions "default"
flavorDimensions = ["sourciness"]
productFlavors {
// includes gms Google services
gms {
resValue "string", "analytics_enabled", "true"
dimension "sourciness"
}

// uses only open source software
fdroid {
resValue "string", "analytics_enabled", "false"
dimension "sourciness"
}
}

lintOptions {
// TODO: fix the lint errors
abortOnError false
}
}

/**
* The dependencies block in the module-level build configuration file
* specifies dependencies required to build only the module itself.
* To learn more, go to Add build dependencies.
*/

dependencies {

implementation project(path: ':datamodel')

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

// Android support
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.preference:preference:1.1.1'
implementation "androidx.core:core-ktx:1.7.0"
def appcompat_version = "1.7.0"

implementation "androidx.appcompat:appcompat:$appcompat_version"
// For loading and tinting drawables on older versions of the platform
implementation "androidx.appcompat:appcompat-resources:$appcompat_version"
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation "androidx.core:core-ktx:1.15.0"

// Third-party
implementation 'com.google.guava:guava:30.1.1-jre'
def dagger_version = "2.40"
implementation 'com.google.guava:guava:33.3.1-jre'
def dagger_version = "2.48"
implementation "com.google.dagger:dagger:$dagger_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
// For annotations not in Android but needed by Dagger
Expand All @@ -104,25 +139,27 @@ dependencies {
implementation 'com.google.protobuf:protobuf-javalite:3.13.0'

// Flavor
gmsImplementation 'com.google.android.gms:play-services-analytics:18.0.0'
gmsImplementation 'com.google.android.gms:play-services-location:19.0.0'
gmsImplementation 'com.google.firebase:firebase-analytics:20.0.2'
gmsImplementation 'com.google.android.gms:play-services-analytics:18.1.1'
gmsImplementation 'com.google.android.gms:play-services-location:21.3.0'
gmsImplementation 'com.google.firebase:firebase-analytics:22.1.2'

// Testing
testImplementation 'junit:junit:4.13.1'
testImplementation 'org.mockito:mockito-core:1.10.19'
testImplementation 'org.robolectric:robolectric:4.4'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.mockito:mockito-core:5.14.2'
testImplementation 'org.robolectric:robolectric:4.14.1'
testImplementation 'org.easymock:easymock:2.5.2'
testImplementation 'com.google.truth:truth:1.0.1'
androidTestImplementation 'junit:junit:4.13.1'
androidTestImplementation 'junit:junit:4.13.2'
androidTestImplementation 'org.easymock:easymock:2.5.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test:runner:1.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test:runner:1.6.2'
androidTestImplementation 'androidx.test:rules:1.6.1'
// Optional -- Hamcrest library
androidTestImplementation 'org.hamcrest:hamcrest-library:1.3'
// Optional -- UI testing with Espresso
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
// Optional -- UI testing with UI Automator
// androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
}

android.buildFeatures.buildConfig true
3 changes: 2 additions & 1 deletion app/proguard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@

# Proto lite
# https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
-keep class * extends com.google.protobuf.GeneratedMessageLite { *; }
-dontwarn com.google.protobuf.java_com_google_android_gmscore_sdk_target_granule__proguard_group_gtm_N1281923064GeneratedExtensionRegistryLite$Loader
5 changes: 2 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.google.android.stardroid"
xmlns:android="http://schemas.android.com/apk/res/android"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="auto"
android:vmSafeMode="false">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.INTERNET"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,5 @@ interface ApplicationComponent {

// Who can we inject
fun inject(app: StardroidApplication)
fun inject(activity: EditSettingsActivity)
fun inject(activity: ImageDisplayActivity)
fun inject(activity: ImageGalleryActivity)
fun inject(provider: SearchTermsProvider)
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ object ApplicationConstants {
const val BUNDLE_Z_TARGET = "bundle_z_target"
const val BUNDLE_SEARCH_MODE = "bundle_search"
const val SOUND_EFFECTS = "sound_effects"
const val AUTO_DIMNESS = "auto_dimness"
const val FONT_SIZE = "font_size"

// Preference that keeps track of whether or not the user accepted the ToS for this version
const val READ_TOS_PREF_VERSION = "read_tos_version"
Expand Down
20 changes: 10 additions & 10 deletions app/src/main/java/com/google/android/stardroid/ApplicationModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class ApplicationModule(private val app: StardroidApplication) {

@Provides
@Singleton
fun provideSharedPreferences() = PreferenceManager.getDefaultSharedPreferences(app)
fun provideSharedPreferences(): SharedPreferences = PreferenceManager.getDefaultSharedPreferences(app)

@Provides
@Singleton
Expand Down Expand Up @@ -86,7 +86,7 @@ class ApplicationModule(private val app: StardroidApplication) {

@Provides
@Singleton
fun provideAccountManager(context: Context) = AccountManager.get(context)
fun provideAccountManager(context: Context): AccountManager = AccountManager.get(context)

@Provides
@Singleton
Expand All @@ -96,15 +96,15 @@ class ApplicationModule(private val app: StardroidApplication) {
): LayerManager {
Log.i(TAG, "Initializing LayerManager")
val layerManager = LayerManager(preferences)
layerManager.addLayer(StarsLayer(assetManager, resources))
layerManager.addLayer(MessierLayer(assetManager, resources))
layerManager.addLayer(ConstellationsLayer(assetManager, resources))
layerManager.addLayer(StarsLayer(assetManager, resources, preferences))
layerManager.addLayer(MessierLayer(assetManager, resources, preferences))
layerManager.addLayer(ConstellationsLayer(assetManager, resources, preferences))
layerManager.addLayer(SolarSystemLayer(model!!, resources, preferences))
layerManager.addLayer(MeteorShowerLayer(model, resources))
layerManager.addLayer(CometsLayer(model, resources))
layerManager.addLayer(GridLayer(resources, 24, 9))
layerManager.addLayer(HorizonLayer(model, resources))
layerManager.addLayer(EclipticLayer(resources))
layerManager.addLayer(MeteorShowerLayer(model, resources, preferences))
layerManager.addLayer(CometsLayer(model, resources, preferences))
layerManager.addLayer(GridLayer(resources, 24, 9, preferences))
layerManager.addLayer(HorizonLayer(model, resources, preferences))
layerManager.addLayer(EclipticLayer(resources, preferences))
layerManager.addLayer(SkyGradientLayer(model, resources))
// layerManager.addLayer(new IssLayer(resources, model));
layerManager.initialize()
Expand Down
Loading
Loading