Commit 29ac50c
authored
Getting library ready to publish. (#57)
* Add Android lint baseline for `cmp-sample-android`
* Created `lint-baseline.xml` in `cmp-sample-android` to suppress existing lint issues across multiple categories, including Scoped Storage, Obsolete SDK versions, unused resources, and typos.
* Recorded current lint violations for security (custom trust managers), performance (long vector paths), and API deprecations to serve as a baseline for future checks.
* Update dependencies, Gradle, and build configurations
* Upgraded Gradle wrapper from 8.13 to 9.1.0.
* Updated various dependencies in `libs.versions.toml`, including Kotlin, `composeBom`, and `spotless`.
* Moved `.editorconfig` to the root directory and configured it for ktlint function naming.
* Added the `vanniktech.mavenPublish` plugin to the `mifos-authenticator-passcode` module.
* Simplified the `cmp-sample-web` build by removing the custom `commonWebpackConfig` and adding explicit Compose dependencies for `jsMain` and `wasmJsMain`.
* Updated `yarn.lock` with changes to multiple JS dependencies.
* Minor clean-up in build scripts and baseline files.
* Update integration guide in README.md
* Rewrote the "How to implement Passcode" section into a comprehensive "Mifos Passcode Authenticator Integration Guide".
* Added detailed steps for implementing `PasscodeStorageAdapter` and initializing `PasscodeManager` using `rememberPasscodeManager`.
* Included code examples for setting up navigation logic and implementing the `PasscodeScreen` composable.
* Added documentation for advanced usage, including changing and deleting passcodes using `PasscodeAction`.
* Provided a summary of key components (`PasscodeStorageAdapter`, `PasscodeManager`, `PasscodeScreen`, and `PasscodeAction`).
* Update project documentation and structure overview
* Refactored the "Project Structure" section in `README.md` to provide a clearer overview of the project's modules, including `build-logic`, `cmp-sample` modules, and shared components.
* Updated descriptions for `mifos-authenticator-biometrics` and `mifos-authenticator-passcode` to accurately reflect platform-specific implementations and logic distribution.
* Added descriptions for the `cmp-sample-shared` module and its role in demonstrating authentication flows.
* Improved formatting and readability of the documentation.
* Add library documentation and improve code comments
* Added a comprehensive `README.md` for the `mifos-authenticator-biometrics` module, providing a library overview, feature list, and usage examples for Android, iOS, and Windows.
* Added detailed KDoc comments to common interfaces and enums, including `AuthenticationResult`, `PlatformAuthOptions`, `PlatformAuthenticatorStatus`, and `RegistrationResult`.
* Enhanced documentation in `PlatformAuthenticationProvider` and `PlatformAuthenticator` to better describe platform-specific requirements (e.g., `FragmentActivity` on Android and passkey registration on Windows).
* Improved parameter descriptions and return type documentation across the public API.
* Added KDoc to `PlatformAvailableAuthenticationOption` to clarify its role in querying available device authentication methods.
* Add comprehensive documentation and library publishing configurations
* Added KDoc documentation to `PasscodeScreen`, `PasscodeManager`, `PasscodeStorageAdapter`, and related configuration classes to improve API clarity.
* Configured `mavenPublishing` in `mifos-authenticator-passcode` and `mifos-authenticator-biometrics` with POM metadata, license information (MPL 2.0), and developer details.
* Updated GitHub Actions `publish.yml` to correctly order GPG signing environment variables.
* Moved the passcode integration guide from the root `README.md` to a module-specific `README.md` in `mifos-authenticator-passcode` and added a customization section.
* Removed the copyright header from `PasscodeScreenConfig.kt`.
* Update documentation for mifos-authenticator-biometrics
* Extensively updated `mifos-authenticator-biometrics/README.md` with detailed installation instructions, a quick-start guide, and comprehensive API references for `PlatformAuthenticationProvider` and `PlatformAuthenticator`.
* Added platform-specific implementation details for Android, iOS, Windows, and Web (WebAuthn).
* Included best practices for Android thread management, registration data storage, and lifecycle handling.
* Added detailed ViewModel integration examples for registration and authentication flows.
* Removed redundant platform authenticator usage details from the root `README.md`, centralizing documentation within the module directory.
* Update documentation for mifos-authenticator-biometrics
* Extensively updated `mifos-authenticator-biometrics/README.md` with detailed installation instructions, a quick-start guide, and comprehensive API references for `PlatformAuthenticationProvider` and `PlatformAuthenticator`.
* Added platform-specific implementation details for Android, iOS, Windows, and Web (WebAuthn).
* Included best practices for Android thread management, registration data storage, and lifecycle handling.
* Added detailed ViewModel integration examples for registration and authentication flows.
* Removed redundant platform authenticator usage details from the root `README.md`, centralizing documentation within the module directory.
* Configure maven-publish plugin and add module-specific properties
* Downgraded `vanniktech-mavenPublish` plugin from version `0.35.0` to `0.31.0` in `libs.versions.toml`.
* Added `gradle.properties` files to `mifos-authenticator-biometrics` and `mifos-authenticator-passcode` modules to define maven publishing coordinates and project metadata.
* Updated the `build.gradle.kts` files in both modules to utilize the new properties for configuring the `maven-publish` plugin, enabling publishing to Maven Central.
* Adjusted the `inceptionYear` in the POM configuration for both modules from `2026` to `2025`.
* Update developer information and clean up build configuration
* Updated developer ID, name, and URL to "openMF" and "Mifos Initiative" in the Maven publication settings for `mifos-authenticator-biometrics` and `mifos-authenticator-passcode`.
* Removed a commented-out `coordinates` line in `mifos-authenticator-biometrics/build.gradle.kts`.1 parent b2e9e2d commit 29ac50c
29 files changed
Lines changed: 2738 additions & 439 deletions
File tree
- .github/workflows
- cmp-sample-android
- cmp-sample-web
- src/jsMain/kotlin/cmp/sample/js
- config/detekt
- gradle
- wrapper
- kotlin-js-store
- mifos-authenticator-biometrics
- src/commonMain/kotlin/org/mifos/authenticator/biometrics/platformAuthenticator
- mifos-authenticator-passcode
- src/commonMain/kotlin/org/mifos/authenticator/passcode
- screen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 38 | | |
160 | 39 | | |
161 | 40 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
| 41 | + | |
329 | 42 | | |
330 | | - | |
331 | | - | |
| 43 | + | |
332 | 44 | | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
339 | 53 | | |
340 | | - | |
341 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
342 | 60 | | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 61 | + | |
| 62 | + | |
351 | 63 | | |
352 | | - | |
353 | | - | |
| 64 | + | |
| 65 | + | |
354 | 66 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | 67 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
57 | | - | |
58 | | - | |
| 60 | + | |
0 commit comments