Skip to content

Commit 6481871

Browse files
committed
Use CancelableCallback for camera
1 parent 0e2b99d commit 6481871

50 files changed

Lines changed: 5244 additions & 5194 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
1-
# Ensure shell scripts always use LF line endings
2-
*.sh text eol=lf
3-
4-
# Ensure Gradle wrapper script uses LF line endings
5-
gradlew text eol=lf
1+
# Ensure consistent line endings across platforms
2+
# Everything stored as LF in the repository (Android/Kotlin ecosystem standard)
3+
* text=auto eol=lf
4+
5+
# Source code files
6+
*.kt text eol=lf
7+
*.kts text eol=lf
8+
*.java text eol=lf
9+
10+
# Configuration and data files
11+
*.xml text eol=lf
12+
*.json text eol=lf
13+
*.yml text eol=lf
14+
*.yaml text eol=lf
15+
*.gradle text eol=lf
16+
*.properties text eol=lf
17+
*.pro text eol=lf
18+
19+
# Documentation
20+
*.md text eol=lf
21+
*.txt text eol=lf
22+
23+
# Shell scripts MUST use LF (will break on Unix if using CRLF)
24+
*.sh text eol=lf
25+
gradlew text eol=lf
26+
27+
# Binary files (do not modify)
28+
*.png binary
29+
*.jpg binary
30+
*.jpeg binary
31+
*.gif binary
32+
*.jar binary
33+
*.aar binary
34+
*.apk binary
35+
*.so binary
Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
name: Build Examples
2-
3-
on:
4-
workflow_call:
5-
6-
permissions:
7-
contents: read
8-
9-
jobs:
10-
build-examples:
11-
name: Build Example Apps
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
18-
- name: Set up JDK 17
19-
uses: actions/setup-java@v4
20-
with:
21-
distribution: temurin
22-
java-version: 17
23-
24-
- name: Cache Gradle
25-
uses: actions/cache@v4
26-
with:
27-
path: |
28-
~/.gradle/caches
29-
~/.gradle/wrapper
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
31-
restore-keys: |
32-
${{ runner.os }}-gradle-
33-
34-
- name: Grant execute permission for Gradle wrapper
35-
run: chmod +x gradlew
36-
37-
- name: Build Example01Pan
38-
run: ./gradlew :examples:Example01Pan:assembleDebug
39-
40-
- name: Build Example02Zoom
41-
run: ./gradlew :examples:Example02Zoom:assembleDebug
42-
43-
- name: Build Example03Markers
44-
run: ./gradlew :examples:Example03Markers:assembleDebug
45-
46-
- name: Build Example04Polylines
47-
run: ./gradlew :examples:Example04Polylines:assembleDebug
48-
49-
- name: Build Example05Camera
50-
run: ./gradlew :examples:Example05Camera:assembleDebug
51-
52-
- name: Build Example06Clicks
53-
run: ./gradlew :examples:Example06Clicks:assembleDebug
54-
55-
- name: Build Example07DraggableMarkers
56-
run: ./gradlew :examples:Example07DraggableMarkers:assembleDebug
57-
58-
- name: Build Example08Circles
59-
run: ./gradlew :examples:Example08Circles:assembleDebug
60-
61-
- name: Upload example APKs
62-
uses: actions/upload-artifact@v4
63-
with:
64-
name: example-apks
65-
path: examples/**/build/outputs/apk/debug/*.apk
66-
retention-days: 30
1+
name: Build Examples
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
build-examples:
11+
name: Build Example Apps
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: temurin
22+
java-version: 17
23+
24+
- name: Cache Gradle
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.gradle/caches
29+
~/.gradle/wrapper
30+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
31+
restore-keys: |
32+
${{ runner.os }}-gradle-
33+
34+
- name: Grant execute permission for Gradle wrapper
35+
run: chmod +x gradlew
36+
37+
- name: Build Example01Pan
38+
run: ./gradlew :examples:Example01Pan:assembleDebug
39+
40+
- name: Build Example02Zoom
41+
run: ./gradlew :examples:Example02Zoom:assembleDebug
42+
43+
- name: Build Example03Markers
44+
run: ./gradlew :examples:Example03Markers:assembleDebug
45+
46+
- name: Build Example04Polylines
47+
run: ./gradlew :examples:Example04Polylines:assembleDebug
48+
49+
- name: Build Example05Camera
50+
run: ./gradlew :examples:Example05Camera:assembleDebug
51+
52+
- name: Build Example06Clicks
53+
run: ./gradlew :examples:Example06Clicks:assembleDebug
54+
55+
- name: Build Example07DraggableMarkers
56+
run: ./gradlew :examples:Example07DraggableMarkers:assembleDebug
57+
58+
- name: Build Example08Circles
59+
run: ./gradlew :examples:Example08Circles:assembleDebug
60+
61+
- name: Upload example APKs
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: example-apks
65+
path: examples/**/build/outputs/apk/debug/*.apk
66+
retention-days: 30
Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
name: Build Library
2-
3-
on:
4-
workflow_call:
5-
6-
permissions:
7-
contents: read
8-
9-
jobs:
10-
build-library:
11-
name: Build OpenMapView AAR
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
18-
- name: Set up JDK 17
19-
uses: actions/setup-java@v4
20-
with:
21-
distribution: temurin
22-
java-version: 17
23-
24-
- name: Cache Gradle
25-
uses: actions/cache@v4
26-
with:
27-
path: |
28-
~/.gradle/caches
29-
~/.gradle/wrapper
30-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
31-
restore-keys: |
32-
${{ runner.os }}-gradle-
33-
34-
- name: Grant execute permission for Gradle wrapper
35-
run: chmod +x gradlew
36-
37-
- name: Build OpenMapView library
38-
run: ./gradlew :openmapview:assembleRelease
39-
40-
- name: Upload library artifact
41-
uses: actions/upload-artifact@v4
42-
with:
43-
name: openmapview-aar
44-
path: openmapview/build/outputs/aar/*.aar
45-
retention-days: 30
1+
name: Build Library
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
build-library:
11+
name: Build OpenMapView AAR
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: temurin
22+
java-version: 17
23+
24+
- name: Cache Gradle
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.gradle/caches
29+
~/.gradle/wrapper
30+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
31+
restore-keys: |
32+
${{ runner.os }}-gradle-
33+
34+
- name: Grant execute permission for Gradle wrapper
35+
run: chmod +x gradlew
36+
37+
- name: Build OpenMapView library
38+
run: ./gradlew :openmapview:assembleRelease
39+
40+
- name: Upload library artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: openmapview-aar
44+
path: openmapview/build/outputs/aar/*.aar
45+
retention-days: 30

.github/workflows/_copyright.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
name: Copyright Check
2-
3-
on:
4-
workflow_call:
5-
6-
permissions:
7-
contents: read
8-
9-
jobs:
10-
copyright:
11-
name: Check Copyright Headers
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
18-
- name: Check for missing copyright headers
19-
run: bash ./scripts/check-copyright.sh
1+
name: Copyright Check
2+
3+
on:
4+
workflow_call:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
copyright:
11+
name: Check Copyright Headers
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Check for missing copyright headers
19+
run: bash ./scripts/check-copyright.sh

0 commit comments

Comments
 (0)